#!/usr/bin/make -f #export DH_VERBOSE=1 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif configure: ./autogen.sh configure-stamp: configure CFLAGS="$(CFLAGS)" \ CC=$(CC) \ ./configure \ --prefix=/usr \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) # touch configure-stamp # --mandir=\$${prefix}/share/man \ # --with-html-dir=\$${prefix}/share/doc \ # --sysconfdir=/etc \ # --localstatedir=/var \ # --enable-release=yes clean: -rm -f configure-stamp build-stamp -./cleanup.sh 1 build: build-stamp build-stamp: configure-stamp $(MAKE) touch build-stamp install: build dh_clean -k dh_installdirs $(MAKE) DESTDIR=$(CURDIR)/debian/gsetgame install binary: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_installman dh_link dh_compress dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb .PHONY: clean build install binary