summaryrefslogtreecommitdiff
path: root/rvs/main.mk.in
diff options
context:
space:
mode:
authorLuke Shumaker <luke@HP-dv6246us-u910.(none)>2010-03-28 12:25:08 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:19 -0600
commit98f2efbe20e2d9d03e5296293cc8f52c95af72f5 (patch)
treedf5ab79539c7a4b5bc5a056dc14a4f7a4c5be665 /rvs/main.mk.in
parentd4a42ee34928970141b8299c104d47c0f3faecd0 (diff)
Rework rvs a lot (no longer needs complex C dependency tracker!)
Rework ./configure, and how it uses `srcdir'. Probably broke all the other packages. Oh well, everything only half-works right now.
Diffstat (limited to 'rvs/main.mk.in')
-rw-r--r--rvs/main.mk.in44
1 files changed, 21 insertions, 23 deletions
diff --git a/rvs/main.mk.in b/rvs/main.mk.in
index 2d55793..11fca5c 100644
--- a/rvs/main.mk.in
+++ b/rvs/main.mk.in
@@ -17,11 +17,16 @@ ver = 0.9
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
-rvs = $(name)
-dirs += $(libexecdir)/$(rvs)
+sysconfdir ?= @sysconfdir@
+BINDIR ?= @BINDIR@
+TMPDIR ?= @TMPDIR@
+LIBDIR ?= @LIBDIR@
+ETCDIR ?= @ETCDIR@
+dirs += $(sysconfdir) $(BINDIR) $(TMPDIR) $(LIBDIR) $(ETCDIR)
# phony targets ######################################################
-all : wrapper p-build
+.PHONY: all
+all : wrapper plugins
.SUFFIXES :
VPATH = $(srcdir)
filelist = \
@@ -35,25 +40,11 @@ filelist = \
$(patsubst $(srcdir)/%,%,$(shell find $(srcdir)/*/* -type f))
# install ############################################################
-install : install-wrapper libexec p-install
-
-# $(libexecdir)/rvs/*
-libexec : $(DESTDIR)$(libexecdir)/$(rvs)/plugins
-$(DESTDIR)$(libexecdir)/$(rvs)/plugins : $(DESTDIR)$(libexecdir)/$(rvs)
- touch $@
-
-# uninstall ##########################################################
-
-uninstall :
- $(RM) $(DESTDIR)$(bindir)/$(rvs)
- $(RM) -r $(DESTDIR)$(libexecdir)/$(rvs)
-
-# clean ##############################################################
-
-clean : $(clean-plugins) clean-wrapper
-
-distclean : clean $(distclean-plugins) distclean-wrapper
- $(RM) Makefile
+install : install-wrapper install-plugins
+uninstall : uninstall-wrapper uninstall-plugins
+clean : clean-wrapper clean-plugins
+distclean : clean distclean-wrapper distclean-plugins
+ $(RM) Makefile *.mk
# wrapper ############################################################
@@ -69,5 +60,12 @@ $(RVS) : install-wrapper
# plugins ############################################################
-p-% : plugins/Makefile ; $(MAKE) -C plugins $*
+plugins : build-plugins
+build-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $<
+uninstall-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $< uninstall
+clean-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $< clean
+distclean-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $< distclean
+dist-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $< dist
+install-plugins : plugins/ plugins/Makefile \
+ plugins $(RVS) ; $(MAKE) -C $< install