mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
linux-rpm.mk: Move patch-% creation targets up because of clash with more general %.patch target
This commit is contained in:
parent
ff140977c8
commit
d1cc98eeec
1 changed files with 13 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue