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
|
#!/usr/bin/make -f
PACKAGE = ifile
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -Iinclude
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# The only place where to inject additional flags
export CC := $(CC) $(CPPFLAGS) $(LDFLAGS)
override_dh_auto_clean:
# Override because Makefile has no target 'distclean'. See next target.
rm -f config.*
dh_auto_clean
override_dh_clean:
# Standard clean would cause to run 'configure' again (autotools)
dh_clean
# Manual cleaning.
rm -rf debian/$(PACKAGE) debian/.debhelper
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:
cp -vf /usr/share/misc/config.sub .
cp -vf /usr/share/misc/config.guess .
dh_testdir
dh_auto_configure
override_dh_auto_test:
# Nothing to do. Would cause to run 'configure'
%:
dh $@
# End of file
|