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))))
.SUFFIXES:
OBJDIR := .build
MAKETARGET = $(MAKE) --no-print-directory -C $@ -f $(CURDIR)/Makefile \
MAKETARGET = $(MAKE) --no-print-directory -C $(OBJDIR) -f $(CURDIR)/Makefile \
SRCDIR=$(CURDIR) $(MAKECMDGOALS)
.PHONY: $(OBJDIR) clean
$(OBJDIR):
+@$(call MAKEDIR,$@)
all:
+@$(call MAKEDIR,$(OBJDIR))
+@$(MAKETARGET)
$(OBJDIR): all
Makefile : ;
% :: $(OBJDIR) ; :
clean :