mirror of
https://github.com/nix-community/hpe-ltfs.git
synced 2026-01-03 19:03:59 +00:00
23 lines
736 B
Makefile
23 lines
736 B
Makefile
dist_sysconf_DATA = ltfs.conf
|
|
|
|
ltfs.conf: ltfs.conf.linux
|
|
rm -f ltfs.conf
|
|
sed -e "s!__LIBDIR__!@libdir@!" ltfs.conf.linux >ltfs.conf
|
|
mv ltfs.conf ltfs.conf.tmp
|
|
sed -e "s!__DEFAULT_DRIVER__!$(DEFAULT_DRIVER)!" ltfs.conf.tmp >ltfs.conf
|
|
mv ltfs.conf ltfs.conf.tmp
|
|
sed -e "s!__DEFAULT_IOSCHED__!$(DEFAULT_IOSCHED)!" ltfs.conf.tmp >ltfs.conf
|
|
mv ltfs.conf ltfs.conf.tmp
|
|
sed -e "s!__DEFAULT_KMI__!$(DEFAULT_KMI)!" ltfs.conf.tmp >ltfs.conf
|
|
mv ltfs.conf ltfs.conf.tmp
|
|
sed -e "s!__CONFDIR__!@sysconfdir@!" ltfs.conf.tmp >ltfs.conf
|
|
rm ltfs.conf.tmp
|
|
|
|
install-data-local:
|
|
if [ ! -f "$(sysconfdir)/ltfs.conf.local" ]; then \
|
|
cp ltfs.conf.local "$(sysconfdir)/ltfs.conf.local"; \
|
|
fi
|
|
|
|
clean-local:
|
|
rm -f ltfs.conf
|