Skip to content
Snippets Groups Projects
Commit 0c4441c7 authored by Thorsten Wißmann's avatar Thorsten Wißmann
Browse files

Makefile: include .depend as a dependency

Use -include directive to tell Make that Make itself has to create the
.depend file. Therefore, add a .depend target in addition to the phony
depend target.
parent 9cea3319
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
NATIVE := true NATIVE := true
# If defined, the dependencies will be updated automatically. # If defined, the dependencies will be updated automatically.
CHECKDEP := CHECKDEP := 1
# If defined, it indicates the number of cores # If defined, it indicates the number of cores
# that make should use (e.g. -j2 for two cores). # that make should use (e.g. -j2 for two cores).
...@@ -107,12 +107,11 @@ clean: ...@@ -107,12 +107,11 @@ clean:
.PHONY: depend .PHONY: depend
depend: depend: .depend
$(OCAMLDEP) $(SOURCESMLI) $(SOURCESML) > .depend
ifdef CHECKDEP ifdef CHECKDEP
.depend: $(SOURCESMLI) $(SOURCESML) .depend: $(SOURCESMLI) $(SOURCESML)
$(OCAMLDEP) $(SOURCESMLI) $(SOURCESML) > .depend $(OCAMLDEP) $(SOURCESMLI) $(SOURCESML) > $@
endif endif
include .depend -include .depend
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment