- 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
This commit is contained in:
lfittl 2006-01-11 00:02:57 +00:00
parent 15edde135c
commit a08d3ae5c0
2 changed files with 10 additions and 4 deletions

View file

@ -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

View file

@ -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)