Skip to content

Commit

Permalink
minor tweak of make
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Apr 23, 2017
1 parent ef5c301 commit 9cdd34b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions GNUmakefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ include $(Ppack)
all: $(amrexlib)
@echo SUCCESS

.PHONY: distclean

distclean: realclean
$(SILENT) $(RM) GNUmakefile

Expand Down
4 changes: 3 additions & 1 deletion Tools/GNUMake/Make.rules
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ $(depEXETempDir)/f90.depends: $(f90EXE_sources) $(F90EXE_sources)
ifneq ($(MAKECMDGOALS),realclean)
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),uninstall)
ifneq ($(MAKECMDGOALS),distclean)

ifdef CEXE_sources
-include $(CEXE_sources:%.cpp=$(depEXETempDir)/%.d)
Expand All @@ -250,8 +251,9 @@ endif
endif
endif
endif
endif

ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean realclean file_locations tags TAGS uninstall))
ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean realclean file_locations tags TAGS uninstall distclean))
ifdef has_compiler_mismatch
$(error $(has_compiler_mismatch))
endif
Expand Down

0 comments on commit 9cdd34b

Please sign in to comment.