2
0

Makefile 937 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # If you copy this file for an Enyo/Jtalk project, just
  3. # modify these first three lines
  4. # and then add .st files as you please. This Makefile
  5. # should pick them all up and compile into Program.js.
  6. #
  7. PACKAGE := jtalk.eris
  8. VERSION := 0.0.1
  9. FLAGS := -L COMPILER
  10. IPK := $(PACKAGE)_$(VERSION)_all.ipk
  11. FILE := Program
  12. SOURCES := $(wildcard *.st)
  13. OBJECTS := $(patsubst %.st,%.js,$(wildcard *.st))
  14. FILEJS := $(FILE).js
  15. $(FILEJS): $(SOURCES)
  16. ../../../bin/jtalkc $(FLAGS) $(SOURCES) $(FILE)
  17. $(IPK): $(FILEJS)
  18. palm-package .
  19. clean:
  20. rm -f $(FILEJS) $(OBJECTS) $(IPK)
  21. palm-install -r $(PACKAGE)
  22. install: $(IPK)
  23. palm-install $(IPK)
  24. # If you want to run it in the emulator, start the emulator first with palm-emulator
  25. run: $(IPK)
  26. palm-install $(IPK)
  27. palm-launch $(PACKAGE)
  28. # This should fire it up in Chromium (at least under Ubuntu)
  29. chromium: $(FILEJS)
  30. chromium-browser --allow-file-access-from-files index.html