From: Richard W.M. Jones Date: Fri, 3 Jan 2020 19:26:13 +0000 (+0000) Subject: build: Add depend goal and 'make depend'. X-Git-Tag: v'0.2'~88 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=0a41019f02474e4819ecdd739814b849bc58b84e;p=goals.git build: Add depend goal and 'make depend'. --- diff --git a/Goalfile.in b/Goalfile.in index 8fd899b..aec3e5f 100644 --- a/Goalfile.in +++ b/Goalfile.in @@ -77,7 +77,7 @@ goal maintainer-clean = : clean { # XXX Goalfile itself depends on this and we should probably have a # way to reevaluate it. # XXX Atomic output. -"src/.depend" : { +goal depend () = "src/.depend" : { rm -f %@ %@-t # Like many existing tools, ocamldep produces make-compatible # output which doesn't work directly in goals. diff --git a/Makefile.in b/Makefile.in index 7bb2d1c..f518c26 100644 --- a/Makefile.in +++ b/Makefile.in @@ -19,7 +19,7 @@ # Pass through normal targets to Goalfile.in # XXX Why can't this parse "all" instead of "all ()"? -all clean install: src/goals +all clean depend install: src/goals ./run src/goals "$@ ()" # If src/goals doesn't exist then brute-force build it. Once we have