Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 #export DH_VERBOSE = 1
3
4 SCONS=/usr/bin/scons
5
6 # see FEATURE AREAS in dpkg-buildflags(1)
7 #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
8
9 # see ENVIRONMENT in dpkg-buildflags(1)
10 # package maintainers to append CFLAGS
11 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
12 # package maintainers to append LDFLAGS
13 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
14
15 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
16
17 %:
18 dh $@
19
20 override_dh_auto_clean:
21 cd proglib; $(SCONS) -c
22 $(SCONS) -c
23
24 # Clean up .sconsign files so that they won't end up in the source
25 # package
26 find . -name .scons* -print | xargs \rm -f
27
28 override_dh_auto_configure:
29 # Note: this only build proglib; the actual build is in install
30 # because cons builds and installs everything directly. (It can be
31 # split up, but I'm not sure that's necessary.)
32 cd proglib; $(SCONS) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"
33
34 override_dh_auto_install:
35 $(SCONS) BINDIR="#debian/atom4/usr/games" DATADIR="#debian/atom4/usr/share/games/atom4" REALDATADIR="/usr/share/games/atom4" MANDIR="#debian/atom4/usr/share/man" PROGLIBPATH="#proglib"
36
37 # Clean up .sconsign files so that they won't end up in the source
38 # package
39 find . -name .scons* -print | xargs \rm -f