Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # debian/rules for the Debian xutils 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 # contained in a subdirectory in the root dir of the package. You must list each
13 # subdirectory explicitly so that the build system knows what to build
14 DEF_SUBDIRS=bitmap ico oclock rendercheck transset x11perf xbiff xcalc xclipboard xclock xconsole xcursorgen xditview xedit xeyes xgc xload xlogo xmag xman xmore xwd xwud
15 SUBDIRS=$(DEF_SUBDIRS)
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 chmod +x debian/autogen.sh
24 dh_autoreconf debian/autogen.sh -- $(SUBDIRS)
25
26 override_dh_auto_configure: $(CONFIG_STAMPS)
27
28 $(STAMP_DIR)/configure-%:
29 mkdir -p $(STAMP_DIR)
30 dh_auto_configure -D$* -B$*-build -- \
31 --libdir=\$${prefix}/lib \
32 --disable-silent-rules \
33 MANCONF="/etc/manpath.config" \
34 MKTEMP=/bin/mktemp
35 >$@
36
37 override_dh_auto_build: $(BUILD_STAMPS)
38
39 $(STAMP_DIR)/build-%:
40 mkdir -p $(STAMP_DIR)
41 dh_auto_build -D$* -B$*-build
42 >$@
43
44 override_dh_auto_clean: $(addprefix clean-, $(SUBDIRS))
45 rm -rf stampdir
46
47 clean-%:
48 dh_auto_clean -D$* -B$*-build
49
50 override_dh_auto_install:
51 for FILE in $(SUBDIRS); do \
52 cd "$$FILE"-build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install ; \
53 cd ..; \
54 done
55
56 override_dh_missing:
57 dh_missing --list-missing
58
59 .PHONY: get-tarballs
60 get-tarballs: $(addprefix get-tarball-,$(SUBDIRS))
61
62 .PHONY: get-tarball-%
63 get-tarball-%:
64 uscan --no-conf --destdir . --download --no-symlink --package $* --upstream-version $(shell awk -F = '/^PACKAGE_VERSION=/ { print $$2 }' < $*/configure ) --watchfile debian/watch.$* || test $$? = 1
65
66 .PHONY: update-copyright
67 update-copyright: $(addsuffix /COPYING, $(SUBDIRS)) debian/copyright.head
68 cp debian/copyright.head debian/copyright
69 for subdir in $(SUBDIRS); do \
70 echo >> debian/copyright && \
71 echo $$subdir: >> debian/copyright && \
72 sed -e 's/^./ &/' < $$subdir/COPYING >> debian/copyright \
73 || exit; done
74