aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/zpool-layout/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/zpool-layout/Makefile.am')
-rw-r--r--scripts/zpool-layout/Makefile.am22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/zpool-layout/Makefile.am b/scripts/zpool-layout/Makefile.am
new file mode 100644
index 000000000..3eef2412d
--- /dev/null
+++ b/scripts/zpool-layout/Makefile.am
@@ -0,0 +1,22 @@
+pkglibexecdir = $(libexecdir)/@PACKAGE@/zpool-layout
+dist_pkglibexec_SCRIPTS = \
+ $(top_srcdir)/scripts/zpool-layout/dragon.ddn.conf \
+ $(top_srcdir)/scripts/zpool-layout/dragon.llnl.conf
+
+all:
+ @list='$(dist_pkglibexec_SCRIPTS)'; \
+ for file in $$list; do \
+ link=$$(basename $$file); \
+ if [ ! -e $$link ]; then \
+ $(LN_S) $$file $$link; \
+ fi \
+ done
+
+clean:
+ @list='$(dist_pkglibexec_SCRIPTS)'; \
+ for file in $$list; do \
+ link=$$(basename $$file); \
+ if [ -L $$link ]; then \
+ $(RM) $$link; \
+ fi \
+ done