summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-07-22 17:32:45 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-07-22 17:32:45 -0400
commit1301195fd40b53340fd19c8cf07bcf4fad6b6ea3 (patch)
tree88792e2d73b318d55f7c49a1c358761046087564 /rules
parent7f63161c44cbcc719217e7f54e11ff016d13baa9 (diff)
non-working guice rules
Diffstat (limited to 'rules')
-rw-r--r--rules/generic/Makefile4
-rw-r--r--rules/guice/subdir-deps.mk1
2 files changed, 4 insertions, 1 deletions
diff --git a/rules/generic/Makefile b/rules/generic/Makefile
index 025523d..7549439 100644
--- a/rules/generic/Makefile
+++ b/rules/generic/Makefile
@@ -22,6 +22,9 @@ TOUCH = touch
XMLSTARLET = xml
# Detect information from POMs
+basedir = .
+project.basedir = $(basedir)
+
artifactId := $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:artifactId -n pom.xml)
version := $(firstword $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:version -n -c /_:project/_:parent/_:version pom.xml) $(version))
groupId := $(firstword $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:groupId -n -c /_:project/_:parent/_:groupId pom.xml))
@@ -30,7 +33,6 @@ sourceDirectory := $(firstword $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:b
resources := $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:build/_:resources -n pom.xml)
resources := $(if $(resources),$(resources),src/main/resources)
-basedir := $(shell pwd)
subdirs = $(patsubst %/pom.xml,%,$(wildcard */pom.xml))
targets = pom $(if $(wildcard src/main/ $(sourceDirectory) $(resources)),jar)
diff --git a/rules/guice/subdir-deps.mk b/rules/guice/subdir-deps.mk
new file mode 100644
index 0000000..0b6d542
--- /dev/null
+++ b/rules/guice/subdir-deps.mk
@@ -0,0 +1 @@
+extensions_deps = core