blob: 8fead48a138737d7dc8f448c33dff2f93b4e783e [file] [log] [blame]
Eric Anholt8bbc0d42015-07-16 11:24:34 -07001
Eric Anholt972989b2013-12-16 09:20:25 -08002# Copyright © 2013 Intel Corporation
Eric Anholta909eb42013-09-19 09:50:49 -07003#
Eric Anholt972989b2013-12-16 09:20:25 -08004# Permission is hereby granted, free of charge, to any person obtaining a
5# copy of this software and associated documentation files (the "Software"),
6# to deal in the Software without restriction, including without limitation
7# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8# and/or sell copies of the Software, and to permit persons to whom the
9# Software is furnished to do so, subject to the following conditions:
Eric Anholta909eb42013-09-19 09:50:49 -070010#
Eric Anholt972989b2013-12-16 09:20:25 -080011# The above copyright notice and this permission notice (including the next
12# paragraph) shall be included in all copies or substantial portions of the
13# Software.
Eric Anholta909eb42013-09-19 09:50:49 -070014#
Eric Anholt972989b2013-12-16 09:20:25 -080015# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21# IN THE SOFTWARE.
Eric Anholta909eb42013-09-19 09:50:49 -070022
Emmanuele Bassi48ee13e2017-02-09 17:10:34 +000023ACLOCAL_AMFLAGS = -I m4
24
Eric Anholt43acf7b2013-12-06 11:50:00 -080025SUBDIRS = include/epoxy src
Eric Anholta909eb42013-09-19 09:50:49 -070026
Eric Anholt04cf9402013-11-11 09:59:25 -080027SUBDIRS += test
Eric Anholta909eb42013-09-19 09:50:49 -070028
29pkgconfigdir = $(libdir)/pkgconfig
30pkgconfig_DATA = epoxy.pc
31
Emmanuele Bassi0ab213b2017-02-08 15:55:21 +000032registry_files = \
33 registry/egl.xml \
34 registry/gl.xml \
35 registry/glx.xml \
36 registry/wgl.xml \
37 $()
38
39meson_build_files = \
40 meson_options.txt \
41 meson.build \
42 include/epoxy/meson.build \
43 src/meson.build \
44 test/meson.build \
45 doc/meson.build \
46 doc/Doxyfile.in \
47 cross/fedora-mingw64.txt \
48 $()
49
Eric Anholta909eb42013-09-19 09:50:49 -070050EXTRA_DIST = \
Eric Anholtc8cd4b72015-07-16 11:20:11 -070051 .dir-locals.el \
Eric Anholt0b55e872013-12-17 15:21:48 -080052 README.md \
Eric Anholtc8cd4b72015-07-16 11:20:11 -070053 autogen.sh \
Eric Anholta909eb42013-09-19 09:50:49 -070054 epoxy.pc.in \
Emmanuele Bassi0ab213b2017-02-08 15:55:21 +000055 $(registry_files) \
56 $(meson_build_files) \
Eric Anholta909eb42013-09-19 09:50:49 -070057 $()
Emmanuele Bassi2e2b9632017-02-06 15:20:28 +000058
59dist-hook:
60 @if test -d "$(top_srcdir)/.git"; then \
61 echo Generating ChangeLog... ; \
62 ( $(top_srcdir)/missing --run git log --stat ) > "$(top_srcdir)/ChangeLog.tmp" \
63 && mv -f "$(top_srcdir)/ChangeLog.tmp" "$(top_distdir)/ChangeLog" \
64 || ( rm -f "$(top_srcdir)/ChangeLog.tmp"; \
65 echo Failed to generate ChangeLog >&2 ); \
66 else \
67 echo A git checkout is required to generate a ChangeLog >&2; \
68 fi