aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/Makefile
diff options
context:
space:
mode:
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)