1
0
mirror of https://github.com/balkian/slides-intro-spark.git synced 2024-12-22 09:48:12 +00:00
slides-intro-spark/Makefile

35 lines
650 B
Makefile
Raw Normal View History

2018-10-16 13:42:30 +00:00
SOURCES = $(shell ls *.scala)
S = scala
SC = scalac
TARGET = target
CP = $(TARGET):scalatest.jar
SPEC = scala.RomanSpec
TEMP_DIR ?= _LATEX
all: pdf
compile: $(SOURCES)
@echo "Compiling $(SOURCES)..."
@$(SC) -cp . -d $(TARGET) $(SOURCES)
Parallel.class: $(SOURCES)
run: Parallel.class
@scala -cp $(TARGET) Parallel
test: compile
@$(S) -cp $(CP) org.scalatest.tools.Runner -p . -o -s $(SPEC)
pdf:
@mkdir -p $(TEMP_DIR)
pdflatex -output-directory ./$(TEMP_DIR) spark1.tex
pdflatex -output-directory ./$(TEMP_DIR) spark2.tex
2018-10-16 13:42:30 +00:00
cp $(TEMP_DIR)/*.pdf .
clean:
@$(RM) -rf $(TEMP_DIR)
@$(RM) $(TARGET)/*.class
clean-all: clean
@rm spark*.pdf