summaryrefslogtreecommitdiffstats
path: root/regen-makefile.sh
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-01-29 11:37:25 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-01-29 11:51:52 +0100
commit5c9d99f735bd49c9afa0030756213585d292cac7 (patch)
treeb2684a6ca5af01e9511fda4b6169506143fd31ac /regen-makefile.sh
parentbd939f0307ff586f9e459db2420de69b72818358 (diff)
regen-makefile.sh: Support Archlinux install paths
Archlinux (titan-git AUR package) installs everything (includes, libs and bin) into /usr/ttcn/ prefix. Change-Id: I545f2f04890310e98233b04b44c4614df34f2f17
Diffstat (limited to 'regen-makefile.sh')
-rwxr-xr-xregen-makefile.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/regen-makefile.sh b/regen-makefile.sh
index f757fa3..e89b3ee 100755
--- a/regen-makefile.sh
+++ b/regen-makefile.sh
@@ -20,5 +20,9 @@ sed -i -e 's/LDFLAGS = /LDFLAGS = -L \/usr\/lib\/titan /' Makefile
sed -i -e 's/CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)\/include/CPPFLAGS = -D$(PLATFORM) -DMAKEDEPEND_RUN -I$(TTCN3_DIR)\/include -I\/usr\/include\/titan/' Makefile
# for TITAN 6.3.0
-sed -i -e 's/TTCN3_DIR = $/TTCN3_DIR = \/usr/' Makefile
+if cat /etc/issue | grep "Arch Linux" >/dev/null 2>&1; then
+ sed -i -e 's/TTCN3_DIR = $/TTCN3_DIR = \/usr\/ttcn3/' Makefile
+else
+ sed -i -e 's/TTCN3_DIR = $/TTCN3_DIR = \/usr/' Makefile
+fi
sed -i -e 's/\/bin\/compiler/\/bin\/ttcn3_compiler/' Makefile