comparison Wnn/include/Makefile.in @ 9:bcc6b3ca758e

now _SERVER_VERSION includes revision from hg.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Fri, 21 Dec 2007 17:22:21 +0900
parents bbc77ca4def5
children b0deba88e223
comparison
equal deleted inserted replaced
8:76281fa7934f 9:bcc6b3ca758e
35 INSTALL = @INSTALL@ $(INSTALLFLAGS) 35 INSTALL = @INSTALL@ $(INSTALLFLAGS)
36 36
37 HEADERS = jllib.h jslib.h rk_spclval.h wnnerror.h commonhd.h cplib.h \ 37 HEADERS = jllib.h jslib.h rk_spclval.h wnnerror.h commonhd.h cplib.h \
38 wnn_config.h msg.h 38 wnn_config.h msg.h
39 39
40 all:: 40 all:: build_stamp.h
41 41
42 instlib:: install 42 instlib:: install
43 43
44 install:: $(HEADERS) 44 install:: $(HEADERS)
45 @if [ -d $(DESTDIR)$(JWNNINCDIR) ]; then set +x; \ 45 @if [ -d $(DESTDIR)$(JWNNINCDIR) ]; then set +x; \
51 done 51 done
52 (cd $(DESTDIR)$(JWNNINCDIR); $(RM) config.h; @LN_S@ wnn_config.h config.h) 52 (cd $(DESTDIR)$(JWNNINCDIR); $(RM) config.h; @LN_S@ wnn_config.h config.h)
53 53
54 depend:: 54 depend::
55 55
56 build_stamp.h::
57 if [ -d ../../.hg ]; then \
58 revh=`hg tip --template '#define _SERVER_VERSION "FreeWnn mercurial #rev#:#node|short#"\n' 2>/dev/null`; \
59 [ -z "$$revh" ] || echo "$$revh" > build_stamp.h; \
60 else \
61 echo "FreeWnn 1.1.1" > build_stamp.h; \
62 fi
63
56 clean:: 64 clean::
57 65 rm -f build_stamp.h