summaryrefslogtreecommitdiff
path: root/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
commit30f1fbf2aab8ae6c45907bab2eafdb0e09998c15 (patch)
tree9166382abde44ee694b209f60e0f75b4fccc6133 /plugins/main.mk.in
parentfb5ce668f909c96628df33f9cb9421032db8dfdc (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 'plugins/main.mk.in')
-rw-r--r--plugins/main.mk.in31
1 files changed, 23 insertions, 8 deletions
diff --git a/plugins/main.mk.in b/plugins/main.mk.in
index f0401d1..3039c1f 100644
--- a/plugins/main.mk.in
+++ b/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