+ @$(INSTALL_DIR) $(bindir)
+ @for i in $(INSTALL_PROGS); do \
+ echo $(INSTALL_PROGRAM) $(INSTALL_BIN_OPTS) $$i$(exeext) $(bindir); \
+ $(INSTALL_PROGRAM) $(INSTALL_BIN_OPTS) $$i$(exeext) $(bindir); \
+ done
+endif
+
+#
+# Just like INSTALL_PROGS, but prefix with install sites bin/lib/data and
+# install without stripping.
+#
+ifneq "$(INSTALL_SCRIPTS)" ""
+install:: $(INSTALL_SCRIPTS)
+ @$(INSTALL_DIR) $(bindir)
+ifeq "$(INTERP)" "perl"
+ifneq "$(BIN_DIST)" "1"
+ @for i in $(INSTALL_SCRIPTS); do \
+ $(RM) $$i.tmp; \
+ echo "#! $(PERL)" > $$i.tmp ; \
+ echo '$$'"bindir='$(bindir)';" >> $$i.tmp ; \
+ echo '$$'"libdir='$(libdir)';" >> $$i.tmp ; \
+ echo '$$'"libexecdir='$(libexecdir)';" >> $$i.tmp ; \
+ echo '$$'"datadir='$(datadir)';" >> $$i.tmp ; \
+ cat $$i >> $$i.tmp ; \
+ echo $(INSTALL_PROGRAM) $(filter-out -s,$(INSTALL_BIN_OPTS)) $$i.tmp $(bindir)/$$i ; \
+ $(INSTALL_PROGRAM) $(filter-out -s,$(INSTALL_BIN_OPTS)) $$i.tmp $(bindir)/$$i ; \
+ $(RM) $$i.tmp; \
+ done
+else
+ for i in $(INSTALL_SCRIPTS); do \
+ $(INSTALL_PROGRAM) $(INSTALL_OPTS) $$i $(bindir); \
+ done
+endif
+else
+ for i in $(INSTALL_SCRIPTS); do \
+ $(INSTALL_PROGRAM) $(INSTALL_OPTS) $$i $(bindir); \
+ done
+endif
+endif
+
+ifneq "$(INSTALL_LIB_SCRIPTS)" ""
+install:: $(INSTALL_LIB_SCRIPTS)
+ @$(INSTALL_DIR) $(libdir)
+ifeq "$(INTERP)" "perl"
+ifneq "$(BIN_DIST)" "1"
+ @for i in $(INSTALL_LIB_SCRIPTS); do \
+ $(RM) $$i.tmp; \
+ echo "#! $(PERL)" > $$i.tmp ; \
+ echo '$$'"bindir='$(bindir)';" >> $$i.tmp ; \
+ echo '$$'"libdir='$(libdir)';" >> $$i.tmp ; \
+ echo '$$'"libexecdir='$(libexecdir)';" >> $$i.tmp ; \
+ echo '$$'"datadir='$(datadir)';" >> $$i.tmp ; \
+ cat $$i >> $$i.tmp ; \
+ echo $(INSTALL_PROGRAM) $(INSTALL_OPTS) $$i $(libdir) ; \
+ $(INSTALL_PROGRAM) $(INSTALL_OPTS) $$i.tmp $(libdir)/$$i ; \
+ $(RM) $$i.tmp; \
+ done
+else
+ for i in $(INSTALL_LIB_SCRIPTS); do \
+ $(INSTALL_PROGRAM) $(INSTALL_OPTS) $$i $(libdir); \
+ done
+endif
+else
+ for i in $(INSTALL_LIB_SCRIPTS); do \
+ $(INSTALL_PROGRAM) $(INSTALL_OPTS) $$i $(libdir); \
+ done
+endif
+endif
+
+ifneq "$(INSTALL_LIBEXEC_SCRIPTS)" ""
+install:: $(INSTALL_LIBEXEC_SCRIPTS)
+ @$(INSTALL_DIR) $(libexecdir)
+ifeq "$(INTERP)" "perl"
+ifneq "$(BIN_DIST)" "1"
+ @for i in $(INSTALL_LIBEXEC_SCRIPTS); do \
+ $(RM) $$i.tmp; \
+ echo "#! $(PERL)" > $$i.tmp ; \
+ echo '$$'"bindir='$(bindir)';" >> $$i.tmp ; \
+ echo '$$'"libdir='$(libdir)';" >> $$i.tmp ; \
+ echo '$$'"libexecdir='$(libexecdir)';" >> $$i.tmp ; \
+ echo '$$'"datadir='$(datadir)';" >> $$i.tmp ; \
+ cat $$i >> $$i.tmp ; \
+ echo $(INSTALL_PROGRAM) $(INSTALL_OPTS) $$i $(libexecdir) ; \
+ $(INSTALL_PROGRAM) $(INSTALL_OPTS) $$i.tmp $(libexecdir)/$$i ; \
+ $(RM) $$i.tmp; \
+ done
+else
+ for i in $(INSTALL_LIBEXEC_SCRIPTS); do \
+ $(INSTALL_PROGRAM) $(INSTALL_OPTS) $$i $(libexecdir); \
+ done
+endif
+else
+ for i in $(INSTALL_LIBEXEC_SCRIPTS); do \
+ $(INSTALL_PROGRAM) $(INSTALL_OPTS) $$i $(libexecdir); \
+ done
+endif