2007-08-24 14:52:41 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
2020-11-07 14:33:12 +00:00
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
2007-08-24 14:52:41 +00:00
|
|
|
|
2020-11-07 14:33:12 +00:00
|
|
|
include /usr/share/dpkg/architecture.mk
|
|
|
|
DPKG_EXPORT_BUILDTOOLS=1
|
|
|
|
-include /usr/share/dpkg/buildtools.mk
|
2007-08-24 14:52:41 +00:00
|
|
|
|
2020-11-07 14:33:12 +00:00
|
|
|
%:
|
|
|
|
dh $@ --with autotools_dev
|
2007-08-24 14:52:41 +00:00
|
|
|
|
2020-11-07 14:33:12 +00:00
|
|
|
override_dh_auto_clean:
|
|
|
|
# Generate the minimal config.mak required for "make distclean"
|
|
|
|
test -f config.mak || echo "RM_REC := rm -f -r" > config.mak
|
|
|
|
dh_auto_clean
|
2007-08-24 14:52:41 +00:00
|
|
|
|
2020-11-07 14:33:12 +00:00
|
|
|
override_dh_auto_configure:
|
|
|
|
./configure --prefix=/usr $(if $(filter $(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)),,--host=$(DEB_HOST_GNU_TYPE)) --enable-release
|
2007-08-24 14:52:41 +00:00
|
|
|
|
2020-11-07 14:33:12 +00:00
|
|
|
override_dh_auto_install:
|
|
|
|
dh_auto_install
|
|
|
|
# This is also installed as the upstream changelog
|
|
|
|
rm $(CURDIR)/debian/stella/usr/share/doc/stella/Changes.txt
|
|
|
|
# This is overridden by the copyright file
|
|
|
|
rm $(CURDIR)/debian/stella/usr/share/doc/stella/License.txt
|