1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
destdir=$(CURDIR)/debian/devtodo/
override_dh_auto_configure:
dh_autoreconf
dh_auto_configure -- CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
dh build
touch build-stamp
override_dh_auto_build:
cp /usr/bin/libtool ./
dh_auto_build
clean:
dh_testdir
dh_auto_clean
dh_autoreconf_clean
dh_clean
install: build
dh install
rm $(destdir)/usr/bin/tdl $(destdir)/usr/share/man/man1/tdl.1.gz
cp contrib/devtodo.bash-completion debian/
dh_bash-completion
binary-indep: build install
override_dh_fixperms:
dh_fixperms
# for scripts.sh and scripts.tcsh
chmod 644 $(CURDIR)/debian/devtodo/usr/share/doc/devtodo/examples/scripts.*sh
binary-arch: build install
dh binary-arch
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|