From 7f63161c44cbcc719217e7f54e11ff016d13baa9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 22 Jul 2014 17:31:49 -0400 Subject: add aopalliance --- rules/aopalliance/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 rules/aopalliance/Makefile (limited to 'rules') 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: -- cgit v1.2.3-54-g00ecf