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