linux-rpm.mk: Add support for .diff extension of patch files

This commit is contained in:
Jan Lindemann 2007-04-04 13:28:37 +00:00 committed by Jan Lindemann
commit 676bbb5a73

View file

@ -121,7 +121,8 @@ clean-patch-%:
patches/%-$(KERNEL_VERSION).patch: unpack.done
export LANG=en_US ;\
diff --exclude=CVS --unidirectional-new-file -aur linux-$(KERNEL_VERSION) linux-$(KERNEL_VERSION)-$* | \
diff --exclude=CVS --unidirectional-new-file -aur \
linux-$(KERNEL_VERSION) linux-$(KERNEL_VERSION)-$* | \
grep -vie "^Nur in \|Only in " > $@.part; exit 0
mv $@.part $@
@ -132,7 +133,16 @@ patches.done: unpack.done $(addsuffix .done,$(notdir $(PATCHES)))
patch -d linux-$(KERNEL_VERSION) -p1 < $<
touch $@
%.diff.done: %.diff
patch -d linux-$(KERNEL_VERSION) -p1 < $<
touch $@
%.patch:
make $(filter %/$@,$(PATCHES))
cp $(filter %/$@,$(PATCHES)) $@
%.diff:
make $(filter %/$@,$(PATCHES))
cp $(filter %/$@,$(PATCHES)) $@
unpack: unpack.done