summaryrefslogtreecommitdiff
path: root/rules/atinject-javax.inject
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-04 00:11:07 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-04 00:11:07 -0400
commit0492728b0c768cc704a6ba6b3360e43787313916 (patch)
tree65d43d203a2a1a68669269c8ef28d7eb34ff16cd /rules/atinject-javax.inject
parent9a73253d95009520d2307fec9ef27e1a58c9ea98 (diff)
be more careful with timestamps
Diffstat (limited to 'rules/atinject-javax.inject')
-rw-r--r--rules/atinject-javax.inject/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules/atinject-javax.inject/Makefile b/rules/atinject-javax.inject/Makefile
index 5738f78..8abe51f 100644
--- a/rules/atinject-javax.inject/Makefile
+++ b/rules/atinject-javax.inject/Makefile
@@ -5,6 +5,7 @@ FIND = find
INSTALL = install
RM = rm -f
SED = sed
+TOUCH = touch
XMLSTARLET = xml
artifactId := $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:artifactId -n pom.xml)
@@ -14,7 +15,8 @@ groupId := $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:groupId -n pom
all: PHONY build
build: $(shell $(FIND) src)
- $(SED) -e 's/VERSION=.*/VERSION=$(version)/' -e /tck/d -e /junit/d build.sh | $(SHELL) || { $(RM) -r build; exit 1; }
+ $(SED) -e 's/VERSION=.*/VERSION=$(version)/' -e /tck/d -e /junit/d build.sh | $(SHELL) || { $(RM) -r $@; exit 1; }
+ $(TOUCH) $@
install-dir = $(DESTDIR)$(MAVEN_LOCAL_REPO)/$(subst .,/,$(groupId))/$(artifactId)/$(version)
install-targets = $(addprefix $(install-dir)/$(artifactId)-$(version),.pom .jar -sources.jar -javadoc.jar)
@@ -26,6 +28,8 @@ $(install-dir)/$(artifactId)-$(version).pom: build/maven/pom.xml
$(INSTALL) -Dm644 $< $@
$(addprefix build/maven/,$(notdir $(filter-out %.pom,$(install-targets)) pom.xml)): build/maven/%: build
+ test -e $@
+ $(TOUCH) $@
clean: PHONY
$(RM) -r build