aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-02-05 09:39:30 +0100
committerMattias Andrée <maandree@operamail.com>2013-02-05 09:39:30 +0100
commit63e120a47098a642b2fabb354e79cf210a4ff387 (patch)
tree5c466211f308ecca875b4ebe4329b3c62d760b82
parentmisc (diff)
downloadsha3sum-63e120a47098a642b2fabb354e79cf210a4ff387.tar.gz
sha3sum-63e120a47098a642b2fabb354e79cf210a4ff387.tar.bz2
sha3sum-63e120a47098a642b2fabb354e79cf210a4ff387.tar.xz
add makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d0a0cdb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+# Copyright © 2013 Mattias Andrée (maandree@member.fsf.org)
+#
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved. This file is offered as-is,
+# without any warranty.
+#
+# [GNU All Permissive License]
+
+JAVAC=javac
+
+
+JAVA_CLASSES = $(shell find "pure-java" | grep '\.java$$' | sed -e 's_^_bin/_g' -e 's_java$$_class_g')
+
+
+all: pure-java
+
+
+pure-java: $(JAVA_CLASSES)
+bin/pure-java/%.class: pure-java/%.java
+ mkdir -p "bin/pure-java"
+ $(JAVAC) -s "pure-java" -d "bin/pure-java" -cp "pure-java" "pure-java/$*.java"
+
+
+
+
+.PHONY: clean
+clean:
+ rm {*/,}*.{t2d,aux,cp,cps,fn,ky,log,pg,pgs,toc,tp,vr,vrs,op,ops} 2>/dev/null || exit 0
+ rm {*/,}*.{bak,info,pdf,ps,dvi,gz,class,jar,pyc,o,so} 2>/dev/null || exit 0
+ rm -r bin 2>/dev/null || exit 0
+