This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
MahiroOS-jhalfs/Makefile
2005-11-01 11:45:41 +00:00

19 lines
579 B
Makefile

# 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 README
install:
install -v -d $(BIN)
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)