1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-10-27 18:20:13 -04:00
trader/debian/rules
John Zaitseff 05e0397982 Install the Debian changelog; install the binary in /usr/games
The file debian/changelog was omitted by accident.  Games are to be
installed in /usr/games, per Debian policy.
2011-07-29 13:32:29 +10:00

67 lines
1.1 KiB
Makefile
Executable File

#!/usr/bin/make -f
# debian/rules: Create the Debian package for Star Traders
# Copyright (C) 2011, John Zaitseff
# 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
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