From a08d3ae5c0b50e66f7c85d455b159b51abbe36f3 Mon Sep 17 00:00:00 2001 From: lfittl Date: Wed, 11 Jan 2006 00:02:57 +0000 Subject: [PATCH] - Added clean-tmp target that only removes the object files, but leaves the static lib git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@469 7ec92016-0320-0410-acc4-a06ded1c099a --- Makefile | 5 ++++- src/Makefile | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 5513dc7..afcb5bc 100755 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: build check install clean +.PHONY: build check install clean-tmp clean build: $(MAKE) -C src @@ -9,6 +9,9 @@ install: $(MAKE) -C src install $(MAKE) -C include install +clean-tmp: + $(MAKE) -C src clean-tmp + clean: $(MAKE) -C src clean $(MAKE) -C test clean diff --git a/src/Makefile b/src/Makefile index cab6db1..2ac193a 100755 --- a/src/Makefile +++ b/src/Makefile @@ -6,10 +6,13 @@ CPPFLAGS = -I../include -DNDEBUG $(BIN): $(OBJ) ar rs $(BIN) $(OBJ) -.PHONY: clean install +.PHONY: install clean-tmp clean install: $(BIN) mkdir -p $(DESTDIR)/usr/lib install $(BIN) $(DESTDIR)/usr/lib -clean: - rm -f $(OBJ) $(BIN) +clean-tmp: + rm -f $(OBJ) + +clean: clean-tmp + rm -f $(BIN)