linux-rpm.mk: Move patch-% creation targets up because of clash with more general %.patch target

This commit is contained in:
Jan Lindemann 2005-05-18 13:17:08 +00:00 committed by Jan Lindemann
commit d1cc98eeec

View file

@ -107,6 +107,19 @@ version:
cvs commit -m "$(KERNEL_VERSION)" RELEASE-$(KERNEL_VERSION)
exit 1
patch-%:
make patches/$*-$(KERNEL_VERSION).patch
clean-patch-%:
rm -f patches/$*-$(KERNEL_VERSION).patch
make patches/$*-$(KERNEL_VERSION).patch
patches/%-$(KERNEL_VERSION).patch: unpack.done
export LANG=en_US ;\
diff --exclude=CVS --unidirectional-new-file -aur linux-$(KERNEL_VERSION) linux-$(KERNEL_VERSION)-$* | \
grep -vie "^Nur in \|Only in " > $@.part; exit 0
mv $@.part $@
patches.done: unpack.done $(addsuffix .done,$(notdir $(PATCHES)))
touch $@
@ -117,17 +130,6 @@ patches.done: unpack.done $(addsuffix .done,$(notdir $(PATCHES)))
%.patch:
cp $(filter %/$@,$(PATCHES)) $@
patch-%:
make patches/$*-$(KERNEL_VERSION).patch
clean-patch-%:
rm -f patches/$*-$(KERNEL_VERSION).patch
make patches/$*-$(KERNEL_VERSION).patch
patches/%-$(KERNEL_VERSION).patch: unpack.done
diff -Naur linux-$(KERNEL_VERSION) linux-$(KERNEL_VERSION)-$* > $@.part; exit 0
mv $@.part $@
unpack: unpack.done
patch: patches.done
prepare: unpack patch EXTRAVERSION COMPLETE_VERSION