Makefile.am
6fbf66fa
 #
 #  OpenVPN -- An application to securely tunnel IP networks
 #             over a single UDP port, with support for SSL/TLS-based
 #             session authentication and key exchange,
 #             packet encryption, packet authentication, and
 #             packet compression.
 #
05271322
 #  Copyright (C) 2002-2021 OpenVPN Inc <sales@openvpn.net>
 #  Copyright (C) 2010-2021 David Sommerseth <dazo@eurephia.org>
34cb9132
 #  Copyright (C) 2006-2012 Alon Bar-Lev <alon.barlev@gmail.com>
6fbf66fa
 #
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License version 2
 #  as published by the Free Software Foundation.
 #
 #  This program is distributed in the hope that it will be useful,
 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 #  GNU General Public License for more details.
 #
caa54ac3
 #  You should have received a copy of the GNU General Public License along
 #  with this program; if not, write to the Free Software Foundation, Inc.,
 #  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
6fbf66fa
 #
 
0fc5b8b3
 ACLOCAL_AMFLAGS = -I m4
6fbf66fa
 
1bda73a7
 MAINTAINERCLEANFILES = \
 	config.log config.status \
 	$(srcdir)/Makefile.in \
 	$(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \
 	$(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \
98bc1a3e
 	$(srcdir)/m4/libtool.m4 $(srcdir)/m4/lt~obsolete.m4 \
 	$(srcdir)/m4/ltoptions.m4 $(srcdir)/m4/ltsugar.m4 \
 	$(srcdir)/m4/ltversion.m4 \
1bda73a7
 	$(srcdir)/depcomp $(srcdir)/aclocal.m4 \
34cb9132
 	$(srcdir)/config.guess $(srcdir)/config.sub
6fbf66fa
 
7046ff20
 CLEANFILES = \
1e3a1786
 	config-version.h tests/t_client.sh
7046ff20
 
1bda73a7
 EXTRA_DIST = \
 	contrib \
34cb9132
 	debug
1bda73a7
 
66bf378e
 .PHONY: config-version.h doxygen
7046ff20
 
 if GIT_CHECKOUT
 BUILT_SOURCES = \
 	config-version.h
 endif
 
222e6917
 SUBDIRS = build distro include src sample doc tests
1bda73a7
 
51bd56f4
 dist_doc_DATA = \
46977f29
 	README \
 	README.IPv6 \
ed0e7993
 	README.mbedtls \
7fb22ea0
 	Changes.rst \
51bd56f4
 	COPYRIGHT.GPL \
 	COPYING
 
1bda73a7
 dist_noinst_DATA = \
51bd56f4
 	.gitignore \
f99d8fa7
 	.gitattributes \
1bda73a7
 	PORTS \
51bd56f4
 	README.IPv6 TODO.IPv6 \
ed0e7993
 	README.mbedtls \
4b1a82db
 	openvpn.sln \
 	msvc-env.bat \
 	msvc-dev.bat \
 	msvc-build.bat
51bd56f4
 
4b1a82db
 dist_noinst_HEADERS = \
 	config-msvc.h \
 	config-msvc-version.h.in
6187644b
 
 if WIN32
 rootdir=$(prefix)
 root_DATA = version.sh
 endif
7046ff20
 
 config-version.h:
fb621041
 	@CONFIGURE_GIT_CHFILES="`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) diff-files --name-status -r --ignore-submodules --quiet -- || echo \"+\"`"; \
 	CONFIGURE_GIT_UNCOMMITTED="`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) diff-index --cached  --quiet --ignore-submodules HEAD || echo \"*\"`"; \
 	CONFIGURE_GIT_REVISION="`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) rev-parse --symbolic-full-name HEAD | cut -d/ -f3-`/`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) rev-parse --short=16 HEAD`"; \
 	echo "#define CONFIGURE_GIT_REVISION \"$${CONFIGURE_GIT_REVISION}\"" > config-version.h.tmp; \
 	echo "#define CONFIGURE_GIT_FLAGS \"$${CONFIGURE_GIT_CHFILES}$${CONFIGURE_GIT_UNCOMMITTED}\"" >> config-version.h.tmp
 
7046ff20
 	@if ! [ -f config-version.h ] || ! cmp -s config-version.h.tmp config-version.h; then \
 		echo "replacing config-version.h"; \
 		mv config-version.h.tmp config-version.h; \
 	else \
 		rm -f config-version.h.tmp; \
 	fi
66bf378e
 
 doxygen:
 	$(MAKE) -C doc/doxygen doxygen