Re-write .pc files unconditionally, in case GLEW_DEST is specified on command line.

#189 Generated .pc files are "easy to break"
This commit is contained in:
Nigel Stewart 2012-11-11 13:09:20 -06:00
parent 38b7f7d09f
commit 41c1305a89

View File

@ -123,6 +123,10 @@ tmp/$(SYSTEM)/default/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wgl
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
$(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) -o $@ -c $< $(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
# Force re-write of glew.pc, GLEW_DEST can vary
.PHONY: glew.pc
glew.pc: glew.pc.in glew.pc: glew.pc.in
sed \ sed \
-e "s|@prefix@|$(GLEW_DEST)|g" \ -e "s|@prefix@|$(GLEW_DEST)|g" \
@ -159,6 +163,10 @@ tmp/$(SYSTEM)/mx/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
$(CC) -DGLEW_NO_GLU -DGLEW_MX $(CFLAGS) $(CFLAGS.SO) -o $@ -c $< $(CC) -DGLEW_NO_GLU -DGLEW_MX $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
# Force re-write of glewmx.pc, GLEW_DEST can vary
.PHONY: glewmx.pc
glewmx.pc: glew.pc.in glewmx.pc: glew.pc.in
sed \ sed \
-e "s|@prefix@|$(GLEW_DEST)|g" \ -e "s|@prefix@|$(GLEW_DEST)|g" \