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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
#!/usr/bin/make -f
#
# This is a debian/rules make file. It supports the targets:
# build, clean, binary-indep, binary-arch, and binary
#
# Package name variables
#
P=atari800
ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)
# Build the binary components and assemble the libraries
# =====================================================================
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
$(checkdir)
debian/rules bld-sdl
touch build-stamp
bld-sdl:
if [ -e Makefile ]; then $(MAKE) clean; fi
./autogen.sh
./configure \
--with-video=sdl --with-sound=sdl
$(MAKE)
# Clean up after a build and before building a source package
#======================================================================
clean:
$(checkdir)
-rm -f build-stamp
if [ -e Makefile ]; then $(MAKE) clean; fi; \
rm -f config.log config.status config.h Makefile
mv ./atari800.spec ./tmp ; rm -f atari800 ; rm -f atari800.* ; mv ./tmp ./atari800.spec
-rm -rf debian/tmp debian/*~ *~ *.orig *.log \
debian/files* debian/substvars*
-rm -f data/atari800.xpm
install: build
dh_testdir
dh_testroot
dh_installdirs
convert data/atari2.png -resize 32x32 data/atari800.xpm
dh_install
binary: binary-arch
# No binary independent components to this package
binary-indep:
echo "No independent binary components."
# Build architecture-independent files here.
binary-arch: build install binary-common
binary-common:
dh_testdir
dh_testroot
dh_installdocs
dh_installcron
dh_installman
dh_installinfo
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
define checkdir
test -f ./atari800.spec
endef
# Below here is fairly generic really
checkroot:
$(checkdir)
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep clean checkroot
|