diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-22 17:31:49 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-22 17:31:49 -0400 |
commit | 7f63161c44cbcc719217e7f54e11ff016d13baa9 (patch) | |
tree | 6ecd035bfe2fdabcdb9633abbec0c111e6ee013f /rules | |
parent | be92521ffff0964ad6ab7583fa61279098540256 (diff) |
add aopalliance
Diffstat (limited to 'rules')
-rw-r--r-- | rules/aopalliance/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/rules/aopalliance/Makefile b/rules/aopalliance/Makefile new file mode 100644 index 0000000..5212307 --- /dev/null +++ b/rules/aopalliance/Makefile @@ -0,0 +1,27 @@ +DESTDIR ?= +JAR_DIR ?= /usr/share/java + +ANT = ant +FAIL = exit 1 +FIND = find +INSTALL = install +RM = rm -f + +dep_dir = $1 $(shell $(FIND) $1 2>/dev/null) + +all: PHONY build/aopalliance.jar + +build/aopalliance.jar: $(call dep_dir,src) + $(ANT) || { $(RM) -r $(@D); $(FAIL); } + +install: PHONY $(DESTDIR)$(JAR_DIR)/aopalliance.jar + +$(DESTDIR)$(JAR_DIR)/%.jar: build/%.jar + $(INSTALL) -Dm644 $< $@ + +clean: PHONY + $(RM) -r build + +.PHONY: PHONY +.DELETE_ON_ERROR: +.SECONDARY: |