]> git.ipfire.org Git - thirdparty/openvpn.git/blob - Makefile.am
Update copyrights
[thirdparty/openvpn.git] / Makefile.am
1 #
2 # OpenVPN -- An application to securely tunnel IP networks
3 # over a single UDP port, with support for SSL/TLS-based
4 # session authentication and key exchange,
5 # packet encryption, packet authentication, and
6 # packet compression.
7 #
8 # Copyright (C) 2002-2017 OpenVPN Technologies, Inc. <sales@openvpn.net>
9 # Copyright (C) 2010 David Sommerseth <dazo@users.sourceforge.net>
10 # Copyright (C) 2006-2012 Alon Bar-Lev <alon.barlev@gmail.com>
11 #
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License version 2
14 # as published by the Free Software Foundation.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program (see the file COPYING included with this
23 # distribution); if not, write to the Free Software Foundation, Inc.,
24 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #
26
27 # This option prevents autoreconf from overriding our COPYING and
28 # INSTALL targets:
29 AUTOMAKE_OPTIONS = foreign 1.9
30 ACLOCAL_AMFLAGS = -I m4
31
32 MAINTAINERCLEANFILES = \
33 config.log config.status \
34 $(srcdir)/Makefile.in \
35 $(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \
36 $(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \
37 $(srcdir)/m4/libtool.m4 $(srcdir)/m4/lt~obsolete.m4 \
38 $(srcdir)/m4/ltoptions.m4 $(srcdir)/m4/ltsugar.m4 \
39 $(srcdir)/m4/ltversion.m4 \
40 $(srcdir)/depcomp $(srcdir)/aclocal.m4 \
41 $(srcdir)/config.guess $(srcdir)/config.sub
42
43 CLEANFILES = \
44 config-version.h tests/t_client.sh
45
46 EXTRA_DIST = \
47 contrib \
48 debug
49
50 .PHONY: config-version.h
51
52 if GIT_CHECKOUT
53 BUILT_SOURCES = \
54 config-version.h
55 endif
56
57 SUBDIRS = build distro include src sample doc vendor tests
58
59 dist_doc_DATA = \
60 README \
61 README.IPv6 \
62 README.polarssl \
63 COPYRIGHT.GPL \
64 COPYING
65
66 dist_noinst_DATA = \
67 .gitignore \
68 .gitattributes \
69 PORTS \
70 README.IPv6 TODO.IPv6 \
71 README.polarssl \
72 openvpn.sln \
73 msvc-env.bat \
74 msvc-dev.bat \
75 msvc-build.bat
76
77 dist_noinst_HEADERS = \
78 config-msvc.h \
79 config-msvc-version.h.in
80
81 if WIN32
82 rootdir=$(prefix)
83 root_DATA = version.sh
84 endif
85
86 config-version.h:
87 @CONFIGURE_GIT_CHFILES="`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) diff-files --name-status -r --ignore-submodules --quiet -- || echo \"+\"`"; \
88 CONFIGURE_GIT_UNCOMMITTED="`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) diff-index --cached --quiet --ignore-submodules HEAD || echo \"*\"`"; \
89 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`"; \
90 echo "#define CONFIGURE_GIT_REVISION \"$${CONFIGURE_GIT_REVISION}\"" > config-version.h.tmp; \
91 echo "#define CONFIGURE_GIT_FLAGS \"$${CONFIGURE_GIT_CHFILES}$${CONFIGURE_GIT_UNCOMMITTED}\"" >> config-version.h.tmp
92
93 @if ! [ -f config-version.h ] || ! cmp -s config-version.h.tmp config-version.h; then \
94 echo "replacing config-version.h"; \
95 mv config-version.h.tmp config-version.h; \
96 else \
97 rm -f config-version.h.tmp; \
98 fi