aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.in24
1 files changed, 12 insertions, 12 deletions
diff --git a/Makefile.in b/Makefile.in
index 98eb93a09..59793fcbd 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -404,14 +404,25 @@ ifeq ($(SOEXT),.dll)
-mv $(libghdl_name).exe $(libghdl_name)
endif
+$(srcdir)/src/synth/ghdlsynth_gates.h: $(srcdir)/src/synth/netlists.ads $(srcdir)/src/synth/netlists-gates.ads
+ echo "/* DO NOT MODIFY" > $@
+ echo " This file is automatically generated by Makefile. */" >> $@
+ echo "enum Module_Id {" >> $@
+ grep -h "constant Module_Id :=" $^ | sed -e '/constant Module_Id :=/s/:.*://' -e 's/;/,/' -e 's/ *--.*//' >> $@
+ echo "};" >> $@
+
all.libghdl.true: $(libghdl_name)
all.libghdl.false:
all.libghdl: all.libghdl.$(enable_libghdl)
+install.libghdl.include: install.dirs $(srcdir)/src/synth/ghdlsynth_gates.h
+ $(INSTALL_DATA) -p $(srcdir)/src/synth/ghdlsynth.h $(DESTDIR)$(incdir)/
+ $(INSTALL_DATA) -p $(srcdir)/src/synth/ghdlsynth_gates.h $(DESTDIR)$(incdir)/
+
install.libghdl.lib:
$(INSTALL_PROGRAM) -p $(libghdl_name) $(DESTDIR)$(libdir)/
-install.libghdl.true: install.libghdl.lib install.libghdlsynth.include
+install.libghdl.true: install.libghdl.lib install.libghdl.include
install.libghdl.false:
install.libghdl: install.libghdl.$(enable_libghdl)
@@ -424,17 +435,6 @@ libghdl-py.tgz:
$(CP) -r $(srcdir)/python/libghdl $(srcdir)/python/setup.py pythonb
tar -zcvf $@ -C pythonb .
-$(srcdir)/src/synth/ghdlsynth_gates.h: $(srcdir)/src/synth/netlists.ads $(srcdir)/src/synth/netlists-gates.ads
- echo "/* DO NOT MODIFY" > $@
- echo " This file is automatically generated by Makefile. */" >> $@
- echo "enum Module_Id {" >> $@
- grep -h "constant Module_Id :=" $^ | sed -e '/constant Module_Id :=/s/:.*://' -e 's/;/,/' -e 's/ *--.*//' >> $@
- echo "};" >> $@
-
-install.libghdlsynth.include: install.dirs $(srcdir)/src/synth/ghdlsynth_gates.h
- $(INSTALL_DATA) -p $(srcdir)/src/synth/ghdlsynth.h $(DESTDIR)$(incdir)/
- $(INSTALL_DATA) -p $(srcdir)/src/synth/ghdlsynth_gates.h $(DESTDIR)$(incdir)/
-
################ ghwdump #################################################
GHWDUMP_OBJS=ghwdump.o ghwlib.o