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

21 lines
601 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
PREFIX=/usr
BIN=$(PREFIX)/bin
2005-11-01 02:55:47 +01:00
CONFIG=/etc/jhalfs
DATA=$(PREFIX)/share/jhalfs
2005-11-01 02:55:47 +01:00
# List of additional files
2005-11-01 12:38:41 +01:00
DATAFILES=functions dump-lfs-scripts.xsl README
2005-11-01 02:55:47 +01:00
install:
2005-11-01 12:45:41 +01:00
install -v -d $(BIN)
2005-11-01 02:55:47 +01:00
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)