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