contrib.mk / linux-rpm.mk: Make clean targets sharper

- Shift removal of everything into distclean target
  - Add support for CFG_CLEAN variable
This commit is contained in:
Jan Lindemann 2005-04-18 15:53:15 +00:00 committed by Jan Lindemann
commit 594d1272b9
2 changed files with 8 additions and 9 deletions

View file

@ -103,7 +103,8 @@ config-$(KERNEL_VERSION):
cvs commit
toplevel-makefile: unpack.done
sed "s/\(^ *EXTRAVERSION *= *[^ ]*\) *$$/\\1_$(KERNEL_RELEASE)/" linux-$(KERNEL_VERSION)/Makefile >$@
sed "s/\(^ *EXTRAVERSION *= *[^ ]*\) *$$/\\1$(shell echo _$(KERNEL_RELEASE) | sed 's/^_/-/')/" \
linux-$(KERNEL_VERSION)/Makefile >$@
linux-$(KERNEL_VERSION)/Makefile: toplevel-makefile
cp $< $@