projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72b4e4b
)
Deduce version from NEWS.
author
Eric S. Raymond
<esr@thyrsus.com>
Thu, 29 Jun 2017 22:25:45 +0000
(18:25 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Thu, 29 Jun 2017 22:25:45 +0000
(18:25 -0400)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index b8582d5d66c1f34df008d45634ea9ea88897a123..c58e6d7b020088cad3cdfb382ad05c710c466048 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-24,9
+24,9
@@
#
# To build with save/resume disabled, pass CCFLAGS="-D ADVENT_NOSAVE"
-.PHONY: debug indent release refresh dist linty html clean
+VERS=$(shell sed -n <NEWS '/^[0-9]/s/:.*//p' | head -1)
-VERS=1.0
+.PHONY: debug indent release refresh dist linty html clean
CC?=gcc
CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wpedantic -O2