blob: f29a8f2670e01d846daca0a63f8473a5683996f0 (
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
71
|
## $Id$
## Proxy Makefile.am to build libpaper for TeX Live.
##
## Copyright 2017 Karl Berry <tex-live@tug.org>
## Copyright 2013-2015 Peter Breitenlohner <tex-live@tug.org>
##
## This file is free software; the copyright holder
## gives unlimited permission to copy and/or distribute it,
## with or without modifications, as long as this notice is preserved.
##
## We want to re-distribute the whole original harfbuzz source tree.
##
EXTRA_DIST = $(LIBPAPER_TREE)
## Changes applied to the original source tree
##
EXTRA_DIST += TLpatches
# Files not to be distributed
include $(srcdir)/../../am/dist_hook.am
NEVER_NAMES += $(NEVER_NAMES_SUB)
AM_CPPFLAGS = -I$(top_srcdir)/$(LIBPAPER_TREE)/lib $(WARNING_CFLAGS)
SUBDIRS = . include
noinst_LIBRARIES = libpaper.a
libpaper_a_SOURCES = \
@LIBPAPER_TREE@/lib/dimen.c \
@LIBPAPER_TREE@/lib/dimen.h \
@LIBPAPER_TREE@/lib/paper.c \
@LIBPAPER_TREE@/lib/paper.h \
@LIBPAPER_TREE@/lib/paperspecs.h
LDADD = libpaper.a
paperconf_SOURCES = @LIBPAPER_TREE@/src/paperconf.c
noinst_MANS = paperconf.1
## Tests
##
if build
check_PROGRAMS = paperconf
dist_check_SCRIPTS = paper.test
TESTS = paper.test
endif build
paper.log: paperconf$(EXEEXT)
# Rebuild
rebuild_prereq =
rebuild_target = all
CLEANFILES =
include $(srcdir)/../../am/rebuild.am
if MAINTAINER_MODE
BUILT_SOURCES = $(LIBPAPER_TREE)/lib/paperspecs.h
paperspecs.h: paperspecs Makefile
echo ' /* This file has been automaticaly generated.' >$@
echo ' Edit paperspecs to make changes to the papers specifications. */' >>$@
echo >>$@
env LANG=C LC_ALL=C $(AWK) '{ factor = 1.0; \
if ($$4 == "mm") factor = 72.0 / 25.4; \
if ($$4 == "in") factor = 72.0; \
printf(" { \"%s\", %5f, %5f },\n", \
$$1, $$2 * factor, $$3 * factor); }' < $< >> $@
endif MAINTAINER_MODE
|