Skip to content
Snippets Groups Projects
Commit 15e6353f authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1998-02-02 12:41:15 by simonm]

Add support for links to versioned driver scripts.
parent 707c6d4c
No related merge requests found
...@@ -407,6 +407,16 @@ endif ...@@ -407,6 +407,16 @@ endif
@echo Done. @echo Done.
endif endif
# links to script programs: we sometimes install a script as
# <name>-<version> with a link from <name> to the real script.
ifneq "$(SCRIPT_LINK)" ""
all :: $(SCRIPT_LINK)
$(SCRIPT_LINK) : $(SCRIPT_PROG)
$(LN_S) $(SCRIPT_PROG) $(SCRIPT_LINK)
endif
########################################### ###########################################
# #
...@@ -478,7 +488,7 @@ ifneq "$(BIN_DIST)" "1" ...@@ -478,7 +488,7 @@ ifneq "$(BIN_DIST)" "1"
echo '$$'"libexecdir='$(libexecdir)';" >> $$i.tmp ; \ echo '$$'"libexecdir='$(libexecdir)';" >> $$i.tmp ; \
echo '$$'"datadir='$(datadir)';" >> $$i.tmp ; \ echo '$$'"datadir='$(datadir)';" >> $$i.tmp ; \
cat $$i >> $$i.tmp ; \ cat $$i >> $$i.tmp ; \
echo $(INSTALL_PROGRAM) $(filter-out -s,$(INSTALL_OPTS)) $$i.tmp $(bindir)/$$i ; \ 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 ; \ $(INSTALL_PROGRAM) $(filter-out -s,$(INSTALL_BIN_OPTS)) $$i.tmp $(bindir)/$$i ; \
$(RM) $$i.tmp; \ $(RM) $$i.tmp; \
done done
...@@ -619,6 +629,14 @@ install-strip:: ...@@ -619,6 +629,14 @@ install-strip::
@$(MAKE) EXTRA_INSTALL_OPTS='-s' install @$(MAKE) EXTRA_INSTALL_OPTS='-s' install
endif endif
#
# install links to script drivers.
#
ifneq "$(SCRIPT_LINK)" ""
install ::
$(LN_S) $(SCRIPT_PROG) $(bindir)/$(SCRIPT_LINK)
endif
########################################### ###########################################
# #
# Targets: dist binary-dist # Targets: dist binary-dist
......
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