summaryrefslogtreecommitdiff
path: root/wrapper/Makefile.in
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-09-13 15:20:14 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:15 -0600
commit3e100e9de3cec5ec5e9a641e782ae47ca095233d (patch)
tree4419164e75c32490a96307335a9fd2c80d8161b4 /wrapper/Makefile.in
parent3f829bcc56a0dff2ba4ed6e1a1c081b6262fbed9 (diff)
bichun!
fixed makefiles, moved around files The wrapper is now a hybrid shell-C program. A shell script does the integrated commands, but it calls the C program (`$(libexecdir)/rvs/runcom') to launch plugins Note that right now, it does EVERYTHING BUT launch plugins.
Diffstat (limited to 'wrapper/Makefile.in')
-rw-r--r--wrapper/Makefile.in26
1 files changed, 22 insertions, 4 deletions
diff --git a/wrapper/Makefile.in b/wrapper/Makefile.in
index 85f56f7..a6eef15 100644
--- a/wrapper/Makefile.in
+++ b/wrapper/Makefile.in
@@ -31,6 +31,7 @@ dirs = $(srcdir) $(prefix) $(exec_prefix) $(bindir) $(sbindir) $(libexecdir)/
#export srcdir prefix exec_prefix bindir sbindir libexecdir
# programs #########################################################
+CC = @CC@
RVS ?= @RVS@
SHELL ?= @SHELL@
RM ?= rm
@@ -43,19 +44,36 @@ INSTALL_DATA ?= $(INSTALL) -m 644
TOUCH ?= touch # This file doesn't use touch
#export RVS SHELL RM CP SED INSTALL MKDIR INSTALL_PROGRAM INSTALL_DATA TOUCH
+CFLAGS = -DLIBEXECDIR=\"$(libexecdir)\" -DPLUGIN_CONF=\"plugin.conf\"
+
# phony targets ####################################################
-all : rvs
-.PHONY : install uninstall clean distclean dist
+all : rvs runcom
+.PHONY : install uninstall clean distclean dist install-runcom
.SUFFIXES : .c .o
VPATH = $(srcdir)/wrapper
# most everything ##################################################
-install : $(RVS)
-$(RVS) : rvs $(bindir)
+RUNCOM = $(libexecdir)/$(rvs)/runcom
+install : $(RVS) $(RUNCOM)
+$(RVS) : rvs $(dir $(RVS))
+ $(INSTALL_PROGRAM) $< $@
+
+$(RUNCOM): runcom $(dir $(RUNCOM))
+ $(INSTALL_PROGRAM) $< $@
+
+b := @
+# build shell scripts
+rvs : rvs.sh
$(INSTALL_PROGRAM) $< $@
+ $(SED) -i \
+ -e 's/$bSHELL@/$(subst /,\/,$(SHELL))/g' \
+ -e 's/$bname@/$(rvs)/g' \
+ -e 's/$blibexecdir@/$(subst /,\/,$(libexecdir))/g' \
+ $@
uninstall :
$(RM) $(RVS)
+ $(RM) $(libexecdir)/$(rvs)/runcom
clean :