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

19 lines
550 B
Makefile
Raw Normal View History

2005-11-01 02:55:47 +01:00
# 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)