1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-10-13 18:03:39 -04:00

Use "dh" in debian/rules instead of using dh_ commands directly

This commit is contained in:
John Zaitseff 2014-08-15 11:48:08 +10:00
parent b63576eaf0
commit 901ddd505c

62
debian/rules vendored
View File

@ -3,64 +3,8 @@
# debian/rules: Create the Debian package for Star Traders
# Copyright (C) 2011-14, John Zaitseff
%:
dh $@
# Uncomment the following line for verbose Debhelper mode
#export DH_VERBOSE=1
STAMP_PATCH ?= debian/stamp-patch
STAMP_BUILD ?= debian/stamp-build
CFLAGS = -g -Wall
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O2
endif
default: binary
# Include the quilt targets "patch" and "unpatch"
include /usr/share/quilt/quilt.make
build: $(STAMP_BUILD)
$(STAMP_BUILD): patch
dh_testdir
override_dh_auto_configure:
dh_auto_configure -- --prefix=/usr --bindir=/usr/games
dh_auto_build -- CFLAGS="$(CFLAGS)"
touch $(STAMP_BUILD)
clean: unpatch
dh_testdir
dh_testroot
dh_auto_clean
rm -f $(STAMP_BUILD)
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
dh_auto_install
binary: binary-arch binary-indep
binary-indep: build install
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installman
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
.PHONY: default build clean install binary binary-arch binary-indep