Created
June 23, 2011 18:40
-
-
Save torgeir/1043240 to your computer and use it in GitHub Desktop.
A Scala Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SRC = scala | |
SOURCES = $(shell ls $(SRC)/*.scala) | |
S = scala | |
SC = scalac | |
TARGET = target | |
CP = $(TARGET):scalatest.jar | |
SPEC = scala.RomanSpec | |
compile: $(SOURCES:.scala=.class) | |
%.class: %.scala | |
@echo "Compiling $*.scala.." | |
@$(SC) -cp $(CP) -d . $*.scala | |
test: compile | |
@$(S) -cp $(CP) org.scalatest.tools.Runner -p . -o -s $(SPEC) | |
clean: | |
@$(RM) $(SRC)/*.class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment