Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MAIN = HelloWorld
- SRC = scala
- COMP = scalac
- SOURCES = $(shell ls *.scala)
- compile: $(SOURCES:.scala=.class)
- %.class: %.scala
- @echo "Kompilowanie pliku $*.scala.."
- @$(COMP) $*.scala
- run:
- $(SRC) $(MAIN)
- clean:
- @echo "Usuwanie plikow *.class:"
- @rm *.class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement