Skip to content

Commit

Permalink
Build version.c correctly in out-of-tree builds
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Nov 7, 2011
1 parent edab3ed commit 4b9c3c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Expand Up @@ -33,7 +33,7 @@ DISTCLEANFILES = $(pkgconfig_DATA)

version.c: $(library_srcs) $(openconnect_SOURCES) Makefile.am configure.ac \
openconnect.h openconnect-internal.h version.sh @GITVERSIONDEPS@
@$(srcdir)/version.sh
@cd $(srcdir) && ./version.sh $@

tmp-dist: uncommitted-check
$(MAKE) $(AM_MAKEFLAGS) VERSION=$(patsubst v%,%,$(shell git describe --tags)) DISTHOOK=0 dist
Expand Down
2 changes: 1 addition & 1 deletion version.sh
Expand Up @@ -16,5 +16,5 @@ else
v="$v"-unknown
fi

echo "char openconnect_version[] = \"$v\";" > version.c
echo "char openconnect_version[] = \"$v\";" > $1
echo "New version: $v"

0 comments on commit 4b9c3c7

Please sign in to comment.