From 7b81982e98bd98cba5813dc2417d7e0d71bdc452 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 3 Jan 2020 19:18:48 +0000 Subject: [PATCH] build: Fix 'goals clean' rule. --- Goalfile.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 1.8.3.1