Force all to be the default target

pull/2060/head
Jimmy Brisson 2016-06-30 11:43:01 -05:00
parent 6c1c7a5955
commit 3850c2628b
1 changed files with 4 additions and 3 deletions

View File

@ -13,12 +13,13 @@ endif
ifeq (,$(filter .build,$(notdir $(CURDIR)))) ifeq (,$(filter .build,$(notdir $(CURDIR))))
.SUFFIXES: .SUFFIXES:
OBJDIR := .build OBJDIR := .build
MAKETARGET = $(MAKE) --no-print-directory -C $@ -f $(CURDIR)/Makefile \ MAKETARGET = $(MAKE) --no-print-directory -C $(OBJDIR) -f $(CURDIR)/Makefile \
SRCDIR=$(CURDIR) $(MAKECMDGOALS) SRCDIR=$(CURDIR) $(MAKECMDGOALS)
.PHONY: $(OBJDIR) clean .PHONY: $(OBJDIR) clean
$(OBJDIR): all:
+@$(call MAKEDIR,$@) +@$(call MAKEDIR,$(OBJDIR))
+@$(MAKETARGET) +@$(MAKETARGET)
$(OBJDIR): all
Makefile : ; Makefile : ;
% :: $(OBJDIR) ; : % :: $(OBJDIR) ; :
clean : clean :