Skip to content

Commit e513c8e

Browse files
committed
Fix make distclean
1 parent c3c207b commit e513c8e

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

Makefile.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ pdfdoc: doc/cilpp.tex
256256

257257
.PHONY: distclean cleandoc cleancilly clean
258258
distclean: clean
259+
$(MAKE) -C test distclean
260+
rm -rf autom4te.cache/
259261
rm -f Makefile
260262
rm -f $(CILLYDIR)/App/Cilly/CilConfig.pm
261263
rm -f config.h
@@ -276,6 +278,9 @@ clean: $(CILLYDIR)/Makefile
276278
rm -rf $(OBJDIR)
277279
rm -f $(BINDIR)/$(CILLY).*
278280
rm -rf doc/html/
281+
rm -rf doc/cilcode.tmp/
282+
rm -f doc/cil.version.*
283+
rm -f doc/cilpp.*
279284
$(MAKE) -C $(CILLYDIR) clean
280285
rm -f $(CILLYDIR)/App/Cilly.pm
281286
rm -f $(CILLYDIR)/Makefile.old

test/Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,25 @@ clean:
2626
-name '*.a' -o \
2727
-name '*.stackdump' -o \
2828
-name '*.exe' -o \
29-
-name '*.i' -o \
29+
\( -name '*.i' -a -not -name 'lineno.i' -a -not -name 'empty.i' \) -o \
30+
-name '*.cmi' -o \
31+
-name '*.cmo' -o \
32+
-name '*.err' -o \
33+
-name '*.out' -o \
3034
-name '*_ppp.c' -o \
3135
-name '*.origi' -o \
3236
-name '*.o' -o \
3337
-name '*.obj' -o \
3438
-name '*.cabs.c' -o \
3539
-name "*-tmp.c" -o \
3640
-name '*_comb*.c' -o \
37-
-name 'libmerge.a*' \
41+
-name 'libmerge.a*' -o \
42+
-name 'merge-ar' \
3843
\) -exec rm -f {} \;
3944
-find . -name '*.browser' -exec rm -rf {} \;
4045

46+
distclean: clean
47+
rm -f cil.log*
4148

4249
CILHOME := $(CURDIR)/..
4350
CILLY := $(CILHOME)/bin/cilly

0 commit comments

Comments
 (0)