jmultimethod

multimethods for Java using annotations
git clone https://logand.com/git/jmultimethod.git/
Log | Files | Refs | LICENSE

Makefile (460B)


      1 SRC = src/jmultimethod/AsteroidTest.java \
      2 	src/jmultimethod/CarTest.java \
      3 	src/jmultimethod/DispatchTest.java
      4 CLS= $(SRC:.java=.class)
      5 
      6 .SUFFIXES : .class .java
      7 
      8 .java.class:
      9 	javac -sourcepath `pwd`/src -d `pwd`/bin $<
     10 
     11 all: $(CLS)
     12 
     13 test:
     14 	echo === AsteroidTest
     15 	java -classpath `pwd`/bin jmultimethod/AsteroidTest
     16 	echo === CarTest
     17 	java -classpath `pwd`/bin jmultimethod/CarTest
     18 	echo === DispatchTest
     19 	java -classpath `pwd`/bin jmultimethod/DispatchTest