Bastian Blank
2006-Aug-22 09:34 UTC
[Pkg-xen-changes] r246 - in trunk/xen-common/debian: patches
Author: waldi Date: Tue Aug 22 09:33:53 2006 New Revision: 246 Added: trunk/xen-common/debian/patches/ Modified: trunk/xen-common/debian/rules Log: * debian/patches: New directory. * debian/rules: Use dpatch. Modified: trunk/xen-common/debian/rules =============================================================================--- trunk/xen-common/debian/rules (original) +++ trunk/xen-common/debian/rules Tue Aug 22 09:33:53 2006 @@ -4,12 +4,29 @@ VERSION := $(shell dpkg-parsechangelog | perl -ne ''/^Version:\s+(\S+)-[^-]+$$/ && print $$1;'') -build: +BUILD_DIR = debian/build +STAMPS_DIR = debian/stamps + +srcfiles := $(filter-out debian, $(wildcard * .[^.]*)) +source: $(STAMPS_DIR)/source +$(STAMPS_DIR)/source: $(STAMPS_DIR) + dh_testdir + @rm -rf $(BUILD_DIR) + mkdir $(BUILD_DIR) + cp -a $(srcfiles) $(BUILD_DIR) + dpatch -d $(BUILD_DIR) apply-all + touch $@ + +build: $(STAMPS_DIR)/source clean: dh_testdir + rm -rf $(BUILD_DIR) $(STAMPS_DIR) dh_clean +$(BUILD_DIR) $(STAMPS_DIR): + @[ -d $@ ] || mkdir $@ + DIR_ORIG = ../orig/xen-common-$(VERSION) orig: $(DIR_ORIG) @@ -21,11 +38,11 @@ maintainerclean: rm -rf $(filter-out .svn debian, $(wildcard * .[^.]*)) -install: +install: $(STAMPS_DIR)/source dh_testdir dh_testroot dh_clean -k - $(MAKE) -C tools/examples install DESTDIR=$(CURDIR)/debian/tmp DISTDIR=$(CURDIR)/debian/tmp + $(MAKE) -C $(BUILD_DIR)/tools/examples install DESTDIR=$(CURDIR)/debian/tmp DISTDIR=$(CURDIR)/debian/tmp binary-indep: install dh_testdir