debian/rules: Use variables in orig targets.

svn path=/dists/trunk/linux-2.6/; revision=6491
This commit is contained in:
Bastian Blank 2006-04-28 22:03:51 +00:00
parent 4027080008
commit 6f59375dcb
1 changed files with 8 additions and 5 deletions

13
debian/rules vendored
View File

@ -36,13 +36,16 @@ $(STAMPS_DIR)/build-base: $(BUILD_DIR) $(STAMPS_DIR) $(STAMPS_DIR)/setup-base
$(BUILD_DIR) $(STAMPS_DIR):
@[ -d $@ ] || mkdir $@
orig: ../orig/linux-$(MAJOR)-$(VERSION)
rsync --delete --exclude debian --exclude .svn --link-dest=../orig/linux-$(MAJOR)-$(VERSION)/ -a ../orig/linux-$(MAJOR)-$(VERSION)/ .
DIR_ORIG = ../orig/linux-$(MAJOR)-$(VERSION)
TAR_ORIG = ../linux-$(MAJOR)_$(VERSION).orig.tar.gz
../orig/linux-$(MAJOR)-$(VERSION):
if [ -f "../linux-$(MAJOR)_$(VERSION).orig.tar.gz" ]; then \
orig: $(DIR_ORIG)
rsync --delete --exclude debian --exclude .svn --link-dest=$(DIR_ORIG)/ -a $(DIR_ORIG)/ .
$(DIR_ORIG):
if [ -f $(TAR_ORIG) ]; then \
mkdir -p ../orig; \
tar -C ../orig -xzf ../linux-$(MAJOR)_$(VERSION).orig.tar.gz; \
tar -C ../orig -xzf $(TAR_ORIG); \
else \
echo "Can't find orig tarball." >&2; \
exit 1; \