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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
#!/usr/bin/make -f
PACKAGE = ifile
include debian/debian-autotools.mk
include debian/debian-lintian.mk
override_dh_auto_clean:
# Override, because Makefiles has no target 'distclean' =>
# Would cause error
override_dh_clean:
# Override: would cause to run 'configure' again (autotools problem)
# Do all manually:
rm -rf debian/$(PACKAGE)
rm -f \
Makefile \
argp/Makefile \
config.status \
config.log \
argp/config.status \
argp/config.log \
*.o \
*.a \
debian/*.log \
debian/*.substvars \
debian/files \
argp/*.o \
ifile
override_dh_auto_configure:
$(file-state-save)
$(config-patch)
dh_testdir
./configure \
CFLAGS="$(CFLAGS) -I./include" \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info
override_dh_auto_test:
# Nothing to do. Would cause to run 'configure'
install: build
# target: install
dh_testdir
dh_testroot
$(MAKE) prefix=debian/$(PACKAGE)/usr \
mandir=\$${prefix}/share/man \
install
binary-arch: install
# target: binary-arch -- Build architecture dependent files
$(config-delete)
$(file-state-restore)
$(lintian-overrides)
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples
dh_installchangelogs ChangeLog
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-arch
%:
dh $@
.PHONY: install
.PHONY: binary-arch binary
# End of file
|