-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile.in
More file actions
212 lines (173 loc) · 6.06 KB
/
Makefile.in
File metadata and controls
212 lines (173 loc) · 6.06 KB
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# Top Level Makefile for openAPL
# Copyright (C) Branko Bratkovic 1998, 1999
# This file is free software and is covered by the GNU General
# Public License.
#
# This program 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.
#
# For more details see the GNU General Public License (GPL) in
# the docs directory.
# Makefile variables
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
# $sysconfdir used in: script/apl printer/apl2gs printer/apl2epson
sysconfdir = @sysconfdir@
# $wsdir used in: script/apl-setup
wsdir = @wsdir@
man1dir = @mandir@/man1
# $keytabledir used in: script/apl
keytabledir = @keytabledir@
# $consolefontdir used in: script/apl printer/apl2epson
consolefontdir = @consolefontdir@
# $gsfontdir used in: printer/apl2gs
gsfontdir = @gsfontdir@
# x11share used in: script/apl
x11share = @x11share@
x11fontdir = @x11fontdir@
# required to compress the X11 font
COMPRESS = @compress@
# installation scripts
INSTALL=@install@
INSTALL_DATA=@INSTALL_DATA@
# Source Locations
srcdir = .
x11keysrc = $(srcdir)/terminal/@keytype@/keymap/apl2741.xmap
x11modesrc = $(srcdir)/terminal/@keytype@/keymap/modeswitch.xmap
confontsrc = $(srcdir)/terminal/@machinetype@/fonts/apl8x16.psf
keymapsrc = $(srcdir)/terminal/@machinetype@/keymap/apl2741.map
# Things that need to be built before "make install" can be done
#----------------------------------------------------------
all:
cd apl11 ; $(MAKE)
# Installation
#--------------------------------------------------------
# Consequences of "./configure --enable.. & --with.." are in this line.
install: apl11 apl @with_console@ x11 @with_ghostscript@ @with_epson@
apl11: $(bindir)/apl11 $(man1dir)/apl11.1
apl: $(bindir)/apl $(bindir)/apl-setup $(man1dir)/apl.1 \
$(wsdir)/aplrc $(wsdir)/continue
console: $(consolefontdir)/apl8x16.psf $(keytabledir)/apl2741.map
x11: $(x11share)/apl2741.xmap @do_modeswitch@ \
$(x11fontdir)/fonts.dir
ghostscript: $(bindir)/apl2gs $(man1dir)/apl2gs.1
epson: $(bindir)/apl2epson $(man1dir)/apl2epson.1 \
$(consolefontdir)/apl8x16.psf
# create directories as requried
$(bindir) $(man1dir) $(wsdir) $(consolefontdir) \
$(keytabledir) $(gsfontdir) $(x11share) $(x11fontdir):
$(INSTALL) -d $@
# If more than one of the above point to the same directory
# (for instance use of a common $fontdir) then the following
# target may result in a warning. Its safe to ignore it.
# apl11 - the binary
$(bindir)/apl11: apl11/apl11 $(bindir)
$(INSTALL) apl11/apl11 $(bindir)
$(man1dir)/apl11.1: man/apl11.1 $(man1dir)
$(INSTALL_DATA) man/apl11.1 $(man1dir)
# apl shell script
$(bindir)/apl: script/apl $(bindir)
$(INSTALL) script/apl $(bindir)
$(man1dir)/apl.1: man/apl.1 $(man1dir)
$(INSTALL_DATA) man/apl.1 $(man1dir)
# first time user set-up wizzard
$(bindir)/apl-setup: script/apl-setup $(bindir)
$(INSTALL) script/apl-setup $(bindir)
# first time user workspace
$(wsdir)/continue: library/continue $(wsdir)
$(INSTALL_DATA) library/continue $(wsdir)
# skeleton user confuguration file
$(wsdir)/aplrc: script/aplrc $(wsdir)
$(INSTALL_DATA) script/aplrc $(wsdir)
# Epson filter
$(bindir)/apl2epson: printer/apl2epson $(bindir)
$(INSTALL) printer/apl2epson $(bindir)
$(man1dir)/apl2epson.1: man/apl2epson.1 $(man1dir)
$(INSTALL_DATA) man/apl2epson.1 $(man1dir)
# Ghostscript filter
$(bindir)/apl2gs: printer/apl2gs $(bindir)
$(INSTALL) printer/apl2gs $(bindir)
$(man1dir)/apl2gs.1: man/apl2gs.1 $(man1dir)
$(INSTALL_DATA) man/apl2gs.1 $(man1dir)
# linux console font
$(consolefontdir)/apl8x16.psf: $(confontsrc) $(consolefontdir)
$(INSTALL_DATA) $(confontsrc) $(consolefontdir)
# linux keyboard map
$(keytabledir)/apl2741.map: $(keymapsrc) $(keytabledir)
$(INSTALL_DATA) $(keymapsrc) $(keytabledir)
# the ghostscript font
$(gsfontdir)/apl2741.fnt: printer/apl2741.fnt $(gsfontdir)
$(INSTALL_DATA) printer/apl2741.fnt $(gsfontdir)
# X11 keyboard map
$(x11share)/apl2741.xmap: $(x11keysrc) $(x11share)
$(INSTALL_DATA) $(x11keysrc) $(x11share)
# X11 keyboard modeswitch
$(x11share)/modeswitch.xmap: $(x11modesrc) $(x11share)
$(INSTALL_DATA) $(x11modesrc) $(x11share)
# X11 apl font (although apl8x13 is the only target,
# others are also installed)
$(x11fontdir)/apl8x13.pcf: terminal/XFree86/fonts/apl*.pcf $(x11fontdir)
for name in terminal/XFree86/fonts/apl*.pcf ; do \
$(INSTALL_DATA) $$name $(x11fontdir) ; \
done
$(x11fontdir)/fonts.dir: $(x11fontdir)/apl8x13.pcf
$(COMPRESS) $(x11fontdir)/apl*.pcf
cd $(x11fontdir) ; mkfontdir
# Distribution tar file (login or su as root)
#--------------------------------------------------------
tar: mirror
cd /tmp ; tar -cvf openapl.tar ./openAPL/*
mv /tmp/openapl.tar \
/tmp/openapl-0`cut -c2-4 apl11/include/patchlevel.h`.tar
gzip /tmp/openapl-0*.tar
mirror:
rm -rf /tmp/openAPL
find ./[a-z]* ./README ./Makefile* -print \
| cpio -pdmv /tmp/openAPL
cd /tmp/openAPL ; $(MAKE) clean ; $(MAKE) tidy
cd /tmp ; chmod 775 openAPL ;\
chown -R nobody openAPL ;\
chgrp -R nogroup openAPL
# To remove everything made through the Makefile
#--------------------------------------------------------
clean:
cd apl11 ; $(MAKE) clean
cd qa ; $(MAKE) clean
# To remove everything created by autoconf/configure
#--------------------------------------------------------
tidy:
cd autoconf ; rm -f config.*
rm -f apl11/include/config.h
rm -f apl11/include/makefile.common
rm -f Makefile
rm -f qa/Makefile
rm -f script/apl
rm -f script/apl-setup
rm -f script/aplrc
rm -f printer/apl2gs
rm -f printer/apl2epson
uninstall:
rm -rf \
$(bindir)/apl11 \
$(man1dir)/apl11.1 \
$(bindir)/apl \
$(man1dir)/apl.1 \
$(bindir)/apl-setup \
$(wsdir)/aplrc \
$(wsdir)/continue \
$(bindir)/apl2epson \
$(man1dir)/apl2epson.1 \
$(bindir)/apl2gs \
$(man1dir)/apl2gs.1 \
$(consolefontdir)/apl8x16.psf \
$(keytabledir)/apl2741.map \
$(gsfontdir)/apl2741.fnt \
$(x11share)/apl2741.xmap \
$(x11share)/modeswitch.xmap \
$(x11fontdir)/apl*.pcf \
$(x11fontdir)/apl*.pcf.gz \
$(x11fontdir)/apl*.pcf.Z
cd $(x11fontdir) ; mkfontdir
rmdir $(wsdir)