From c88790b96b70bd6cb10b806978c34c42f2616e6f Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 3 Oct 2017 05:51:24 +0200 Subject: WIP: python binding to libghdl --- src/vhdl/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/vhdl/Makefile') diff --git a/src/vhdl/Makefile b/src/vhdl/Makefile index e479f5c82..7f3f51245 100644 --- a/src/vhdl/Makefile +++ b/src/vhdl/Makefile @@ -21,10 +21,12 @@ # regenerate them (and don't need to have python installed). PNODES=../xtools/pnodes.py +PNODESPY=python/pnodespy.py DEPS=iirs.ads nodes.ads $(PNODES) -GEN_FILES=iirs.adb nodes_meta.ads nodes_meta.adb +GEN_FILES=iirs.adb nodes_meta.ads nodes_meta.adb \ + python/libghdl/iirs.py python/libghdl/nodes_meta.py all: $(GEN_FILES) @@ -43,5 +45,16 @@ nodes_meta.adb: nodes_meta.adb.in $(DEPS) $(PNODES) meta_body > $@ chmod -w $@ +python/libghdl/iirs.py: $(DEPS) $(PNODESPY) + $(RM) $@ + $(PNODESPY) libghdl-iirs > $@ + chmod -w $@ + +python/libghdl/nodes_meta.py: $(DEPS) $(PNODESPY) + $(RM) $@ + $(PNODESPY) libghdl-meta > $@ + chmod -w $@ + + clean: $(RM) -f $(GEN_FILES) -- cgit v1.2.3