Skip to content

Commit

Permalink
Use Makefile to generate files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferada committed Nov 14, 2012
1 parent 5734a37 commit 96b46b9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
all: schemas toc

schemas:
emacs --batch \
--eval "(add-to-list 'load-path \".\")" \
--eval "(load-file \"ifc-mode-generator.el\")" \
--eval "(ifc-mode-download-syntax-files \"schemas\")" \
--eval "(ifc-mode-generate-syntax-from-schema \"schemas/ifc2x2_add1.exp\" \"generated/ifc2x2_add1.el\")" \
--eval "(ifc-mode-generate-syntax-from-schema \"schemas/ifc2x3_tc1.exp\" \"generated/ifc2x3_tc1.el\")"

toc:
emacs --batch \
--eval "(add-to-list 'load-path \".\")" \
--eval "(load-file \"ifc-mode-generator.el\")" \
--eval "(ifc-mode-download-toc-files \"html\")" \
--eval "(ifc-mode-generate-tocs \"generated/ifc2x3_tc1.toc.el\")"

0 comments on commit 96b46b9

Please sign in to comment.