Make sure output directories exist.

The targets themselves cannot have these dependencies, because they
use $^ and thus putting the dependent target in there screws up
the build.
This commit is contained in:
Tom Fogal 2011-01-25 14:27:57 -07:00
parent e504a5883f
commit e564a97c81

View File

@ -80,11 +80,14 @@ VISUALINFO.BIN.SRCS = src/visualinfo.c
VISUALINFO.BIN.OBJS = $(VISUALINFO.BIN.SRCS:.c=.o)
BIN.LIBS = -Llib $(LDFLAGS.DYNAMIC) -l$(NAME) $(LDFLAGS.EXTRA) $(LDFLAGS.GL)
all debug: lib/$(LIB.SHARED) lib/$(LIB.STATIC) bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) glew.pc
all debug: lib bin lib/$(LIB.SHARED) lib/$(LIB.STATIC) bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN) glew.pc
lib:
mkdir lib
bin:
mkdir bin
lib/$(LIB.STATIC): $(LIB.OBJS)
$(AR) cr $@ $^