]> git.tdb.fi Git - gldbg.git/blobdiff - Makefile
Rewrite genwrap.py to use external templates for more flexibility
[gldbg.git] / Makefile
index 736f05ab4028b8afbe84b571b5ccfd5b7c9d4452..33a2f4e824f0f0a09f0d9ef9a719a40a666e2477 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,8 +35,11 @@ source/commandinterpreter.o: source/commandinterpreter.cpp source/gldbg.h
 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