aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-04-30 10:07:33 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-04-30 10:07:33 +0300
commitd38a65f812c74acc859c8ea36e26c28cfbeffcc9 (patch)
tree0f4aa60e1fe39a04863657d94afff46a82215e09 /Makefile.in
parentf586cd49506935eb48a6afeaff6988087f947ed1 (diff)
parent665ec924795675c32d7178613367ec9f7a7d08e1 (diff)
downloadegawk-d38a65f812c74acc859c8ea36e26c28cfbeffcc9.tar.gz
egawk-d38a65f812c74acc859c8ea36e26c28cfbeffcc9.tar.bz2
egawk-d38a65f812c74acc859c8ea36e26c28cfbeffcc9.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 6d974d00..d286b1da 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1173,17 +1173,21 @@ uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS
# For GNU systems where gawk is awk, add a link to awk.
# (This is done universally, which may not always be right, but
# there's no easy way to distinguish GNU from non-GNU systems.)
+#
+# Use the transform, in case --program-prefix=XXX
install-exec-hook:
(cd $(DESTDIR)$(bindir); \
- $(LN) gawk$(EXEEXT) gawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \
+ name=`echo gawk | sed '$(transform)'` ; \
+ $(LN) $${name}$(EXEEXT) gawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \
if [ ! -f awk$(EXEEXT) ]; \
- then $(LN_S) gawk$(EXEEXT) awk$(EXEEXT); \
+ then $(LN_S) $${name}$(EXEEXT) awk$(EXEEXT); \
fi; exit 0)
# Undo the above when uninstalling
uninstall-links:
(cd $(DESTDIR)$(bindir); \
- if [ -f awk$(EXEEXT) ] && cmp awk$(EXEEXT) gawk$(EXEEXT) > /dev/null; then rm -f awk$(EXEEXT); fi ; \
+ name=`echo gawk | sed '$(transform)'` ; \
+ if [ -f awk$(EXEEXT) ] && cmp awk$(EXEEXT) $${name}$(EXEEXT) > /dev/null; then rm -f awk$(EXEEXT); fi ; \
rm -f gawk-$(VERSION)$(EXEEXT); exit 0)
uninstall-recursive: uninstall-links