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
|
#!/usr/bin/make -f
PACKAGE = jwm
CHANGELOG = debian/upstream.changelog
PKGDIR = $(CURDIR)/debian/$(PACKAGE)
ETCDIR = $(PKGDIR)/etc/$(PACKAGE)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFaLAGS_MAINT_APPEND = -Wl,--as-needed
# Upstream does not support CPPFLAGS
export CC := $(CC) $(CPPFLAGS)
# Run manaually to get updates
get-changelog:
svn log https://jwm.svn.sourceforge.net/svnroot/jwm \
| sed 's/[[:space:]]*$$//' \
> $(CHANGELOG)
override_dh_installchangelogs:
dh_installchangelogs $(CHANGELOG)
override_dh_install:
dh_install
install -D -m 644 example.jwmrc $(ETCDIR)/system.$(PACKAGE)rc
override_dh_auto_configure:
dh_auto_configure -- --sysconfdir=/etc/jwm
override_dh_auto_install:
# Disable. See debian/install instead.
%:
dh $@
# End of file
|