Ok, let's not try to generate the remove list if there is no library to remove things from

git-svn-id: svn://10.0.0.236/trunk@50255 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cls%seawood.org
1999-10-08 21:17:32 +00:00
parent ca11a90c92
commit 075aedf4ee

View File

@@ -579,9 +579,11 @@ $(LIBRARY)(%.o): %.o
$(LIBRARY:%.a=.%.timestamp) :
@touch $@
ifneq (, $(LIBRARY))
AR_FILES_TO_REMOVE := $(filter-out \
$(filter %.o, $(LIBRARY)($(OBJS) $(LOBJS)) ), \
$(shell [ -f $(LIBRARY) ] && $(AR_LIST) $(LIBRARY)))
endif
$(LIBRARY): $(LIBRARY)($(OBJS) $(LOBJS)) $(LIBRARY:%.a=.%.timestamp) Makefile.in Makefile
@touch $(LIBRARY:%.a=.%.timestamp)