Handle installcheck.
[automake.git] / lib / am / clean.am
blob74e7765ca5fadb8a9d81c64424eec24f21d87150
1 ## We must test each macro because it might be empty, and an empty
2 ## "rm -rf" command looks disturbing.
4 ## Each "if" must always have an else because, in some versions of sh,
5 ## "if" will return false if the test fails and there is no else
6 ## clause.  Bogus!
8 mostlyclean-generic:
9         if test -n "$(MOSTLYCLEANFILES)"; then  \
10           rm -f $(MOSTLYCLEANFILES);            \
11         else                                    \
12           true;                                 \
13         fi
15 clean-generic:
16         if test -n "$(CLEANFILES)"; then        \
17           rm -f $(CLEANFILES);                  \
18         else                                    \
19           true;                                 \
20         fi
22 distclean-generic:
23         rm -f Makefile $(DISTCLEANFILES)
24         rm -f config.cache config.log config.status ${CONFIG_HEADER} stamp-h
26 maintainer-clean-generic:
27         if test -n "$(MAINTAINERCLEANFILES)"; then \
28           rm -f $(MAINTAINERCLEANFILES);        \
29         else                                    \
30           true;                                 \
31         fi