summaryrefslogtreecommitdiff
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
parent7f63161c44cbcc719217e7f54e11ff016d13baa9 (diff)
non-working guice rules
-rw-r--r--conf/sources.mk1
-rw-r--r--rules/generic/Makefile4
-rw-r--r--rules/guice/subdir-deps.mk1
3 files changed, 5 insertions, 1 deletions
diff --git a/conf/sources.mk b/conf/sources.mk
index 8603129..c36e310 100644
--- a/conf/sources.mk
+++ b/conf/sources.mk
@@ -81,6 +81,7 @@ cal10n = tar|https://github.com/qos-ch/cal
cglib = tar|https://github.com/cglib/cglib/archive/RELEASE_3_1.tar.gz
gradle = tar|https://services.gradle.org/distributions/gradle-1.12-src.zip
groovy = tar|https://dl.bintray.com/groovy/maven/groovy-src-2.3.3.zip
+guice = tar|https://google-guice.googlecode.com/files/guice-3.0-src.zip
guice-core = tar|https://google-guice.googlecode.com/files/guice-3.0-src.zip|core
#javacc = tar|https://java.net/projects/javacc/downloads/download/javacc-6.0src.zip
javassist = tar|https://github.com/jboss-javassist/javassist/archive/rel_3_18_2_ga.tar.gz
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