Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Uncomment this to turn on verbose mode.
4 # export DH_VERBOSE=1
5
6 # see FEATURE AREAS in dpkg-buildflags(1)
7 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
8
9 # see ENVIRONMENT in dpkg-buildflags(1)
10 # package maintainers to append CFLAGS
11 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
12 # package maintainers to append LDFLAGS
13 export DEB_LDFLAGS_MAINT_APPEND =
14
15 DPKG_EXPORT_BUILDFLAGS = 1
16 include /usr/share/dpkg/default.mk
17
18 %:
19 dh $@
20
21 dt := debian/hearse
22 prefix = $(CURDIR)/$(dt)
23
24 execute_after_dh_auto_install:
25 cp hearse.conf $(dt)/etc/nethack
26 find $(prefix) -depth -type d -print0 | \
27 xargs -0r rmdir --ignore-fail-on-non-empty
28
29 execute_after_dh_clean:
30 [ ! -f Makefile ] || $(MAKE) realclean
31 debconf-updatepo