Mercurial > urweb
annotate Makefile.am @ 1153:a62ac791f7fb
More is*() casts
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 06 Feb 2010 20:13:51 -0500 |
parents | f6cb1cb2d7a8 |
children | b0d632cc9edf |
rev | line source |
---|---|
adamc@1141 | 1 ACLOCAL_AMFLAGS = -I m4 |
adamc@1141 | 2 |
adamc@378 | 3 BIN := @BIN@ |
adamc@378 | 4 LIB := @LIB@ |
adamc@378 | 5 INCLUDE := @INCLUDE@ |
adamc@378 | 6 SITELISP := @SITELISP@ |
adamc@378 | 7 |
adamc@378 | 8 LIB_UR := $(LIB)/ur |
adamc@378 | 9 LIB_C := $(LIB)/c |
adamc@1095 | 10 LIB_JS := $(LIB)/js |
adamc@1095 | 11 |
adamc@1132 | 12 all-local: smlnj mlton |
adamc@378 | 13 |
adamc@1132 | 14 SUBDIRS = src/c |
adamc@378 | 15 |
adamc@1133 | 16 .PHONY: smlnj mlton package reauto |
adamc@378 | 17 |
adamc@378 | 18 smlnj: src/urweb.cm |
adamc@378 | 19 mlton: bin/urweb |
adamc@855 | 20 |
adamc@1132 | 21 clean-local: |
adamc@378 | 22 rm -f src/*.mlton.grm.* src/*.mlton.lex.* \ |
adamc@1132 | 23 src/urweb.cm src/urweb.mlb |
adamc@378 | 24 rm -rf .cm src/.cm |
adamc@378 | 25 |
adamc@378 | 26 src/urweb.cm: src/prefix.cm src/sources |
adamc@378 | 27 cat src/prefix.cm src/sources \ |
adamc@378 | 28 >src/urweb.cm |
adamc@378 | 29 |
adamc@378 | 30 src/urweb.mlb: src/prefix.mlb src/sources src/suffix.mlb |
adamc@378 | 31 cat src/prefix.mlb src/sources src/suffix.mlb \ |
adamc@431 | 32 | sed 's/^\(.*\).grm$$/\1.mlton.grm.sig:\1.mlton.grm.sml/; y/:/\n/' \ |
adamc@378 | 33 | sed 's/^\(.*\).lex$$/\1.mlton.lex.sml/' \ |
adamc@791 | 34 >$@ |
adamc@378 | 35 |
adamc@378 | 36 %.mlton.lex: %.lex |
adamc@378 | 37 cp $< $@ |
adamc@378 | 38 %.mlton.grm: %.grm |
adamc@378 | 39 cp $< $@ |
adamc@378 | 40 |
adamc@378 | 41 %.mlton.lex.sml: %.mlton.lex |
adamc@378 | 42 mllex $< |
adamc@378 | 43 |
adamc@378 | 44 %.mlton.grm.sig %.mlton.grm.sml: %.mlton.grm |
adamc@378 | 45 mlyacc $< |
adamc@378 | 46 |
adamc@378 | 47 MLTON := mlton |
adamc@378 | 48 |
adamc@1132 | 49 #ifdef DEBUG |
adamc@1132 | 50 # MLTON += -const 'Exn.keepHistory true' |
adamc@1132 | 51 #endif |
adamc@378 | 52 |
adamc@1132 | 53 #ifdef PROFILE |
adamc@1132 | 54 # MLTON += -profile $(PROFILE) |
adamc@1132 | 55 #endif |
adamc@507 | 56 |
adamc@791 | 57 bin/urweb: src/compiler.mlb src/urweb.mlb src/*.sig src/*.sml \ |
adamc@378 | 58 src/urweb.mlton.lex.sml \ |
adamc@378 | 59 src/urweb.mlton.grm.sig src/urweb.mlton.grm.sml |
adamc@791 | 60 $(MLTON) -output $@ src/compiler.mlb |
adamc@378 | 61 |
adamc@1132 | 62 install-exec-local: |
adamc@430 | 63 mkdir -p $(BIN) |
adamc@378 | 64 cp bin/urweb $(BIN)/ |
adamc@378 | 65 mkdir -p $(LIB_UR) |
adamc@602 | 66 cp lib/ur/*.urs $(LIB_UR)/ |
adamc@602 | 67 cp lib/ur/*.ur $(LIB_UR)/ |
adamc@569 | 68 mkdir -p $(LIB_JS) |
adamc@602 | 69 cp lib/js/*.js $(LIB_JS)/ |
adamc@378 | 70 mkdir -p $(INCLUDE) |
adamc@378 | 71 cp include/*.h $(INCLUDE)/ |
adamc@378 | 72 mkdir -p $(SITELISP) |
adamc@378 | 73 cp src/elisp/*.el $(SITELISP)/ |
adamc@1134 | 74 -ldconfig |
adamc@427 | 75 |
adamc@427 | 76 package: |
adamc@427 | 77 hg archive -t tgz -X tests /tmp/urweb.tgz |
adamc@1132 | 78 |
adamc@1133 | 79 reauto: |
adamc@1135 | 80 -autoreconf |
adamc@1133 | 81 libtoolize -cf |
adamc@1133 | 82 automake --add-missing --force-missing --copy |
adamc@1133 | 83 autoreconf |