aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-04-25 19:45:52 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-04-25 19:45:52 +0100
commit1c816b753d994ec43c44181bc1df586ee3d73112 (patch)
tree8d66275269525148ad1b623af9f7e0d6decb9039
parent06fd04011950efdbcb14eead47fe73ec4c2194d6 (diff)
downloadtermo-1c816b753d994ec43c44181bc1df586ee3d73112.tar.gz
termo-1c816b753d994ec43c44181bc1df586ee3d73112.tar.xz
termo-1c816b753d994ec43c44181bc1df586ee3d73112.zip
Make sure to 'make clean' includes demo-glib
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bd0a61e..0dc7b8b 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,8 @@ ifeq ($(shell pkg-config glib-2.0 && echo 1),1)
DEMOS+=demo-glib
endif
+DEMO_OBJECTS=$(DEMOS:=.lo)
+
TESTSOURCES=$(wildcard t/[0-9]*.c)
TESTFILES=$(TESTSOURCES:.c=.t)
@@ -91,9 +93,9 @@ clean-test:
.PHONY: clean
clean: clean-test
- $(LIBTOOL) --mode=clean rm -f $(OBJECTS) demo.lo demo-async.lo
+ $(LIBTOOL) --mode=clean rm -f $(OBJECTS) $(DEMO_OBJECTS)
$(LIBTOOL) --mode=clean rm -f $(LIBRARY)
- $(LIBTOOL) --mode=clean rm -rf demo demo-async
+ $(LIBTOOL) --mode=clean rm -rf $(DEMOS)
.PHONY: install
install: install-inc install-lib install-man