linux-rpm.mk: Add patch-% patch creation targets

This commit is contained in:
Jan Lindemann 2005-05-18 12:21:02 +00:00 committed by Jan Lindemann
commit ff140977c8

View file

@ -117,6 +117,17 @@ 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