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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all future=+lfs
export DEB_CFLAGS_MAINT_APPEND = -Wall
include /usr/share/dpkg/default.mk
DESTDIR = $(CURDIR)/debian/arj
INSTALL = install
INSTALL_DATA = $(INSTALL) -m 644
ifneq (,$(filter debug,$(DEB_BUILD_OPTIONS)))
buildvars += "DEBUG=1"
endif
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
buildvars += "BUILD_STRIP=1"
endif
%:
dh $@
execute_before_dh_auto_clean:
rm -f makefile
override_dh_autoreconf:
dh_autoreconf --sourcedirectory=gnu
override_dh_auto_configure:
dh_auto_configure --sourcedirectory=gnu
override_dh_auto_build:
dh_auto_build -- $(buildvars)
execute_after_dh_auto_install:
$(INSTALL_DATA) $(CURDIR)/resource/rearj.cfg.example \
$(DESTDIR)/etc/rearj.cfg
override_dh_strip:
# NOTE: Do not strip here, it is currently done in the upstream build
# system, after the linker stage and before preprocessing the binary
# files. Otherwise when stripping the self-extracting modules and the
# help text are removed.
|