source/process.o: source/process.cpp source/process.h
$(CXX) -c $(CXXFLAGS) $(CXXFLAGS_gldbg) -o $@ $<
-gensrc/functions.enum gensrc/gldecoder.funcs gensrc/gldecoder.struct gensrc/glwrap.funcs gensrc/glprint.funcs: gensrc/.created genwrap.py gl.spec gl.tm
- python ./genwrap.py
+gensrc/%: source/%.t gensrc/.created genwrap.py
+ python ./genwrap.py $< >$@
+
+#gensrc/functions.enum gensrc/gldecoder.funcs gensrc/gldecoder.struct gensrc/glwrap.funcs gensrc/glprint.funcs: gensrc/.created genwrap.py gl.spec gl.tm
+# python ./genwrap.py
gensrc/.created:
mkdir -p gensrc