Author: waldi Date: Mon Mar 1 20:56:10 2010 New Revision: 722 Log: debian/rules: Patch in root. Modified: trunk/xen-common/debian/rules Modified: trunk/xen-common/debian/rules =============================================================================--- trunk/xen-common/debian/rules Mon Mar 1 20:49:14 2010 (r721) +++ trunk/xen-common/debian/rules Mon Mar 1 20:56:10 2010 (r722) @@ -12,17 +12,20 @@ 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 -p $(BUILD_DIR) - cp -a $(srcfiles) $(BUILD_DIR) - cd $(BUILD_DIR); QUILT_PATCHES=$(CURDIR)/debian/patches quilt --quiltrc /dev/null push -a || test $$? = 2 +$(STAMPS_DIR)/source: + @mkdir -p $(STAMPS_DIR) + QUILT_PATCHES=$(CURDIR)/debian/patches quilt --quiltrc /dev/null push -a || test $$? = 2 + touch $@ + +$(STAMPS_DIR)/setup: SOURCE_FILES = $(filter-out debian, $(wildcard *)) +$(STAMPS_DIR)/setup: DIR=$(BUILD_DIR) +$(STAMPS_DIR)/setup: $(STAMPS_DIR)/source + @rm -rf $(DIR) + mkdir $(DIR) + cp -al $(SOURCE_FILES) $(DIR) touch $@ -build: $(STAMPS_DIR)/source +build: $(STAMPS_DIR)/setup make -C $(BUILD_DIR)/docs man-pages clean: @@ -30,9 +33,6 @@ rm -rf $(BUILD_DIR) $(STAMPS_DIR) debian/lib/python/*/*.pyc dh_clean -$(BUILD_DIR) $(STAMPS_DIR): - @[ -d $@ ] || mkdir -p $@ - NO_ORIG = .svn .svk debian scripts DIR_ORIG = ../orig/$(SOURCE)-$(VERSION)