Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 #
3 # This is a debian/rules make file. It supports the targets:
4 # build, clean, binary-indep, binary-arch, and binary
5 #
6 # Package name variables
7 #
8 P=atari800
9
10 ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
11
12 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
13 DPKG_EXPORT_BUILDFLAGS = 1
14 include /usr/share/dpkg/buildflags.mk
15 CFLAGS+=$(CPPFLAGS)
16 CXXFLAGS+=$(CPPFLAGS)
17
18 # Build the binary components and assemble the libraries
19 # =====================================================================
20 build: build-arch build-indep
21 build-arch: build-stamp
22 build-indep: build-stamp
23 build-stamp:
24 $(checkdir)
25 debian/rules bld-sdl
26 touch build-stamp
27
28 bld-sdl:
29 if [ -e Makefile ]; then $(MAKE) clean; fi
30 ./autogen.sh
31 ./configure \
32 --with-video=sdl2 --with-sound=sdl2
33 $(MAKE)
34
35 # Clean up after a build and before building a source package
36 #======================================================================
37 clean:
38 $(checkdir)
39 -rm -f build-stamp
40 if [ -e Makefile ]; then $(MAKE) clean; fi; \
41 rm -f config.log config.status config.h Makefile
42 rm -f src/config.guess src/config.sub
43 find . -maxdepth 1 -type f -name 'atari800.*' ! -name 'atari800.spec' ! -name 'atari800.nsi' -delete
44 rm -f atari800
45 -rm -rf debian/tmp debian/*~ *~ *.orig *.log \
46 debian/files* debian/substvars*
47 -rm -f data/atari800.xpm
48
49
50 install: build
51 dh_testdir
52 dh_testroot
53 dh_installdirs
54 convert data/atari2.png -resize 32x32 data/atari800.xpm
55 dh_install
56
57
58 binary: binary-arch
59
60 # No binary independent components to this package
61 binary-indep:
62 echo "No independent binary components."
63
64 # Build architecture-independent files here.
65 binary-arch: build install binary-common
66
67 binary-common:
68 dh_testdir
69 dh_testroot
70 dh_installdocs
71 dh_installcron
72 dh_installman
73 dh_installinfo
74 dh_installchangelogs
75 dh_link
76 dh_strip
77 dh_compress
78 dh_fixperms
79 dh_installdeb
80 dh_shlibdeps
81 dh_gencontrol
82 dh_md5sums
83 dh_builddeb
84
85 define checkdir
86 test -f ./atari800.spec
87 endef
88
89 # Below here is fairly generic really
90 checkroot:
91 $(checkdir)
92 test root = "`whoami`"
93
94 .PHONY: binary binary-arch binary-indep clean checkroot