X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Frules;h=da555d9ba476b42f61856939b1cdb822300fa96c;hb=dc75a7a35d1fe175caeee0abdf00d48645ea1a31;hp=79117a959f00dbe2ce77a12a1b8893e50a9ad11d;hpb=9fc9e2a1a11b0edada38cb501fefe4f58aa414ac;p=live-boot-grml.git diff --git a/debian/rules b/debian/rules index 79117a9..da555d9 100755 --- a/debian/rules +++ b/debian/rules @@ -3,37 +3,16 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -CFLAGS = -Wall -g - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif - -# Looking in which build system we are -BUILD_SYSTEM := $(shell lsb_release --short --id) - upstream: - # Needs: subversion - cd .. && svn co svn://svn.debian.org/debian-live/dists/trunk/live-initramfs || true - find . -type d -name .svn | xargs rm -rf + cd .. && git clone git://git.debian.org/git/users/daniel/live-initramfs.git || true + rm -rf ../live-initramfs/.git build: build-stamp build-stamp: dh_testdir - # Checking scripts - for SCRIPT in scripts/live scripts/live-bottom/*; \ - do \ - sh -n $$SCRIPT || exit 1; \ - done - - # Setting BUILD_SYSTEM in the binary package - sed -e 's/\(BUILD_SYSTEM="\).*"/\1'$(BUILD_SYSTEM)'"/g' conf/live.conf > live.conf - # Building package - CFLAGS="$(CFLAGS)" $(MAKE) -C bin/live-md5check + $(MAKE) -C manpages touch build-stamp @@ -43,8 +22,7 @@ clean: rm -f build-stamp # Cleaning package - $(MAKE) -C bin/live-md5check clean - rm -f live.conf + $(MAKE) -C manpages clean dh_clean @@ -55,22 +33,25 @@ install: build dh_installdirs # Installing package - install -m 0755 bin/live-md5check/live-md5check debian/live-initramfs/usr/lib/live-initramfs - install -m 0644 live.conf debian/live-initramfs/etc/live.conf + $(MAKE) install DESTDIR=$(CURDIR)/debian/live-initramfs -binary-indep: build install + # Removing double files + rm -f debian/live-initramfs/usr/share/doc/live-initramfs/COPYING + rm -f debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog + mv debian/live-initramfs/usr/share/doc/live-initramfs/ChangeLog.casper debian/live-initramfs/usr/share/doc/live-initramfs/changelog.casper + + # Installing bug control + install -D -m 0755 debian/bug/live-initramfs.script debian/live-initramfs/usr/share/bug/live-initramfs binary-arch: build install + +binary-indep: build install dh_testdir dh_testroot - dh_installchangelogs doc/ChangeLog - dh_installdocs doc/ChangeLog.casper - dh_installexamples + dh_installchangelogs docs/ChangeLog + dh_installdocs dh_install dh_installinit --no-restart-on-upgrade --no-start -- start 89 0 6 . - dh_installman - dh_link - dh_strip dh_compress dh_fixperms dh_installdeb