Makefile: use $(MAKE) and $(RM) instead of make and rm -f
See: http://www.gnu.org/software/make/manual/make.html#MAKE-Variablemaster
parent
30cd3616e9
commit
5150d44a7e
18
Makefile
18
Makefile
|
|
@ -54,14 +54,14 @@ ifeq (1,${WITH_SWITCH_ROOT})
|
||||||
endif
|
endif
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *~
|
$(RM) *~
|
||||||
rm -f */*~
|
$(RM) */*~
|
||||||
rm -f */*/*~
|
$(RM) */*/*~
|
||||||
rm -f modules.d/99base/switch_root
|
$(RM) modules.d/99base/switch_root
|
||||||
rm -f test-*.img
|
$(RM) test-*.img
|
||||||
rm -f dracut-*.rpm dracut-*.tar.bz2
|
$(RM) dracut-*.rpm dracut-*.tar.bz2
|
||||||
rm -f $(manpages)
|
$(RM) $(manpages)
|
||||||
make -C test clean
|
$(MAKE) -C test clean
|
||||||
|
|
||||||
archive: dracut-$(VERSION)-$(GITVERSION).tar.bz2
|
archive: dracut-$(VERSION)-$(GITVERSION).tar.bz2
|
||||||
|
|
||||||
|
|
@ -91,7 +91,7 @@ check: all
|
||||||
@ret=0;for i in modules.d/99base/init modules.d/*/*.sh; do \
|
@ret=0;for i in modules.d/99base/init modules.d/*/*.sh; do \
|
||||||
dash -n "$$i" ; ret=$$(($$ret+$$?)); \
|
dash -n "$$i" ; ret=$$(($$ret+$$?)); \
|
||||||
done;exit $$ret
|
done;exit $$ret
|
||||||
make -C test check
|
$(MAKE) -C test check
|
||||||
|
|
||||||
testimage: all
|
testimage: all
|
||||||
./dracut -l -a debug -f test-$(shell uname -r).img $(shell uname -r)
|
./dracut -l -a debug -f test-$(shell uname -r).img $(shell uname -r)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue