Skip to content

Commit

Permalink
Merge pull request #10 from OutpostUniverse/cleanupMakefilePhonyRules
Browse files Browse the repository at this point in the history
Cleanup makefile `.PHONY` rules
  • Loading branch information
DanRStevens authored Apr 1, 2019
2 parents e12050d + c7eeb29 commit 8112125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $(OBJS): $(OBJDIR)/%.o : $(SRCDIR)/%.cpp $(DEPDIR)/%.d | build-folder
$(COMPILE.cpp) $(OUTPUT_OPTION) $<
$(POSTCOMPILE)

.PHONY:build-folder
.PHONY: build-folder
build-folder:
@mkdir -p $(patsubst $(SRCDIR)/%,$(OBJDIR)/%, $(FOLDERS))
@mkdir -p $(patsubst $(SRCDIR)/%,$(DEPDIR)/%, $(FOLDERS))
Expand All @@ -38,7 +38,7 @@ $(DEPDIR)/%.d: ;

include $(wildcard $(patsubst $(SRCDIR)/%.cpp,$(DEPDIR)/%.d,$(SRCS)))

.PHONY:clean, clean-deps, clean-all
.PHONY: clean clean-deps clean-all
clean:
-rm -fr $(OBJDIR)
-rm -fr $(DEPDIR)
Expand Down

0 comments on commit 8112125

Please sign in to comment.