aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-26 18:10:20 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-26 18:10:20 +0000
commitc5734216455364a411616adc14a1859d2873bb4e (patch)
treef1504c566f81bbf326a36402dac17742f7dae809 /Makefile
parent19d7e99c465f78b1271e9a87f19dbaf01ea10004 (diff)
Merged revisions 104139 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104139 | qwell | 2008-02-26 12:09:13 -0600 (Tue, 26 Feb 2008) | 2 lines Since all shells aren't as awesome as bash, we have to fail if somebody tries to use a literal "~" in DESTDIR. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104140 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1b6616f59..7bf19a807 100644
--- a/Makefile
+++ b/Makefile
@@ -558,7 +558,14 @@ oldmodcheck:
echo " WARNING WARNING WARNING" ;\
fi
-install: datafiles bininstall $(SUBDIRS_INSTALL)
+badshell:
+ifneq ($(findstring ~,$(DESTDIR)),)
+ @echo "Your shell doesn't do ~ expansion when expected (specifically, when doing \"make install DESTDIR=~/path\")."
+ @echo "Try replacing ~ with \$$HOME, as in \"make install DESTDIR=\$$HOME/path\"."
+ @exit 1
+endif
+
+install: badshell datafiles bininstall $(SUBDIRS_INSTALL)
@if [ -x /usr/sbin/asterisk-post-install ]; then \
/usr/sbin/asterisk-post-install $(DESTDIR) . ; \
fi