]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Makefile: use $(MAKE) and $(RM) instead of make and rm -f
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Fri, 6 Aug 2010 09:49:50 +0000 (11:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 6 Aug 2010 09:53:02 +0000 (11:53 +0200)
See: http://www.gnu.org/software/make/manual/make.html#MAKE-Variable

Makefile

index c177275ee0d891cbc8a7b9875866b04a9717e6fc..99044d768b9d0b83cff37b0fe22a8cc27e91a0b1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -54,14 +54,14 @@ ifeq (1,${WITH_SWITCH_ROOT})
 endif
 
 clean:
-       rm -f *~
-       rm -f */*~
-       rm -f */*/*~
-       rm -f modules.d/99base/switch_root
-       rm -f test-*.img
-       rm -f dracut-*.rpm dracut-*.tar.bz2
-       rm -f $(manpages)
-       make -C test clean
+       $(RM) *~
+       $(RM) */*~
+       $(RM) */*/*~
+       $(RM) modules.d/99base/switch_root
+       $(RM) test-*.img
+       $(RM) dracut-*.rpm dracut-*.tar.bz2
+       $(RM) $(manpages)
+       $(MAKE) -C test clean
 
 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 \
                dash -n "$$i" ; ret=$$(($$ret+$$?)); \
        done;exit $$ret
-       make -C test check
+       $(MAKE) -C test check
 
 testimage: all
        ./dracut -l -a debug -f test-$(shell uname -r).img $(shell uname -r)