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-03 18:45:54 +00:00

20 lines
609 B
Makefile

# Makefile to install jhalfs system-wide
# Where the files will be installed
PREFIX=/usr
BIN=$(PREFIX)/bin
CONFIG=/etc/jhalfs
DATA=$(PREFIX)/share/jhalfs
# List of additional files
DATAFILES=functions dump-lfs-scripts.xsl README LICENSE
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)