File tree 4 files changed +20
-12
lines changed
4 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 1
1
ACLOCAL_AMFLAGS = -I m4
2
2
SUBDIRS = scripts src man conf
3
3
EXTRA_DIST = autogen.sh ocb-license.html README.md COPYING.iOS
4
- BUILT_SOURCES = version.h
4
+ BUILT_SOURCES = VERSION
5
5
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-compile-warnings=distcheck --enable-examples --enable-syslog
6
6
7
7
# non-Automake defines
@@ -29,20 +29,13 @@ VERSION:
29
29
fi
30
30
@rm -f VERSION.dist VERSION.git
31
31
32
- version.h : VERSION
33
- @printf ' #define BUILD_VERSION "%s"\n' " $$ (cat VERSION)" > version.h.new
34
- @set -e; if ! diff -q version.h version.h.new > /dev/null 2>&1 ; then \
35
- mv -f version.h.new version.h; \
36
- fi
37
- @rm -f version.h.new
38
-
39
32
clean-local :
40
- @rm -rf version.h VERSION cov-int mosh-coverity.txz compile_commands.json
33
+ @rm -rf VERSION cov-int mosh-coverity.txz compile_commands.json
41
34
42
35
# Linters and static checkers, for development only. Not included in
43
36
# build dependencies, and outside of Automake processing.
44
37
cppcheck :
45
- cppcheck $(CPPCHECK_FLAGS ) -include config.h -I . \
38
+ cppcheck $(CPPCHECK_FLAGS ) -include src/include/ config.h -I src/include \
46
39
-I src/crypto -I src/frontend -I src/network -I src/protobufs \
47
40
-I src/statesync -I src/terminal -I src/util \
48
41
-I /usr/include -I /usr/include/google/protobuf -I/usr/include/openssl \
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ AM_INIT_AUTOMAKE([foreign std-options -Wall -Werror])
7
7
m4_ifdef ( [ AM_SILENT_RULES ] , [ AM_SILENT_RULES ([ yes] )] )
8
8
AC_CONFIG_SRCDIR ( [ src/frontend/mosh-client.cc] )
9
9
AC_CONFIG_MACRO_DIR ( [ m4] )
10
- AC_CONFIG_HEADERS ( [ config.h] )
10
+ AC_CONFIG_HEADERS ( [ src/include/ config.h] )
11
11
AC_LANG ( [ C++] )
12
12
13
13
# Checks for programs.
@@ -523,6 +523,7 @@ AC_CONFIG_FILES([
523
523
src/Makefile
524
524
src/crypto/Makefile
525
525
src/frontend/Makefile
526
+ src/include/Makefile
526
527
src/network/Makefile
527
528
src/protobufs/Makefile
528
529
src/statesync/Makefile
Original file line number Diff line number Diff line change 1
- SUBDIRS = protobufs util crypto terminal network statesync frontend examples tests
1
+ SUBDIRS = include protobufs util crypto terminal network statesync frontend examples tests
Original file line number Diff line number Diff line change
1
+ BUILT_SOURCES = version.h
2
+ nodist_INCLUDES = version.h
3
+
4
+ clean-local :
5
+ @rm -rf version.h
6
+
7
+ version.h : ../../VERSION
8
+ @test -s $<
9
+ @printf ' #define BUILD_VERSION "%s"\n' " $$ (cat $<)" > $@ .new
10
+ @set -e; if ! diff -q $@ $@ .new > /dev/null 2>&1 ; then \
11
+ mv -f $@ .new $@ ; \
12
+ fi
13
+ @rm -f $@ .new
14
+
You can’t perform that action at this time.
0 commit comments