Commit cc8e84c9 by Christian Cornelssen Committed by Andreas Jaeger

Make-lang.in (f77.install-common, [...]): Prepend $(DESTDIR) to destination…

Make-lang.in (f77.install-common, [...]): Prepend $(DESTDIR) to destination paths in all (un)installation commands.

2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>

	* Make-lang.in (f77.install-common, f77.install-info,
	f77.install-man, f77.uninstall): Prepend $(DESTDIR) to
	destination paths in all (un)installation commands.

From-SVN: r61077
parent 90961eff
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* Make-lang.in (f77.install-common, f77.install-info,
f77.install-man, f77.uninstall): Prepend $(DESTDIR) to
destination paths in all (un)installation commands.
2003-01-05 Toon Moene <toon@moene.indiv.nluug.nl> 2003-01-05 Toon Moene <toon@moene.indiv.nluug.nl>
* news.texi: Revise history again: * news.texi: Revise history again:
......
...@@ -246,13 +246,13 @@ f77.install-normal: ...@@ -246,13 +246,13 @@ f77.install-normal:
f77.install-common: installdirs f77.install-common: installdirs
-if [ -f f771$(exeext) ] ; then \ -if [ -f f771$(exeext) ] ; then \
if [ -f g77-cross$(exeext) ] ; then \ if [ -f g77-cross$(exeext) ] ; then \
rm -f $(bindir)/$(G77_CROSS_NAME)$(exeext); \ rm -f $(DESTDIR)$(bindir)/$(G77_CROSS_NAME)$(exeext); \
$(INSTALL_PROGRAM) g77-cross$(exeext) $(bindir)/$(G77_CROSS_NAME)$(exeext); \ $(INSTALL_PROGRAM) g77-cross$(exeext) $(DESTDIR)$(bindir)/$(G77_CROSS_NAME)$(exeext); \
chmod a+x $(bindir)/$(G77_CROSS_NAME)$(exeext); \ chmod a+x $(DESTDIR)$(bindir)/$(G77_CROSS_NAME)$(exeext); \
else \ else \
rm -f $(bindir)/$(G77_INSTALL_NAME)$(exeext); \ rm -f $(DESTDIR)$(bindir)/$(G77_INSTALL_NAME)$(exeext); \
$(INSTALL_PROGRAM) g77$(exeext) $(bindir)/$(G77_INSTALL_NAME)$(exeext); \ $(INSTALL_PROGRAM) g77$(exeext) $(DESTDIR)$(bindir)/$(G77_INSTALL_NAME)$(exeext); \
chmod a+x $(bindir)/$(G77_INSTALL_NAME)$(exeext); \ chmod a+x $(DESTDIR)$(bindir)/$(G77_INSTALL_NAME)$(exeext); \
fi ; \ fi ; \
else true; fi else true; fi
@if [ -f f77-install-ok -o -f $(srcdir)/f77-install-ok ]; then \ @if [ -f f77-install-ok -o -f $(srcdir)/f77-install-ok ]; then \
...@@ -269,43 +269,43 @@ f77.install-common: installdirs ...@@ -269,43 +269,43 @@ f77.install-common: installdirs
# to do the install. The sed rule was copied from stmp-int-hdrs. # to do the install. The sed rule was copied from stmp-int-hdrs.
f77.install-info: f77.info installdirs f77.install-info: f77.info installdirs
if [ -f $(srcdir)/f/g77.info ] ; then \ if [ -f $(srcdir)/f/g77.info ] ; then \
rm -f $(infodir)/g77.info*; \ rm -f $(DESTDIR)$(infodir)/g77.info*; \
for f in $(srcdir)/f/g77.info*; do \ for f in $(srcdir)/f/g77.info*; do \
realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \ realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
$(INSTALL_DATA) $$f $(infodir)/$$realfile; \ $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/$$realfile; \
done; \ done; \
chmod a-x $(infodir)/g77.info*; \ chmod a-x $(DESTDIR)$(infodir)/g77.info*; \
else true; fi else true; fi
@if [ -f $(srcdir)/f/g77.info ] ; then \ @if [ -f $(srcdir)/f/g77.info ] ; then \
if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
echo " install-info --info-dir=$(infodir) $(infodir)/g77.info"; \ echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info"; \
install-info --info-dir=$(infodir) $(infodir)/g77.info || : ; \ install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info || : ; \
else : ; fi; \ else : ; fi; \
else : ; fi else : ; fi
f77.install-man: $(GENERATED_MANPAGES) installdirs f77.install-man: $(GENERATED_MANPAGES) installdirs
-if [ -f f771$(exeext) ] ; then \ -if [ -f f771$(exeext) ] ; then \
if [ -f g77-cross$(exeext) ] ; then \ if [ -f g77-cross$(exeext) ] ; then \
rm -f $(man1dir)/$(G77_CROSS_NAME)$(man1ext); \ rm -f $(DESTDIR)$(man1dir)/$(G77_CROSS_NAME)$(man1ext); \
$(INSTALL_DATA) $(srcdir)/f/g77.1 $(man1dir)/$(G77_CROSS_NAME)$(man1ext); \ $(INSTALL_DATA) $(srcdir)/f/g77.1 $(DESTDIR)$(man1dir)/$(G77_CROSS_NAME)$(man1ext); \
chmod a-x $(man1dir)/$(G77_CROSS_NAME)$(man1ext); \ chmod a-x $(DESTDIR)$(man1dir)/$(G77_CROSS_NAME)$(man1ext); \
else \ else \
rm -f $(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \ rm -f $(DESTDIR)$(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \
$(INSTALL_DATA) $(srcdir)/f/g77.1 $(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \ $(INSTALL_DATA) $(srcdir)/f/g77.1 $(DESTDIR)$(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \
chmod a-x $(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \ chmod a-x $(DESTDIR)$(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \
fi; \ fi; \
else true; fi else true; fi
f77.uninstall: installdirs f77.uninstall: installdirs
if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
echo " install-info --delete --info-dir=$(infodir) $(infodir)/g77.info"; \ echo " install-info --delete --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info"; \
install-info --delete --info-dir=$(infodir) $(infodir)/g77.info || : ; \ install-info --delete --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/g77.info || : ; \
else : ; fi else : ; fi
rm -rf $(bindir)/$(G77_INSTALL_NAME)$(exeext); \ rm -rf $(DESTDIR)$(bindir)/$(G77_INSTALL_NAME)$(exeext); \
rm -rf $(bindir)/$(G77_CROSS_NAME)$(exeext); \ rm -rf $(DESTDIR)$(bindir)/$(G77_CROSS_NAME)$(exeext); \
rm -rf $(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \ rm -rf $(DESTDIR)$(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \
rm -rf $(man1dir)/$(G77_CROSS_NAME)$(man1ext); \ rm -rf $(DESTDIR)$(man1dir)/$(G77_CROSS_NAME)$(man1ext); \
rm -rf $(infodir)/g77.info* rm -rf $(DESTDIR)$(infodir)/g77.info*
# #
# Clean hooks: # Clean hooks:
# A lot of the ancillary files are deleted by the main makefile. # A lot of the ancillary files are deleted by the main makefile.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment