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
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall
ifneq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
NODOC=nodoc
endif
%:
dh $@
override_dh_auto_install-indep:
# Build html manual
test -n '$(NODOC)' || \
$(MAKE) -C doc/C html
test -n '$(NODOC)' || \
$(MAKE) -C doc DESTDIR=$(CURDIR)/debian/kildclient-doc install
override_dh_auto_install-arch:
$(MAKE) DESTDIR=$(CURDIR)/debian/kildclient install
# Remove extra license file
rm $(CURDIR)/debian/kildclient/usr/share/doc/kildclient/COPYING
# Move binary to /usr/games
mv $(CURDIR)/debian/kildclient/usr/bin/kildclient $(CURDIR)/debian/kildclient/usr/games/
rmdir $(CURDIR)/debian/kildclient/usr/bin
# Remove docs from arch-dependent package
rm -rf $(CURDIR)/debian/kildclient/usr/share/doc/kildclient/html
|