blob: f67ea6a7a9ce0eaffa7167df0be8aae4324de33a (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
## Makefile.am for the TeX Live subdirectory utils/psutils/
##
## Copyright (C) 2009 - 2011 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
ACLOCAL_AMFLAGS = -I ../../m4
## We want to re-distribute the whole original psutils source tree.
EXTRA_DIST = $(PSUTILS_TREE)
## Patches applied to the original source tree
EXTRA_DIST += $(PSUTILS_TREE)-PATCHES
# in case of an SVN repository
dist-hook:
rm -rf `find $(distdir) -name .svn`
OS = UNIX
PAPER = a4
AM_CPPFLAGS = -DUNIX -DPAPER=\"$(PAPER)\"
AM_CFLAGS = $(WARNING_CFLAGS)
bin_PROGRAMS = epsffit psbook psnup psresize psselect pstops
epsffit_SOURCES = \
$(PSUTILS_TREE)/config.h \
$(PSUTILS_TREE)/epsffit.c \
$(PSUTILS_TREE)/pserror.c \
$(PSUTILS_TREE)/pserror.h
psbook_SOURCES = \
$(PSUTILS_TREE)/config.h \
$(PSUTILS_TREE)/psbook.c \
$(PSUTILS_TREE)/pserror.c \
$(PSUTILS_TREE)/pserror.h \
$(PSUTILS_TREE)/psutil.c \
$(PSUTILS_TREE)/psutil.h
psnup_SOURCES = \
$(PSUTILS_TREE)/config.h \
$(PSUTILS_TREE)/pserror.c \
$(PSUTILS_TREE)/pserror.h \
$(PSUTILS_TREE)/psnup.c \
$(PSUTILS_TREE)/psspec.c \
$(PSUTILS_TREE)/psspec.h \
$(PSUTILS_TREE)/psutil.c \
$(PSUTILS_TREE)/psutil.h
psresize_SOURCES = \
$(PSUTILS_TREE)/config.h \
$(PSUTILS_TREE)/pserror.c \
$(PSUTILS_TREE)/pserror.h \
$(PSUTILS_TREE)/psresize.c \
$(PSUTILS_TREE)/psspec.c \
$(PSUTILS_TREE)/psspec.h \
$(PSUTILS_TREE)/psutil.c \
$(PSUTILS_TREE)/psutil.h
psselect_SOURCES = \
$(PSUTILS_TREE)/config.h \
$(PSUTILS_TREE)/pserror.c \
$(PSUTILS_TREE)/pserror.h \
$(PSUTILS_TREE)/psselect.c \
$(PSUTILS_TREE)/psutil.c \
$(PSUTILS_TREE)/psutil.h
pstops_SOURCES = \
$(PSUTILS_TREE)/pserror.c \
$(PSUTILS_TREE)/pserror.h \
$(PSUTILS_TREE)/psspec.c \
$(PSUTILS_TREE)/psspec.h \
$(PSUTILS_TREE)/pstops.c \
$(PSUTILS_TREE)/psutil.c \
$(PSUTILS_TREE)/psutil.h
## Omitted fixmacps depending on removed non-free files
## $(PSUTILS_TREE)/md{68,71}_0.ps.
perl_scripts = \
extractres \
fixdlsrps \
fixfmps \
fixpsditps \
fixpspps \
fixscribeps \
fixtpps \
fixwfwps \
fixwpps \
fixwwps \
includeres \
psmerge
shell_scripts = \
getafm \
showchar
scriptsdir = texmf/scripts/psutils
texmfdir = ${prefix}/$(scriptsdir)
nodist_texmf_SCRIPTS = $(perl_scripts:=.pl)
if WIN32
if WIN32_WRAP
## We treat the WIN32 wrappers as SCRIPTS to avoid automatic build rules
nodist_bin_SCRIPTS = $(perl_scripts:=.exe)
runscript = $(srcdir)/../../texk/texlive/w32_wrapper/runscript.exe
$(nodist_bin_SCRIPTS): $(runscript)
$(LN_S) $(runscript) $@
endif WIN32_WRAP
endif WIN32
install-exec-hook:
if !WIN32
@for f in $(shell_scripts); do \
echo "$(INSTALL_SCRIPT) '$(srcdir)/$(PSUTILS_TREE)/$$f.sh' '$(DESTDIR)$(bindir)/$$f'"; \
$(INSTALL_SCRIPT) "$(srcdir)/$(PSUTILS_TREE)/$$f.sh" "$(DESTDIR)$(bindir)/$$f"; \
done
endif !WIN32
install-data-hook:
if !WIN32
case "$(bindir)" in \
*/bin) $(MAKE) $(AM_MAKEFLAGS) REL=.. install-links;; \
*/bin/*) $(MAKE) $(AM_MAKEFLAGS) REL=../.. install-links;; \
*) echo "strange directory '$(bindir)' for linked scripts" >&2; \
exit 1;; \
esac
endif !WIN32
.PHONY: install-links
install-links:
@cd $(DESTDIR)$(bindir) && \
for f in $(perl_scripts); do \
rm -f $$f; \
echo "creating link '$$f' -> '$(REL)/$(scriptsdir)/$$f.pl'"; \
$(LN_S) $(REL)/$(scriptsdir)/$$f.pl $$f || exit 1; \
done
uninstall-hook:
if !WIN32
@for f in $(shell_scripts) $(perl_scripts); do \
echo "rm -f '$(DESTDIR)$(bindir)/$$f'"; \
rm -f "$(DESTDIR)$(bindir)/$$f"; \
done
endif !WIN32
nodist_man1_MANS = \
$(bin_PROGRAMS:$(EXEEXT)=.1) \
$(perl_scripts:=.1) \
getafm.1
CLEANFILES = $(nodist_bin_SCRIPTS) $(nodist_texmf_SCRIPTS) $(nodist_man1_MANS)
PERL = /usr/bin/env perl
MAKETEXT = $(PERL) $(srcdir)/$(PSUTILS_TREE)/maketext
%.pl: $(PSUTILS_TREE)/%.pl patchlev.h
$(MAKETEXT) OS=$(OS) PERL="$(PERL)" $< >$@
%.1: $(PSUTILS_TREE)/%.man patchlev.h
$(MAKETEXT) PAPER=$(PAPER) "MAN=$(nodist_man1_MANS)" $< >$@
|