aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/Makefile
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-10-03 05:51:24 +0200
committerTristan Gingold <tgingold@free.fr>2017-10-03 05:51:24 +0200
commitc88790b96b70bd6cb10b806978c34c42f2616e6f (patch)
tree6ab8f938b3f7731686dc84de476de6ad37c51587 /src/vhdl/Makefile
parent4e05204aa6fc73e440196bcc9be14cf2e1b9b6a4 (diff)
downloadghdl-c88790b96b70bd6cb10b806978c34c42f2616e6f.tar.gz
ghdl-c88790b96b70bd6cb10b806978c34c42f2616e6f.tar.bz2
ghdl-c88790b96b70bd6cb10b806978c34c42f2616e6f.zip
WIP: python binding to libghdl
Diffstat (limited to 'src/vhdl/Makefile')
-rw-r--r--src/vhdl/Makefile15
1 files changed, 14 insertions, 1 deletions
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)