Added installation Makefile.

This commit is contained in:
Manuel Canales Esparcia 2005-11-01 01:55:47 +00:00
parent c62847c875
commit 569fdb6a52
3 changed files with 22 additions and 2 deletions

18
Makefile Normal file
View file

@ -0,0 +1,18 @@
# Makefile to install jhalfs system-wide
# Where the files will be installed
BIN=/usr/bin
CONFIG=/etc/jhalfs
DATA=/usr/share/jhalfs
# List of additional files
DATAFILES=functions dump-lfs-scripts.xsl
install:
install -v -d $(CONFIG)
install -v -d $(DATA)
sed 's|source jhalfs.conf|source $(CONFIG)/jhalfs.conf|' jhalfs > $(BIN)/jhalfs
chmod -v 744 $(BIN)/jhalfs
sed 's|XSL.|&$(DATA)/|;s|FILES..|&$(DATA)/|;/FILES/s| | $(DATA)/|g' jhalfs.conf > $(CONFIG)/jhalfs.conf
chmod -v 644 $(CONFIG)/jhalfs.conf
install -v -m 644 $(DATAFILES) $(DATA)

2
jhalfs
View file

@ -981,7 +981,7 @@ if [ -z $DL ] ; then
fi
[[ ! -d $JHALFSDIR ]] && mkdir -pv $JHALFSDIR
[[ "$PWD" != "$JHALFSDIR" ]] && cp -v $0 $XSL $FILES $JHALFSDIR/
[[ "$PWD" != "$JHALFSDIR" ]] && cp -v $FILES $JHALFSDIR/
[[ ! -d $LOGDIR ]] && mkdir -v $LOGDIR
>$LOGDIR/$LOG

View file

@ -7,9 +7,11 @@
declare -r SVN="svn://svn.linuxfromscratch.org"
declare -r HTTP=http://ftp.lfs-matrix.net/pub/lfs/lfs-packages/conglomeration
declare -r XSL=dump-lfs-scripts.xsl
declare -r FILES="functions jhalfs.conf"
declare -r LOG=000-jhalfs.log
#--- Files that will be copied to $JHALFSDIR
FILES="functions dump-lfs-scripts.xsl"
#--- Mount point for the build
BUILDDIR=/mnt/lfs