2014-12-19 08:52:59 +03:00
|
|
|
SOURCES_BASE = types.scala reader.scala printer.scala
|
2015-02-28 20:09:54 +03:00
|
|
|
SOURCES_LISP = env.scala core.scala stepA_mal.scala
|
2014-12-19 08:52:59 +03:00
|
|
|
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
|
|
|
|
|
2016-05-16 18:25:42 +03:00
|
|
|
TARGET_DIR=target/scala-2.11
|
2016-02-18 09:33:19 +03:00
|
|
|
|
2016-05-16 18:25:42 +03:00
|
|
|
all: $(TARGET_DIR)/mal.jar
|
2014-12-19 08:52:59 +03:00
|
|
|
|
2016-05-16 18:25:42 +03:00
|
|
|
dist: mal
|
2016-02-18 09:33:19 +03:00
|
|
|
|
2016-05-16 18:25:42 +03:00
|
|
|
mal: $(TARGET_DIR)/mal.jar
|
|
|
|
cp $< $@
|
2016-02-18 09:33:19 +03:00
|
|
|
|
2016-05-16 18:25:42 +03:00
|
|
|
$(TARGET_DIR)/mal.jar:
|
|
|
|
sbt assembly
|
2016-02-24 09:45:40 +03:00
|
|
|
|
2016-05-16 18:25:42 +03:00
|
|
|
$(TARGET_DIR)/classes/step%.class: step%.scala $(SOURCES)
|
|
|
|
sbt assembly
|
2016-02-24 09:45:40 +03:00
|
|
|
|
2016-02-18 09:33:19 +03:00
|
|
|
clean:
|
2016-05-16 18:25:42 +03:00
|
|
|
rm -rf mal target
|
2016-02-18 09:33:19 +03:00
|
|
|
|
2019-03-21 07:32:35 +03:00
|
|
|
.PHONY: all dist clean
|