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
|
#!/usr/bin/make -f
# MAde with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PACKAGE= xmahjongg
D= $(CURDIR)/debian/$(PACKAGE)
ifeq (,$(filter nohardening,$(DEB_BUILD_OPTIONS)))
export DEB_BUILD_HARDENING=1
else
export DEB_BUILD_HARDENING=0
endif
WARNFLAGS?=
ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
WARNFLAGS+= -Werror
endif
CFLAGS+= ${WARNFLAGS}
CXXFLAGS+= ${WARNFLAGS}
export CFLAGS CXXFLAGS
include /usr/share/quilt/quilt.make
override_dh_auto_configure: ${QUILT_STAMPFN}
./configure --prefix=/usr --mandir=/usr/share/man --datadir=/usr/share/games
# Avoid rebuilding config.h.in
touch config.h.in && touch configure && touch config.status
override_dh_auto_clean:
dh_auto_clean
${MAKE} -f debian/rules unpatch
override_dh_auto_install:
$(MAKE) install prefix=$D/usr bindir=$D/usr/games mandir=$D/usr/share/man datadir=$D/usr/share/games
%:
dh $@
|