blob: 97cd80e071caa03509f0a7a1b6808934616c0236 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Process this file with automake to produce an input makefile.
#
# Copyright (C) 2017 Patrick McDermott
#
# This file is part of fbcon2png.
#
# fbcon2png is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# fbcon2png 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.
#
# You should have received a copy of the GNU General Public License
# along with fbcon2png. If not, see <http://www.gnu.org/licenses/>.
if IN_GIT
PACKAGE_VERSION_GIT = $$(printf ' (%s)' \
"$$({ git describe --tags --dirty 2>/dev/null || \
printf '%s-g%s%s' \
"$$(git rev-list --count HEAD)" \
"$$(git describe --tags --dirty --always)"; \
} | sed 's|^.*/||')")
else
PACKAGE_VERSION_GIT =
endif
# PACKAGE_STRING is used in the test suite output and log.
# PACKAGE_VERSION can't be overridden. Automake ignores it in the IN_GIT
# conditional (and throws a warning), and setting it to $(PACKAGE_VERSION_GIT)
# outside the conditional causes PACKAGE_VERSION_GIT to reference itself.
# VERSION is not set here because it is used by:
# * Automake's distdir macro
# * Automake's distdir target (which checks for $(VERSION) in NEWS)
# * Our release target
PACKAGE_STRING = $(PACKAGE_NAME) $(PACKAGE_VERSION)$(PACKAGE_VERSION_GIT)
bin_PROGRAMS = fbcon2png
fbcon2png_SOURCES =
fbcon2png_CFLAGS = \
$(WARN_CFLAGS) \
$(ASAN_CFLAGS)
fbcon2png_CPPFLAGS = \
-DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\" \
-DBINDIR=\"$(bindir)\" \
-DPKGDATADIR=\"$(pkgdatadir)\" \
-DLOCALEDIR=\"$(localedir)\" \
-DPROGRAM_NAME=\"fbcon2png\" \
-I$(top_srcdir)/include \
$(LIBPNG_CFLAGS)
fbcon2png_LDADD = \
$(LIBPNG_LIBS) \
$(ASAN_CFLAGS)
fbcon2png_LINK = $(LINK) version.c
EXTRA_fbcon2png_DEPENDENCIES = version.c
EXTRA_DIST = build-aux/config.rpath
CLEANFILES = version.c
version.c: $(fbcon2png_OBJECTS) $(fbcon2png_DEPENDENCIES)
$(AM_V_GEN)printf 'const char *PACKAGE_VERSION_GIT = "%s";\n' \
"$(PACKAGE_VERSION_GIT)" >version.c
include $(top_srcdir)/lib/fonts/local.mk
include $(top_srcdir)/src/local.mk
SUBDIRS = . po
|