2011-07-25 23:43:08 -04:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
# debian/rules: Create the Debian package for Star Traders
|
2014-05-23 19:27:59 -04:00
|
|
|
# Copyright (C) 2011-14, John Zaitseff
|
2011-07-25 23:43:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
2011-07-28 23:32:29 -04:00
|
|
|
dh_auto_configure -- --prefix=/usr --bindir=/usr/games
|
2011-07-25 23:43:08 -04:00
|
|
|
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
|
2011-07-28 23:32:29 -04:00
|
|
|
dh_installchangelogs
|
2011-07-25 23:43:08 -04:00
|
|
|
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
|