summaryrefslogtreecommitdiff
path: root/rvs/plugins/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/plugins/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/plugins/main.mk.in')
-rw-r--r--rvs/plugins/main.mk.in31
1 files changed, 23 insertions, 8 deletions
diff --git a/rvs/plugins/main.mk.in b/rvs/plugins/main.mk.in
index f0401d1..3039c1f 100644
--- a/rvs/plugins/main.mk.in
+++ b/rvs/plugins/main.mk.in
@@ -17,22 +17,37 @@
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
+sysconfdir ?= @sysconfdir@
+BINDIR ?= @BINDIR@
+TMPDIR ?= @TMPDIR@
+LIBDIR ?= @LIBDIR@
+ETCDIR ?= @ETCDIR@
+dirs += $(sysconfdir) $(BINDIR) $(TMPDIR) $(LIBDIR) $(ETCDIR)
+
mods = $(patsubst ./%,%,$(shell find ./* -maxdepth 0 -type d))
+mods-build = $(addprefix build-,$(mods))
+mods-install = $(addprefix install-,$(mods))
+mods-clean = $(addprefix clean-,$(mods))
+mods-distclean = $(addprefix distclean-,$(mods))
.PHONY : all
all : build
-.PHONY : install build
-install : $(addprefix install-,$(mods))
-build : $(addprefix build-,$(mods))
+.PHONY : build install clean distclean
+# $(mods-build) $(mods-install) $(mods-clean) $(mods-distclean)
+build : $(mods-build)
+install : $(mods-install)
+clean : $(mods-clean)
+distclean : $(mods-distclean)
+ $(RM) Makefile *.mk
.SECONDARY:
%/main.mk : plugin.mk %/; cp $< $@
-complete-% : %/ %/main.mk; :
-build-% : %/ complete-% %/main.mk; $(MAKE) -C $<
-install-% : %/ complete-% %/main.mk; $(MAKE) -C $< install
-clean-% : %/ complete-% %/main.mk; $(MAKE) -C $< clean
-distclean-% : %/ complete-% %/main.mk; $(MAKE) -C $< distclean
+complete-% : %/ %/main.mk; :
+build-% : %/ complete-% %/main.mk; $(MAKE) -C $<
+install-% : %/ complete-% %/main.mk; $(MAKE) -C $< install
+clean-% : %/ complete-% %/main.mk; -$(MAKE) -C $< clean
+distclean-% : %/ complete-% %/main.mk; $(MAKE) -C $< distclean