X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Frules;h=f9532ad10a2e564df07de9832ef22581d507855d;hb=76000a06a9da1771e5a759e98f863cea6ca5271e;hp=cde5630be34d5abe0e4f2cadb680d75f696a1848;hpb=ccea277caf476cdfef4c0f953df5a97062d8be42;p=live-boot-grml.git diff --git a/debian/rules b/debian/rules index cde5630..f9532ad 100755 --- a/debian/rules +++ b/debian/rules @@ -3,25 +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 - 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 # Building package - CFLAGS="$(CFLAGS)" $(MAKE) + $(MAKE) -C manpages touch build-stamp @@ -31,14 +22,14 @@ clean: rm -f build-stamp # Cleaning package - $(MAKE) clean + $(MAKE) -C manpages clean dh_clean install: build dh_testdir dh_testroot - dh_clean -k + dh_prep dh_installdirs # Installing package @@ -49,20 +40,21 @@ install: build 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 -binary-indep: build install + # Installing bug control + install -D -m 0755 debian/bug/script debian/live-initramfs/usr/share/bug/live-initramfs binary-arch: build install + +binary-indep: build install dh_testdir dh_testroot dh_installchangelogs docs/ChangeLog dh_installdocs dh_install dh_installinit --no-restart-on-upgrade --no-start -- start 89 0 6 . - dh_strip dh_compress dh_fixperms dh_installdeb - dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb