1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-11-03 17:27:29 -05:00
trader/debian/rules
2011-07-26 13:43:08 +10:00

66 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
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_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