Make sure to 'make clean' includes demo-glib

This commit is contained in:
Paul LeoNerd Evans 2012-04-25 19:45:52 +01:00
parent 06fd040119
commit 1c816b753d
1 changed files with 4 additions and 2 deletions

View File

@ -38,6 +38,8 @@ ifeq ($(shell pkg-config glib-2.0 && echo 1),1)
DEMOS+=demo-glib DEMOS+=demo-glib
endif endif
DEMO_OBJECTS=$(DEMOS:=.lo)
TESTSOURCES=$(wildcard t/[0-9]*.c) TESTSOURCES=$(wildcard t/[0-9]*.c)
TESTFILES=$(TESTSOURCES:.c=.t) TESTFILES=$(TESTSOURCES:.c=.t)
@ -91,9 +93,9 @@ clean-test:
.PHONY: clean .PHONY: clean
clean: clean-test 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 -f $(LIBRARY)
$(LIBTOOL) --mode=clean rm -rf demo demo-async $(LIBTOOL) --mode=clean rm -rf $(DEMOS)
.PHONY: install .PHONY: install
install: install-inc install-lib install-man install: install-inc install-lib install-man