summaryrefslogtreecommitdiff
path: root/conf/Makefile.in
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2013-06-28 14:08:04 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2013-07-02 15:22:11 +0200
commit21554ab5fe958b09eed853f3bfefa61c4c130604 (patch)
tree1ca15fd36821c82ed18bbd4ec43a12a943a28f77 /conf/Makefile.in
parent6d1ed2254ccfe2a34f1423ea2359cf6a554e8d9e (diff)
downloadlvm2-21554ab5fe958b09eed853f3bfefa61c4c130604.tar.gz
profile: add default.profile and install it
The default.profile contains all settings that are customizable by a profile. This default profile can be copied across to create new profiles.
Diffstat (limited to 'conf/Makefile.in')
-rw-r--r--conf/Makefile.in13
1 files changed, 11 insertions, 2 deletions
diff --git a/conf/Makefile.in b/conf/Makefile.in
index c63e3ce66..c148ac2a7 100644
--- a/conf/Makefile.in
+++ b/conf/Makefile.in
@@ -18,14 +18,23 @@ top_builddir = @top_builddir@
CONFSRC=example.conf
CONFDEST=lvm.conf
+DEFAULT_PROFILE=default.profile
+PROFILES=$(DEFAULT_PROFILE)
+
include $(top_builddir)/make.tmpl
-install_lvm2: $(CONFSRC)
+install_conf: $(CONFSRC)
@if [ ! -e $(confdir)/$(CONFDEST) ]; then \
echo "$(INSTALL_WDATA) -D $< $(confdir)/$(CONFDEST)"; \
$(INSTALL_WDATA) -D $< $(confdir)/$(CONFDEST); \
fi
+install_profiles: $(PROFILES)
+ $(INSTALL) -d $(DEFAULT_PROFILE_DIR)
+ $(INSTALL_DATA) $(PROFILES) $(DEFAULT_PROFILE_DIR)/
+
+install_lvm2: install_conf install_profiles
+
install: install_lvm2
-DISTCLEAN_TARGETS += $(CONFSRC)
+DISTCLEAN_TARGETS += $(CONFSRC) $(DEFAULT_PROFILE)