Bugged gnuc Makefile

Started by
0 comments, last by WitchLord 12 years, 8 months ago
Here's a snippet from the gnuc Makefile:
# If you want to build a shared library, then run make with SHARED=1 and VERSION=version
ifdef SHARED
LIB = libangelscript-$(VERSION).so
DEVLIB = libangelscript.so
else
LIB = libangelscript.a
endif


Later:
clean:
$(DELETER) $(OBJ) $(BIN) $(LIBDIR)/$(DEVLIB)


So in case the SHARED env is non-present, $(LIBDIR)/$(DEVLIB) is evaluated to ../../lib/ and 'make clean' fails due to rm's target being a directory. I worked around this by setting DEVLIB to libangelscript.a in the non-SHARED else block.
Advertisement
Thanks. I've applied this fix in the SVN (rev 929).

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement