Whamcloud - gitweb
land b1_5 onto HEAD
[fs/lustre-release.git] / lustre / scripts / Makefile.am
index 4da183e..230664e 100644 (file)
@@ -3,13 +3,23 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-EXTRA_DIST = license-status maketags.sh lustre.spec version_tag.pl     \
-       $(initd_SCRIPTS) lustre.spec.in lustre-kernel-2.4.spec.in       \
-       lmake linux-merge-config.awk linux-merge-modules.awk            \
-       linux-rhconfig.h
+sbinscripts = lc_servip.sh lustre_up14.sh lustre_rmmod.sh
 
-initddir = $(sysconfdir)/init.d
-initd_SCRIPTS = lustre
+# These are scripts that are generated from .in files
+genscripts = lustre_config.sh lc_modprobe.sh lc_net.sh lc_hb.sh lc_cluman.sh lustre_createcsv.sh lc_md.sh lc_lvm.sh
 
-include $(top_srcdir)/Rules
+sbin_SCRIPTS = $(genscripts) $(sbinscripts)
+bin_SCRIPTS = lustre_req_history.sh
 
+EXTRA_DIST = license-status maketags.sh version_tag.pl.in lc_common.sh \
+            $(addsuffix .in,$(genscripts)) lc_mon.sh $(sbinscripts) \
+            $(bin_SCRIPTS)
+
+scriptlibdir = $(libdir)/@PACKAGE@
+scriptlib_DATA = lc_common.sh
+
+CLEANFILES = $(genscripts)
+
+$(genscripts): %.sh: %.sh.in
+       sed -e 's#@scriptlibdir@#$(scriptlibdir)#' < $< > $@
+       chmod +x $@