diff options
Diffstat (limited to 'translate/gcc')
-rw-r--r-- | translate/gcc/Make-lang.in | 7 | ||||
-rwxr-xr-x | translate/gcc/dist.sh | 13 | ||||
-rw-r--r-- | translate/gcc/lang-specs.h | 6 |
3 files changed, 17 insertions, 9 deletions
diff --git a/translate/gcc/Make-lang.in b/translate/gcc/Make-lang.in index cb7335c..0c2cc0f 100644 --- a/translate/gcc/Make-lang.in +++ b/translate/gcc/Make-lang.in @@ -139,7 +139,12 @@ vhdl.install-info: ghdl.info install-ghdllib: $(MAKE) -f vhdl/Makefile $(FLAGS_TO_PASS) $(VHDL_FLAGS_TO_PASS) install-ghdllib -vhdl.install-man: +vhdl.install-man: $(DESTDIR)$(man1dir)/ghdl$(man1ext) + +$(DESTDIR)$(man1dir)/ghdl$(man1ext): $(srcdir)/vhdl/ghdl.1 + -rm -f $@ + -$(INSTALL_DATA) $< $@ + -chmod a-x $@ vhdl.uninstall: -$(RM) $(DESTDIR)$(bindir)/ghdl$(exeext) diff --git a/translate/gcc/dist.sh b/translate/gcc/dist.sh index e03e686..4b0554b 100755 --- a/translate/gcc/dist.sh +++ b/translate/gcc/dist.sh @@ -39,7 +39,7 @@ set -e # GCC version -GCCVERSION=4.1.0 +GCCVERSION=4.1.1 # Machine name used by GCC MACHINE=i686-pc-linux-gnu # Directory where GCC sources (and objects) stay. @@ -105,7 +105,7 @@ for i in $lfiles; do ln -sf $CWD/$i $VHDLDIR/$i; done for i in $cfiles; do ln -sf $CWD/../../$i $VHDLDIR/$i; done -ln -sf $CWD/../../doc/ghdl.texi $VHDLDIR/ghdl.texi +for i in ghdl.texi ghdl.1; do ln -sf $CWD/../../doc/$i $VHDLDIR/$i; done for i in $tfiles; do ln -sf $CWD/../$i $VHDLDIR/$i; done @@ -212,7 +212,7 @@ do_compile2 () do_tar_install () { tar -C $DESTDIR -jcvf $TARINSTALL \ - ./$PREFIX/bin/ghdl ./$PREFIX/info/ghdl.info \ + ./$PREFIX/bin/ghdl ./$PREFIX/info/ghdl.info ./$PREFIX/man/man1/ghdl.1 \ ./$GCCLIBDIR/vhdl \ ./$GCCLIBEXECDIR/ghdl1 } @@ -248,9 +248,12 @@ do_distclean_gcc () rm -f ${DESTDIR}${PREFIX}/info/gcc.info* rm -f ${DESTDIR}${PREFIX}/info/gccinstall.info* rm -f ${DESTDIR}${PREFIX}/info/gccint.info* - rm -f ${DESTDIR}${PREFIX}/lib/*.a ${DESTDIR}${PREFIX}/lib/*.so* + rm -f ${DESTDIR}${PREFIX}/lib/*.a + rm -f ${DESTDIR}${PREFIX}/lib/*.so* + rm -f ${DESTDIR}${PREFIX}/lib/*.la rm -rf ${DESTDIR}${PREFIX}/share - rm -rf ${DESTDIR}${PREFIX}/man + rm -rf ${DESTDIR}${PREFIX}/man/man7 + rm -rf ${DESTDIR}${PREFIX}/man/man1/{cpp,gcc,gcov}.1 rm -rf ${DESTDIR}${PREFIX}/include rm -f ${DESTDIR}${GCCLIBEXECDIR}/cc1 ${DESTDIR}${GCCLIBEXECDIR}/collect2 rm -f ${DESTDIR}${GCCLIBEXECDIR}/cpp0 ${DESTDIR}${GCCLIBEXECDIR}/tradcpp0 diff --git a/translate/gcc/lang-specs.h b/translate/gcc/lang-specs.h index e8e79a2..0504435 100644 --- a/translate/gcc/lang-specs.h +++ b/translate/gcc/lang-specs.h @@ -22,7 +22,7 @@ Boston, MA 02111-1307, USA. */ /* This is the contribution to the `default_compilers' array in gcc.c for GHDL. */ - {".vhd", "@vhdl", 0}, - {".vhdl", "@vhdl", 0}, + {".vhd", "@vhdl", 0, 0, 0}, + {".vhdl", "@vhdl", 0, 0, 0}, {"@vhdl", - "ghdl1 %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}", 0}, + "ghdl1 %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}", 0, 0, 0}, |