Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # debian/rules for the Debian xfonts-utils package.
3 # Copyright © 2004 Scott James Remnant <[email protected]>
4 # Copyright © 2005 Daniel Stone <[email protected]>
5 # Copyright © 2005 David Nusinow <[email protected]>
6
7 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
9
10 STAMP_DIR = stampdir
11
12 # This package contains multiple modules as shipped by upstream. Each module is
13 # contained in a subdirectory in the root dir of the package. You must list each
14 # subdirectory explicitly so that the build system knows what to build
15 SUBDIRS = bdftopcf mkfontscale font-util fonttosfnt
16 CONFIG_STAMPS = $(addprefix $(STAMP_DIR)/configure-, $(SUBDIRS))
17 BUILD_STAMPS = $(addprefix $(STAMP_DIR)/build-,$(SUBDIRS))
18
19 %:
20 dh $@ --with quilt
21
22 override_dh_autoreconf:
23 dh_autoreconf debian/rules -- autoreconf
24
25 autoreconf-%:
26 cd $* && autoreconf -vfi
27
28 .PHONY: autoreconf
29 autoreconf: $(addprefix autoreconf-, $(SUBDIRS))
30
31 override_dh_auto_configure: $(CONFIG_STAMPS)
32
33 override_dh_auto_build: $(BUILD_STAMPS)
34
35 $(STAMP_DIR)/configure-%:
36 mkdir -p $(STAMP_DIR)
37 dh_auto_configure -D$* -B$*-build -- \
38 --disable-silent-rules \
39 --with-mapdir=\$${prefix}/share/fonts/X11/util
40 >$@
41
42 $(STAMP_DIR)/build-%:
43 mkdir -p $(STAMP_DIR)
44 dh_auto_build -D$* -B$*-build
45 >$@
46
47 clean-%:
48 dh_auto_clean -D$* -B$*-build
49
50 override_dh_auto_clean: $(addprefix clean-, $(SUBDIRS))
51 rm -rf $(STAMP_DIR)
52
53 override_dh_auto_install:
54 for FILE in $(SUBDIRS); do \
55 cd "$$FILE"-build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install ; \
56 cd ..; \
57 done
58
59 override_dh_installxfonts:
60 # we don't actually install any fonts
61
62 .PHONY: get-tarballs
63 get-tarballs: $(addprefix get-tarball-,$(SUBDIRS))
64
65 get-tarball-%:
66 uscan --no-conf --download --no-symlink --destdir . --package $* --upstream-version $(shell awk -F = '/^PACKAGE_VERSION=/ { print $$2 }' < $*/configure ) --watchfile debian/watch.$* || test $$? = 1