File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
# ! /usr/bin/make
2
- NAME =Bitcoin Savings & Trust Daily Interest II
3
2
4
- # TODO: Decide: c-lightning, lightningd, lightning?
5
3
PKGNAME = c-lightning
6
4
7
5
# We use our own internal ccan copy.
@@ -291,7 +289,7 @@ ccan/config.h: ccan/tools/configurator/configurator Makefile
291
289
if $< --configurator-cc=" $( CONFIGURATOR_CC) " $( CC) $( CFLAGS) > $@ .new; then mv $@ .new $@ ; else rm $@ .new; exit 1; fi
292
290
293
291
gen_version.h : FORCE
294
- @ (echo " #define VERSION \" ` git describe --always --dirty` \" " && echo " #define VERSION_NAME \" $( NAME ) \" " && echo " #define BUILD_FEATURES \" $( FEATURES) \" " ) > $@ .new
292
+ @ (echo " #define VERSION \" ` git describe --always --dirty=-with-local-modifications ` \" " && echo " #define BUILD_FEATURES \" $( FEATURES) \" " ) > $@ .new
295
293
@if cmp $@ .new $@ > /dev/null 2>&2 ; then rm -f $@ .new; else mv $@ .new $@ ; echo Version updated; fi
296
294
297
295
# All binaries require the external libs, ccan
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ const char *version(void)
9
9
10
10
char * version_and_exit (const void * unused UNUSED )
11
11
{
12
- printf ("%s\n"
13
- "aka. %s\n"
14
- "Built with: %s\n" , VERSION , VERSION_NAME , BUILD_FEATURES );
12
+ printf ("%s\n" , VERSION );
13
+ if (BUILD_FEATURES [0 ]) {
14
+ printf ("Built with features: %s\n" , BUILD_FEATURES );
15
+ }
15
16
exit (0 );
16
17
}
You can’t perform that action at this time.
0 commit comments