Makefile: fix partial rebuild

This commit is contained in:
fincs 2019-11-24 12:48:51 +01:00
parent ac17c9a885
commit 188b8b9ebd
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -123,14 +123,14 @@ release:
debug:
@[ -d $@ ] || mkdir -p $@
lib/libwut.a :$(SOURCES) $(INCLUDES) | lib release
lib/libwut.a : lib release $(SOURCES) $(INCLUDES)
@$(MAKE) BUILD=release OUTPUT=$(CURDIR)/$@ \
BUILD_CFLAGS="-DNDEBUG=1 -O2" \
DEPSDIR=$(CURDIR)/release \
--no-print-directory -C release \
-f $(CURDIR)/Makefile
lib/libwutd.a : $(SOURCES) $(INCLUDES) | lib debug
lib/libwutd.a : lib debug $(SOURCES) $(INCLUDES)
@$(MAKE) BUILD=debug OUTPUT=$(CURDIR)/$@ \
BUILD_CFLAGS="-DDEBUG=1 -Og" \
DEPSDIR=$(CURDIR)/debug \