Parcourir la source

Fix top level Makefile

H. Peter Anvin il y a 3 ans
Parent
commit
65dec219d1
1 fichiers modifiés avec 3 ajouts et 5 suppressions
  1. 3 5
      Makefile

+ 3 - 5
Makefile

@@ -1,18 +1,16 @@
 SUBDIRS = tools fw fpga
 
-all clean spotless : local $(SUBDIRS)
+all clean spotless :
+	$(MAKE) local.$@ $(SUBDIRS) goal=$@
 
 .PHONY: $(SUBDIRS)
 $(SUBDIRS):
-	$(MAKE) -C $< $(MAKECMDGOALS)
+	$(MAKE) -C $@ $(goal)
 
 fw: tools
 
 fpga: fw
 
-.PHONY: local
-local: $(patsubst %,%.local,$(MAKECMDGOALS))
-
 local.all:
 
 local.clean: