Advertisement
Patresss

makefile

Oct 13th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. MAIN = HelloWorld
  2. SRC = scala
  3. COMP = scalac
  4. SOURCES = $(shell ls *.scala)
  5.  
  6. compile: $(SOURCES:.scala=.class)
  7.  
  8. %.class: %.scala
  9.     @echo "Kompilowanie pliku $*.scala.."
  10.     @$(COMP) $*.scala
  11.  
  12. run:
  13.     $(SRC) $(MAIN)
  14.  
  15. clean:
  16.     @echo "Usuwanie plikow *.class:"
  17.     @rm *.class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement