1998-02-04 12:15:46 +00:00
|
|
|
all: changecode
|
|
|
|
|
|
|
|
install: all
|
|
|
|
install -c -s -g bin -o bin -m 755 changecode ${PREFIX}/bin
|
|
|
|
install -c -g bin -o bin -m 755 xtem ${PREFIX}/bin
|
|
|
|
install -c -g bin -o bin -m 644 xtem.1 ${PREFIX}/man/man1
|
|
|
|
@echo "Installing files into ${PREFIX}/share/xtem..."
|
|
|
|
@mkdir -p ${PREFIX}/share/xtem
|
|
|
|
@tar -cf - . | (cd ${PREFIX}/share/xtem; \
|
|
|
|
tar -x --exclude *.orig --exclude *.bak --exclude changecode -f -)
|
|
|
|
@echo "Installing local files..."
|
1998-02-09 12:42:59 +00:00
|
|
|
@[ -d ${PREFIX}/share/xtem_locals_english ] && rm -rf ${PREFIX}/share/xtem_locals_english
|
|
|
|
@mv -f ${PREFIX}/share/xtem/locals_english.LRW ${PREFIX}/share/xtem_locals_english
|
|
|
|
@[ -d ${PREFIX}/share/xtem_locals_german ] && rm -rf ${PREFIX}/share/xtem_locals_german
|
|
|
|
@mv -f ${PREFIX}/share/xtem/locals_german.LRW ${PREFIX}/share/xtem_locals_german
|
1998-02-04 12:15:46 +00:00
|
|
|
@rm -f ${PREFIX}/share/xtem/locals_english
|
|
|
|
@ln -sf ../xtem_locals_english ${PREFIX}/share/xtem/locals_english
|
|
|
|
@rm -f ${PREFIX}/share/xtem/locals_german
|
|
|
|
@ln -sf ../xtem_locals_german ${PREFIX}/share/xtem/locals_german
|
|
|
|
@echo "Fix ownership and permissions..."
|
|
|
|
@chown -R bin:bin ${PREFIX}/share/xtem \
|
|
|
|
${PREFIX}/share/xtem_locals_english \
|
|
|
|
${PREFIX}/share/xtem_locals_german
|
|
|
|
|