Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 #export DH_VERBOSE=1
3 include /usr/share/dpkg/architecture.mk
4 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
5 CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
6 else
7 CROSS= --build $(DEB_BUILD_GNU_TYPE)
8 endif
9
10 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
11
12 # https://wiki.debian.org/CrossBuildPackagingGuidelines#pkg-config
13 -include /usr/share/dpkg/buildtools.mk
14 PKG_CONFIG ?= pkg-config
15
16 %:
17 dh $@
18
19 override_dh_auto_configure:
20 ./configure $(CROSS) \
21 --prefix=/usr \
22 --bindir=\$${prefix}/games \
23 --datarootdir=\$${prefix}/share/games \
24 --mandir=\$${prefix}/share/man \
25 --infodir=\$${prefix}/share/info \
26 --disable-silent-rules \
27 CXXFLAGS="$(CXXFLAGS) $$($(PKG_CONFIG) --cflags uuid) -Wno-error=format-security" \
28 LIBS="$$($(PKG_CONFIG) --libs uuid)" \
29 CFLAGS="$(CFLAGS)" \
30 LDFLAGS="$(LDFLAGS)" \
31 pkgdatadir=\$${prefix}/share/games/7kaa
32
33 override_dh_auto_build:
34 dh_auto_build
35 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
36 (cd doc/ && latexmk main.tex)
37 endif
38
39 override_dh_auto_install:
40 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
41 rm -rfv debian/7kaa/usr/share/games/doc
42 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
43 install -D doc/main.pdf debian/7kaa-data/usr/share/doc/7kaa/manual.pdf
44 endif
45
46 override_dh_auto_clean:
47 dh_auto_clean
48 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
49 (cd doc/ && latexmk -C main.tex)
50 endif