chiark / gitweb /
New option: movres.ignore_transience.
[e16] / debian / builddir.mk
1 export QUILT_PATCH_DIR=debian/patch
2
3 BUILD_DIR := debian/build
4 BUILD_DIR_TARGETS := build install patch unpatch
5
6 $(BUILD_DIR_TARGETS): builddir
7         $(MAKE) -f debian/rules -C $(BUILD_DIR) $@ USE_BUILD_DIR=TRUE
8
9 cp_excludes := .pc debian
10 cp_targets =  $(filter-out $(cp_excludes),$(wildcard *))
11
12 builddir: tarcopy
13 tarcopy: debian/stamp-tarcopy
14 debian/stamp-tarcopy:
15         mkdir -p $(BUILD_DIR)
16         tar cf - $(cp_targets) | tar xvf - -C $(BUILD_DIR)
17         ln -sv $(CURDIR)/debian $(BUILD_DIR)
18         touch $@
19
20 clean: clean_extras
21 clean_extras:
22         rm -rf $(BUILD_DIR) $(wildcard debian/stamp-*)
23
24 .PHONY: builddir tarcopy clean_extras