From 5c9d99f735bd49c9afa0030756213585d292cac7 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 29 Jan 2018 11:37:25 +0100 Subject: 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 --- regen-makefile.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'regen-makefile.sh') diff --git a/regen-makefile.sh b/regen-makefile.sh index f757fa33..e89b3eeb 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 -- cgit v1.2.3