Mercurial > urweb
diff Makefile @ 378:168667cdaa95
Proper configuration and installation
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 19 Oct 2008 12:47:10 -0400 |
parents | 71bafe66dbe1 |
children |
line wrap: on
line diff
--- a/Makefile Sun Oct 19 12:12:59 2008 -0400 +++ b/Makefile Sun Oct 19 12:47:10 2008 -0400 @@ -1,6 +1,14 @@ +BIN := /usr/local/bin +LIB := /usr/local/lib/urweb +INCLUDE := /usr/local/include/urweb +SITELISP := /usr/local/share/emacs/site-lisp/urweb-mode + +LIB_UR := $(LIB)/ur +LIB_C := $(LIB)/c + all: smlnj mlton c -.PHONY: all smlnj mlton c clean +.PHONY: all smlnj mlton c clean install smlnj: src/urweb.cm mlton: bin/urweb @@ -49,3 +57,15 @@ src/urweb.mlton.lex.sml \ src/urweb.mlton.grm.sig src/urweb.mlton.grm.sml $(MLTON) -output $@ src/urweb.mlb + +install: + cp bin/urweb $(BIN)/ + mkdir -p $(LIB_UR) + cp lib/*.urs $(LIB_UR)/ + cp lib/*.ur $(LIB_UR)/ + mkdir -p $(LIB_C) + cp clib/*.o $(LIB_C)/ + mkdir -p $(INCLUDE) + cp include/*.h $(INCLUDE)/ + mkdir -p $(SITELISP) + cp src/elisp/*.el $(SITELISP)/