Skip to content
Snippets Groups Projects
Commit 5938c4ea authored by sof's avatar sof
Browse files

[project @ 1997-10-02 19:28:05 by sof]

Use exeext; removed non-#! support for cygwin32 (no longer needed)
parent 76cf76a9
No related merge requests found
......@@ -389,13 +389,7 @@ $(SCRIPT_PROG) :: $(SCRIPT_OBJS)
@echo Creating $@...
ifeq "$(INTERP)" "perl"
ifneq "$(BIN_DIST)" "1"
@if test $(HOSTPLATFORM) = "i386-unknown-cygwin32" ; then \
echo "#! /bin/sh -- # to stop perl from looping " > $@ ; \
echo "eval 'exec perl -S $$$""0 $$""{1+\"$$$""@\"}'" >> $@ ; \
echo " if $$""running_under_some_shell;" >> $@ ; \
else \
echo "#! "$(PERL) > $@ ; \
fi;
echo "#! "$(PERL) > $@
else
@touch $@
endif
......@@ -465,7 +459,7 @@ ifneq "$(INSTALL_PROGS)" ""
install:: $(INSTALL_PROGS)
@$(INSTALL_DIR) $(bindir)
for i in $(INSTALL_PROGS); do \
$(INSTALL_PROGRAM) $(INSTALL_BIN_OPTS) $$i $(bindir); \
$(INSTALL_PROGRAM) $(INSTALL_BIN_OPTS) $$i$(exeext) $(bindir); \
done
endif
......@@ -480,13 +474,7 @@ ifeq "$(INTERP)" "perl"
ifneq "$(BIN_DIST)" "1"
@for i in $(INSTALL_SCRIPTS); do \
$(RM) $$i.tmp; \
if test $(HOSTPLATFORM) = "i386-unknown-cygwin32" ; then \
echo "#! /bin/sh -- # to stop perl from looping " > $$i.tmp ; \
echo "eval 'exec perl -S $$$""0 $$""{1+\"$$$""@\"}'" >> $$i.tmp ; \
echo " if $$""running_under_some_shell;" >> $$i.tmp ; \
else \
echo "#! $(PERL)" > $$i.tmp ; \
fi; \
echo "#! $(PERL)" > $$i.tmp ; \
echo $$"bindir='$(bindir)';" >> $$i.tmp ; \
echo $$"libdir='$(libdir)';" >> $$i.tmp ; \
echo $$"libexecdir='$(libexecdir)';" >> $$i.tmp ; \
......@@ -515,13 +503,7 @@ ifeq "$(INTERP)" "perl"
ifneq "$(BIN_DIST)" "1"
@for i in $(INSTALL_LIB_SCRIPTS); do \
$(RM) $$i.tmp; \
if test $(HOSTPLATFORM) = "i386-unknown-cygwin32" ; then \
echo "#! /bin/sh -- # to stop perl from looping " > $$i.tmp ; \
echo "eval 'exec perl -S $$$""0 $$""{1+\"$$$""@\"}'" >> $$i.tmp ; \
echo " if $$""running_under_some_shell;" >> $$i.tmp ; \
else \
echo "#! $(PERL)" > $$i.tmp ; \
fi; \
echo "#! $(PERL)" > $$i.tmp ; \
echo $$"bindir='$(bindir)';" >> $$i.tmp ; \
echo $$"libdir='$(libdir)';" >> $$i.tmp ; \
echo $$"libexecdir='$(libexecdir)';" >> $$i.tmp ; \
......@@ -550,13 +532,7 @@ ifeq "$(INTERP)" "perl"
ifneq "$(BIN_DIST)" "1"
@for i in $(INSTALL_LIBEXEC_SCRIPTS); do \
$(RM) $$i.tmp; \
if test $(HOSTPLATFORM) = "i386-unknown-cygwin32" ; then \
echo "#! /bin/sh -- # to stop perl from looping " > $$i.tmp ; \
echo "eval 'exec perl -S $$$""0 $$""{1+\"$$$""@\"}'" >> $$i.tmp ; \
echo " if $$""running_under_some_shell;" >> $$i.tmp ; \
else \
echo "#! $(PERL)" > $$i.tmp ; \
fi; \
echo "#! $(PERL)" > $$i.tmp ; \
echo $$"bindir='$(bindir)';" >> $$i.tmp ; \
echo $$"libdir='$(libdir)';" >> $$i.tmp ; \
echo $$"libexecdir='$(libexecdir)';" >> $$i.tmp ; \
......@@ -596,7 +572,7 @@ ifneq "$(INSTALL_LIBEXECS)" ""
install:: $(INSTALL_LIBEXECS)
@$(INSTALL_DIR) $(libexecdir)
-for i in $(INSTALL_LIBEXECS); do \
$(INSTALL_PROGRAM) $(INSTALL_BIN_OPTS) $$i $(libexecdir); \
$(INSTALL_PROGRAM) $(INSTALL_BIN_OPTS) $$i$(exeext) $(libexecdir); \
done
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment