1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
#!/usr/bin/make -f
BUILD_ARCH = $(shell dpkg --print-architecture)
CFLAGS= -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
build: build-stamp
build-stamp:
dh_testdir
CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --includedir=/usr/include --without-fb --without-svgalib --with-sdl --with-x --disable-asm --enable-optimize=none
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
[ ! -f Makefile ] || $(MAKE) clean
rm -f Makefile build-stamp config.log config.cache config.status sys/nix/config.h
dh_clean
binary-indep:
binary-arch: build
dh_testdir -a
dh_testroot -a
mkdir -p debian/tmp/usr/games/
install -m 755 sdlgnuboy debian/tmp/usr/games
install -m 755 xgnuboy debian/tmp/usr/games
dh_movefiles -a
dh_installdocs -A docs/CREDITS docs/FAQ docs/HACKING docs/LIBERTY \
docs/CONFIG
dh_installchangelogs -a docs/CHANGES docs/WHATSNEW
dh_installexamples -A etc/*.rc
dh_installman -A
ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" ""
dh_strip -a
endif
dh_compress -a
dh_fixperms -a
dh_shlibdeps -a
dh_installdeb -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-indep binary-arch
build-arch: build
build-indep: build
.PHONY: build build-arch build-indep clean binary-indep binary-arch binary
|