[kernel] r6491 - dists/trunk/linux-2.6/debian
Bastian Blank
waldi at costa.debian.org
Fri Apr 28 22:03:52 UTC 2006
Author: waldi
Date: Fri Apr 28 22:03:51 2006
New Revision: 6491
Modified:
dists/trunk/linux-2.6/debian/rules
Log:
debian/rules: Use variables in orig targets.
Modified: dists/trunk/linux-2.6/debian/rules
==============================================================================
--- dists/trunk/linux-2.6/debian/rules (original)
+++ dists/trunk/linux-2.6/debian/rules Fri Apr 28 22:03:51 2006
@@ -36,13 +36,16 @@
$(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; \
More information about the Kernel-svn-changes
mailing list