summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-10-28 18:49:08 -0700
committerKaz Kylheku <kaz@kylheku.com>2013-10-28 18:49:08 -0700
commit680e658f58e9bf7786800668725ff59a1963b793 (patch)
tree711f96f5202c40b437dcf9adaec02c994aafc1ba /Makefile
parent1f9f41ef07063675b0dbf643b0bf10b9ac144880 (diff)
downloadtxr-680e658f58e9bf7786800668725ff59a1963b793.tar.gz
txr-680e658f58e9bf7786800668725ff59a1963b793.tar.bz2
txr-680e658f58e9bf7786800668725ff59a1963b793.zip
* Makefile (clean): depends on conftest.clean
(conftest.clean): New target. * configure: Use "make conftest.clean" to clean up conftest stuff. Note that there was a bug here: brace expansion was used, but the shell is /bin/sh, so conftest.err wasn't being removed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 98ed9030..1c4644d1 100644
--- a/Makefile
+++ b/Makefile
@@ -75,7 +75,7 @@ $(MPI_OBJS): CFLAGS += -DXCALLOC=chk_calloc -DXFREE=free
rebuild: clean repatch $(PROG)
.PHONY: clean
-clean:
+clean: conftest.clean
rm -f $(PROG) $(OBJS) $(OBJS-y) \
y.tab.c lex.yy.c y.tab.h y.output $(TESTS:.ok=.out)
@@ -190,3 +190,9 @@ conftest.yacc:
.PHONY: conftest.ccver
conftest.ccver:
@$(CC) --version
+
+.PHONY: conftest.clean
+conftest.clean:
+ rm -f conftest conftest.[co] \
+ conftest2 conftest[12].[oc] \
+ conftest.err conftest.syms