From 0a41019f02474e4819ecdd739814b849bc58b84e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 3 Jan 2020 19:26:13 +0000 Subject: [PATCH] build: Add depend goal and 'make depend'. --- Goalfile.in | 2 +- Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 1.8.3.1