comparison: Makefile
Makefile
- changeset 32
- 51d6e45a7592
- parent 28
- 72a98cbcb9f1
- child 34
- fa9bda32de17
equal
deleted
inserted
replaced
35 |
35 |
36 #ifndef CONF |
36 #ifndef CONF |
37 CONF = gcc |
37 CONF = gcc |
38 #endif |
38 #endif |
39 |
39 |
|
40 VERSION_PREFIX=1.0. |
|
41 |
40 include ${CONF}.mk |
42 include ${CONF}.mk |
41 |
43 |
42 .PHONY: setup run-compile teardown |
44 .PHONY: setup run-compile teardown |
43 |
45 |
44 all: setup run-compile teardown |
46 all: setup run-compile teardown |
52 |
54 |
53 setup: |
55 setup: |
54 mkdir -p ${BUILDDIR} |
56 mkdir -p ${BUILDDIR} |
55 rm -f ${BUILDDIR}cline.o |
57 rm -f ${BUILDDIR}cline.o |
56 mv cline.h cline.src |
58 mv cline.h cline.src |
57 cat cline.src | sed "s/VERSION.*/VERSION=\"$(shell hg identify -n) ($(shell hg identify -i))\";/g" > cline.h |
59 cat cline.src | sed "s/VERSION.*/VERSION=\"${VERSION_PREFIX}$(shell hg identify -n) ($(shell hg identify -i))\";/g" > cline.h |
58 |
60 |
59 teardown: |
61 teardown: |
60 rm -f cline.h |
62 rm -f cline.h |
61 mv cline.src cline.h |
63 mv cline.src cline.h |
62 |
64 |