| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
STAMP_DIR = stampdir |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 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 |
|
| 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 |