summaryrefslogtreecommitdiff
path: root/rules/generic/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'rules/generic/Makefile')
-rw-r--r--rules/generic/Makefile4
1 files changed, 3 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)