From 898b1a531279bf8be83fc0801be84d8dae5a6dc9 Mon Sep 17 00:00:00 2001 From: lfittl Date: Sat, 7 Jan 2006 03:19:49 +0000 Subject: [PATCH] Fixed .PHONY targets git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@446 7ec92016-0320-0410-acc4-a06ded1c099a --- Makefile | 2 +- include/Makefile | 1 + src/Makefile | 2 +- test/Makefile | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1eba5af..252b8b3 100755 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ DESTDIR := $(CURDIR)/$(DESTDIR) +.PHONY: build check install clean build: $(MAKE) -C src @@ -10,7 +11,6 @@ install: $(MAKE) -C src install $(MAKE) -C include install -.PHONY: clean clean: $(MAKE) -C src clean $(MAKE) -C test clean diff --git a/include/Makefile b/include/Makefile index 2ecfb8b..3a941ea 100644 --- a/include/Makefile +++ b/include/Makefile @@ -1,3 +1,4 @@ +.PHONY: install install: mkdir -p $(DESTDIR)/usr/include/loki mkdir -p $(DESTDIR)/usr/include/loki/flex diff --git a/src/Makefile b/src/Makefile index eabfe04..5125440 100755 --- a/src/Makefile +++ b/src/Makefile @@ -5,10 +5,10 @@ CXXFLAGS = -I../include -Wall -O2 -DNDEBUG $(BIN): $(OBJ) ar rs $(BIN) $(OBJ) +.PHONY: clean install install: $(BIN) mkdir -p $(DESTDIR)/usr/lib install $(BIN) $(DESTDIR)/usr/lib -.PHONY: clean clean: rm -f $(OBJ) $(BIN) diff --git a/test/Makefile b/test/Makefile index de2a024..492faef 100755 --- a/test/Makefile +++ b/test/Makefile @@ -1,7 +1,7 @@ SUBTARGETS = Factory flex_string Longevity OrderedStatic RegressionTest \ SafeFormat ScopeGuard Singleton SmallObj Visitor -.PHONY: all $(SUBTARGETS) +.PHONY: clean all $(SUBTARGETS) all: $(SUBTARGETS) $(SUBTARGETS):