Makefile has a GAJIM_AP var to help the build of autopackage

This commit is contained in:
Yann Leboulanger 2005-06-09 11:34:32 +00:00
parent 1e948307c2
commit 7f788a918e
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,6 @@
VERSION ?= 0.7.1
GAJIM_AP = 0
MODULES = src src/common po
PREFIX = /usr
DESTDIR = /
@ -74,7 +75,11 @@ install:
mkdir -p "$(DESTDIR)$(PREFIX)/bin";
for s in $(SCRIPTS) ; do \
BASE=`basename "$$s"`; \
F=`cat "$$s" | sed -e 's!PREFIX!$(PREFIX)!g'`; \
if [ $(GAJIM_AP) -ne 0 ] ; then \
F=`cat "$$s"`; \
else \
F=`cat "$$s" | sed -e 's!PREFIX!$(PREFIX)!g'`; \
fi; \
echo "$$F" > "$(DESTDIR)$(PREFIX)/bin/$$BASE"; \
chmod +x "$(DESTDIR)$(PREFIX)/bin/$$BASE"; \
done