diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-08 01:31:35 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-08 01:31:35 -0400 |
commit | c8b8c27ccce6fee9e1b56459118b1f4aa6d6c1f4 (patch) | |
tree | b5c5f2002a97d4234d89507488e8dd0ef496f2d4 /rules | |
parent | 1eb12fa7d9aa88e3295ac58a66f4532c47880e34 (diff) |
add javassist
Diffstat (limited to 'rules')
-rw-r--r-- | rules/javassist/Makefile | 34 | ||||
-rw-r--r-- | rules/javassist/delete.list | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/rules/javassist/Makefile b/rules/javassist/Makefile new file mode 100644 index 0000000..d0f9766 --- /dev/null +++ b/rules/javassist/Makefile @@ -0,0 +1,34 @@ +DESTDIR ?= +MAVEN_LOCAL_REPO ?= ~/.m2 + +ANT = ant +EXISTS = test -e +FIND = find +INSTALL = install +RM = rm -f +TOUCH = touch +XMLSTARLET = xml + +artifactId := $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:artifactId -n pom.xml) +version := $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:version -n pom.xml) +groupId := $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:groupId -n pom.xml) + +all: PHONY javassist.jar + +javassist.jar: $(shell $(FIND) src/main) build.xml + $(ANT) jar + $(EXISTS) '$@' + $(TOUCH) '$@' + +install-base = $(DESTDIR)$(MAVEN_LOCAL_REPO)/$(subst .,/,$(groupId))/$(artifactId)/$(version)/$(artifactId)-$(version) +install: PHONY $(install-base).jar $(install-base).pom + +$(install-base).jar: javassist.jar + $(INSTALL) -Dm644 $< $@ +$(install-base).pom: pom.xml + $(INSTALL) -Dm644 $< $@ + +clean: PHONY + $(RM) -r target javassist.jar + +.PHONY: PHONY diff --git a/rules/javassist/delete.list b/rules/javassist/delete.list new file mode 100644 index 0000000..c7cd26c --- /dev/null +++ b/rules/javassist/delete.list @@ -0,0 +1 @@ +javassist.jar |