From: Richard W.M. Jones Date: Fri, 3 Jan 2020 19:18:48 +0000 (+0000) Subject: build: Fix 'goals clean' rule. X-Git-Tag: v'0.2'~92 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=7b81982e98bd98cba5813dc2417d7e0d71bdc452;p=goals.git build: Fix 'goals clean' rule. --- diff --git a/Goalfile.in b/Goalfile.in index 2fcf7dd..07fd682 100644 --- a/Goalfile.in +++ b/Goalfile.in @@ -41,13 +41,16 @@ let objects = [ "src/main.cmx" ] +let subdirs = [ "m4", "src", "stdlib", "tests" ] + goal all = : ocaml_link ("src/goals", objects) goal clean = { - for d in `find -type d`; do + for d in %subdirs; do pushd $d rm -f *~ rm -f *.cmi *.cmo *.cmx *.o + popd done rm -f src/parser.ml src/parser.mli src/lexer.ml src/parser.conflicts