summaryrefslogtreecommitdiff
path: root/wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper')
-rw-r--r--wrapper/main.mk.in (renamed from wrapper/Makefile.in)62
1 files changed, 11 insertions, 51 deletions
diff --git a/wrapper/Makefile.in b/wrapper/main.mk.in
index 9584a2a..8d53d3b 100644
--- a/wrapper/Makefile.in
+++ b/wrapper/main.mk.in
@@ -19,30 +19,7 @@ ver = 0.8r60
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-export rvs ?= @name@
-# directories ######################################################
-srcdir ?= @srcdir@
-prefix ?= @prefix@
-exec_prefix ?= @exec_prefix@
-bindir ?= @bindir@
-sbindir ?= @sbindir@
-libexecdir ?= @libexecdir@
-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
-CP ?= cp
-SED ?= sed
-INSTALL ?= install
-MKDIR ?= $(INSTALL) -d #mkdir -p
-INSTALL_PROGRAM ?= $(INSTALL)
-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
+rvs = @name@
CFLAGS = -g \
-DNAME=\"$(name)\" \
@@ -57,20 +34,20 @@ all : rvs runcom
VPATH = $(srcdir)/wrapper
# most everything ##################################################
-RUNCOM = $(libexecdir)/$(rvs)/runcom
+RUNCOM = $(DESTDIR)$(libexecdir)/$(rvs)/runcom
install : $(RVS) $(RUNCOM)
$(RVS) : rvs $(dir $(RVS))
$(INSTALL_PROGRAM) $< $@
-OBJ = runcom.o rvs.o plugins.o \
- plugin-depend.o \
- plugin-find.o \
- plugin-load.o \
- plugin-parse.o \
- plugin-run.o \
+#OBJ = runcom.o rvs.o plugins.o \
+# plugin-depend.o \
+# plugin-find.o \
+# plugin-load.o \
+# plugin-parse.o \
+# plugin-run.o \
-runcom: $(OBJ)
- gcc -o $@ $^
+#runcom: $(OBJ)
+# gcc -o $@ $^
$(RUNCOM): runcom $(dir $(RUNCOM))
$(INSTALL_PROGRAM) $< $@
@@ -87,7 +64,7 @@ rvs : rvs.sh
uninstall :
$(RM) $(RVS)
- $(RM) $(libexecdir)/$(rvs)/runcom
+ $(RM) $(DESTDIR)$(libexecdir)/$(rvs)/runcom
clean :
@@ -95,20 +72,3 @@ distclean : clean
$(RM) rvs
$(RM) Makefile
-# dist #############################################################
-
-d = $(name)-$(ver)
-dist : $(d).tar.gz
-
-$(d).tar.gz : $(d)
- tar -czf $@ $<
-
-$(d) : distclean
- $(INSTALL) -m 777 -d $@
- $(CP) -r $(srcdir)/* $@
-
-# implicit rules ###################################################
-
-$(dirs) $(libexecdir)/$(rvs) :
- $(MKDIR) $@
-