Heb12 CLI for Linux, DOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
792 B

  1. DIR := /home/dan/.local/share/heb12/
  2. CC := tcc
  3. CFLAGS := -Wall -O2
  4. CFLAGS += -I.
  5. default: compile
  6. demo: compile test
  7. msdos: msdosconfig compile
  8. msdosconfig:
  9. @i586-pc-msdosdjgpp-gcc $(CFLAGS) -O3 biblec/biblec.c fbrp/fbrp.c app.c
  10. help:
  11. @echo "For now, default settings are compiled with the program."
  12. @echo "make Default, compile heb12cli"
  13. @echo "make demo Runs John 3 16"
  14. @echo "make setup Install bibles"
  15. @echo "make path Add heb12 to ~/.bashrc"
  16. compile:
  17. @$(CC) $(CFLAGS) biblec/biblec.c fbrp/fbrp.c biblesearch/bsearch.c config.c app.c -o heb12
  18. test:
  19. @./heb12 -l -r "John 3 16"
  20. setup:
  21. @wget http://api.heb12.com/translations/biblec/web.i -P $(DIR)
  22. @wget http://api.heb12.com/translations/biblec/web.t -P $(DIR)
  23. path:
  24. @echo "export PATH=\\$PATH:$(PWD)" >> ~/.bashrc