# 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
rm -f build-stamp
# Cleaning package
- $(MAKE) clean
+ $(MAKE) -C manpages clean
dh_clean
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/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 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