File: Makefile.in

package info (click to toggle)
xabacus 7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,552 kB
  • ctags: 1,392
  • sloc: ansic: 16,435; sh: 3,220; makefile: 619
file content (520 lines) | stat: -rw-r--r-- 16,744 bytes parent folder | download
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
# @(#)Makefile.in
#
# Copyright 1997 - 2010  David A. Bagley, bagleyd@tux.org
#
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby granted,
# provided that the above copyright notice appear in all copies and
# that both that copyright notice and this permission notice appear in
# supporting documentation, and that the name of the author not be
# used in advertising or publicity pertaining to distribution of the
# software without specific, written prior permission.
#
# 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.

# xabacus Makefile.in for configure (UNIX X11 support)

wIDGET = abacus
WIDGET = Abacus
GROUP = xabacus
P=x
R=$(P)
V=
PROG = $(R)$(wIDGET)
VER = $(V)$(wIDGET)

# this tells GNU make not to export variables into the environment
# But other makes do not understand its significance, so it must
# not be the first target in the file. So it is here, before
# any variables are created, but after the default target
.NOEXPORT :

SHELL = /bin/sh
# Its not a game, so you may not want this.  Man page itself is hard coded.
MANNUM = 6
#MANNUM = 1

srcdir = @srcdir@
top_srcdir = @top_srcdir@
#VPATH = @srcdir@/

prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
mandir = @mandir@/man$(MANNUM)
xapploaddir = @APPDEFAULTS@
#xapploaddir = @libdir@/X11/app-defaults
#xapploaddir = @libdir@/app-defaults
datarootdir = @datarootdir@
datadir = @datadir@
readdir = $(datadir)/games/$(GROUP)

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
M = @XM_PREFIX@

DESTDIR =

#CC = cc -g
#CC = acc -g
#CC = gcc -g -Wall -ansi -pedantic
#CC = gcc -g -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-long-long
#CC = gcc -g -Wall
#CC = g++ -g -Wall
#CC = CC -g
CC = @CC@

LINT = lint
#LINT = alint

INDENT = indent

MORE = more
#MORE = less

PRINT = lpr
#PRINT = enscript -2r

LN_S = @LN_S@
RM = rm -f
RM_S = $(RM)
ECHO = echo

#BLN_S = set file/enter=[]
#RM = delete/noconfirm/nolog
#RM_S = set file/remove/nolog
#ECHO = write sys$output

# Assumes a directory of /usr/local/share/games/$(GROUP) if -DDEMOPATH not set.
DEFINES = \
-DSOUNDPATH=\"$(readdir)\" -DSOUNDEXT=\".au\" \
-DBUMPSOUND=\"bump\" -DMOVESOUND=\"move\" \
-DDEMOPATH=\"$(readdir)\"
DEFS = @DEFS@ $(DEFINES)
# -DDEBUG
# -DSRAND=srand48 -DLRAND=lrand48 -DMAXRAND=2147483648.0
# -DSRAND=srandom -DLRAND=random -DMAXRAND=2147483648.0
# -DSRAND=srand -DLRAND=rand -DMAXRAND=32768.0
# -DHAVE_USLEEP
# -DHAVE_NANOSLEEP
# -DCONSTPIXMAPS
XWIDGETINC = @XWIDGETINC@ -I$(top_srcdir) -I.
CFLAGS = @CFLAGS@
#CFLAGS = -O
#CFLAGS = -g
XWIDGETLDFLAGS = @XWIDGETLDFLAGS@
XLIBS = @XLIBS@
XWIDGETLIBS = @XWIDGETLIBS@ -lm

N=
C=.c
#C++
#C=.cc
#C=.cpp

O=.o
#O=.@OBJEXT@
S=$(N) $(N)
E=@EXEEXT@
A=

#VMS
#O=.obj
#S=,
#E=.exe
#A=;*

# please define
# C as the C source code extension
# O as the object extension
# S as the separator for object code
# E as the executable extension

HDRS = $(WIDGET)P.h $(WIDGET).h \
xwin.h file.h timer.h rngs.h \
sound.h version.h \
pixmaps/$(wIDGET).xbm pixmaps/$(wIDGET).xpm

COREOBJS = $(WIDGET)$(O)$(S)$(WIDGET)D$(O)$(S)$(WIDGET)C$(O)$(S)\
$(WIDGET)M$(O)$(S)$(WIDGET)T$(O)
OBJS = xwin$(O)$(S)file$(O)$(S)timer$(O)$(S)rngs$(O)$(S)\
sound$(O)$(S)\
$(COREOBJS)$(S)$(P)$(wIDGET)$(O)

CORESRCS = $(WIDGET)$(C) $(WIDGET)D$(C) $(WIDGET)C$(C) \
$(WIDGET)M$(C) $(WIDGET)T$(C)
SRCS = xwin$(C) file$(C) timer$(C) rngs$(C) \
sound$(C) \
$(CORESRCS) $(P)$(wIDGET)$(C)

all : $(PROG) $(WIDGET).ad

constpixmaps :
	@ $(ECHO) "USE with -DCONSTPIXMAPS"
	for pix in pixmaps/*.xpm; do\
		base=`basename $$pix`;\
		sed 's/static char/static const char/' $$pix > $$base;\
	done

$(PROG) : $(OBJS)
	$(CC) -o $@ $(OBJS) $(XWIDGETLDFLAGS) $(XWIDGETLIBS)
	@ $(ECHO) "$@ BUILD COMPLETE"
	@ $(ECHO) ""
	@ $(ECHO) "To install: \"make install\" is safer but"
	@ $(ECHO) "\"make install-games\" may work better, see INSTALL."

$(WIDGET)$(O) : $(WIDGET)$(C) $(HDRS)
$(WIDGET)M$(O) : $(WIDGET)M$(C) $(WIDGET)P.h $(WIDGET).h
$(WIDGET)D$(O) : $(WIDGET)D$(C) $(WIDGET)P.h $(WIDGET).h file.h
$(WIDGET)C$(O) : $(WIDGET)C$(C) $(WIDGET)P.h $(WIDGET).h
$(WIDGET)T$(O) : $(WIDGET)T$(C) $(WIDGET)P.h $(WIDGET).h
xwin$(O) : xwin$(C) xwin.h
file$(O) : file$(C) file.h
timer$(O) : timer$(C) timer.h
rngs$(O) : rngs$(C) rngs.h
sound$(O) : sound$(C) sound.h file.h
$(P)$(wIDGET)$(O) : $(P)$(wIDGET)$(C) $(WIDGET).h xwin.h file.h version.h

install : $(PROG)$(E)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
	$(INSTALL_PROGRAM) $(PROG)$(E) $(DESTDIR)$(bindir)/$(R)$(M)$(wIDGET)$(E)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)
	$(INSTALL_DATA) $(PROG).man $(DESTDIR)$(mandir)/$(PROG).$(MANNUM)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(xapploaddir)
	$(INSTALL_DATA) $(WIDGET).ad $(DESTDIR)$(xapploaddir)/$(WIDGET)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(readdir)
	$(INSTALL_DATA) $(WIDGET).ps $(DESTDIR)$(readdir)/$(WIDGET).ps
	cd lessons > /dev/null; \
	for les in $(WIDGET)*.les; do \
		$(INSTALL_DATA) $$les $(DESTDIR)$(readdir)/$$les; \
	done; \
	cd ..
	$(INSTALL_DATA) bump.au $(DESTDIR)$(readdir)/bump.au
	$(INSTALL_DATA) move.au $(DESTDIR)$(readdir)/move.au
	@ $(ECHO) "$@ COMPLETE"
	@ $(ECHO) ""
	@ $(ECHO) "To use $(R)$(M)$(wIDGET) from a menu, you may want to install the"
	@ $(ECHO) "images.  Do a \"make install-png\" for Gnome and KDE, or do a"
	@ $(ECHO) "\"make install-xpm\" or a \"make install-xpm-home\" for CDE."

uninstall :
	$(RM) $(DESTDIR)$(bindir)/$(R)$(M)$(wIDGET)$(E)$(A)
	$(RM) $(DESTDIR)$(mandir)/$(PROG).$(MANNUM)
	$(RM) $(DESTDIR)$(xapploaddir)/$(WIDGET)
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET).ps
	for les in $(DESTDIR)$(readdir)/$(WIDGET)*.les; do \
		$(RM) $$les; \
	done
	$(RM) $(DESTDIR)$(readdir)/bump.au
	$(RM) $(DESTDIR)$(readdir)/move.au

install-games : $(PROG)$(E)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)
	$(INSTALL_DATA) $(PROG).man $(DESTDIR)$(mandir)/$(PROG).$(MANNUM)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(xapploaddir)
	$(INSTALL_DATA) $(WIDGET).ad $(DESTDIR)$(xapploaddir)/$(WIDGET)
	$(srcdir)/mkinstalldirs /usr/games
	$(INSTALL_PROGRAM) $(PROG)$(E) /usr/games/$(R)$(M)$(wIDGET)$(E)
	chmod 2755 /usr/games/$(R)$(M)$(wIDGET)$(E)
	chown games:games /usr/games/$(R)$(M)$(wIDGET)$(E)
	@ $(ECHO) "$@ COMPLETE"
	@ $(ECHO) ""
	@ $(ECHO) "To use $(R)$(M)$(wIDGET) from a menu, you may want to install the "
	@ $(ECHO) "images.  Do a \"make install-png\" for Gnome and KDE, or do a"
	@ $(ECHO) "\"make install-xpm\" or a \"make install-xpm-home\" for CDE."

uninstall-games :
	$(RM) $(DESTDIR)$(mandir)/$(PROG).$(MANNUM)
	$(RM) $(DESTDIR)$(xapploaddir)/$(WIDGET)
	$(RM) /usr/games/$(R)$(M)$(wIDGET)$(E)

# Gnome and KDE
install-png :
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/pixmaps/png/hicolor/16x16/apps
	$(INSTALL_DATA) pixmaps/mini.$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/16x16/apps/$(wIDGET).png
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/pixmaps/png/hicolor/22x22/apps
	$(INSTALL_DATA) pixmaps/small.$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/22x22/apps/$(wIDGET).png
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/pixmaps/png/hicolor/32x32/apps
	$(INSTALL_DATA) pixmaps/normal.$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/32x32/apps/$(wIDGET).png
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/pixmaps/png/hicolor/48x48/apps
	$(INSTALL_DATA) pixmaps/big.$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/48x48/apps/$(wIDGET).png
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps
	$(LN_S) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/16x16/apps/$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/mini.$(wIDGET).png
	$(LN_S) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/22x22/apps/$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/small.$(wIDGET).png
	$(LN_S) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/32x32/apps/$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/normal.$(wIDGET).png
	$(LN_S) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/48x48/apps/$(wIDGET).png $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/big.$(wIDGET).png

uninstall-png :
	$(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/mini.$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/small.$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/normal.$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/all/apps/big.$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/16x16/apps/$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/22x22/apps/$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/32x32/apps/$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/pixmaps/png/hicolor/48x48/apps/$(wIDGET).png

#CDE
install-xpm :
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/dt/pixmaps
	$(INSTALL_DATA) pixmaps/$(wIDGET).t.xpm $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).t.pm
	$(INSTALL_DATA) pixmaps/$(wIDGET).s.xpm $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).s.pm
	$(INSTALL_DATA) pixmaps/$(wIDGET).m.xpm $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).m.pm
	$(INSTALL_DATA) pixmaps/$(wIDGET).l.xpm $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).l.pm

uninstall-xpm :
	$(RM) $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).t.pm
	$(RM) $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).s.pm
	$(RM) $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).m.pm
	$(RM) $(DESTDIR)$(datadir)/dt/pixmaps/$(wIDGET).l.pm

#CDE HOME directory
install-xpm-home :
	$(srcdir)/mkinstalldirs $(HOME)/.dt/pixmaps
	$(INSTALL_DATA) pixmaps/$(wIDGET).t.xpm $(HOME)/.dt/pixmaps/$(wIDGET).t.pm
	$(INSTALL_DATA) pixmaps/$(wIDGET).s.xpm $(HOME)/.dt/pixmaps/$(wIDGET).s.pm
	$(INSTALL_DATA) pixmaps/$(wIDGET).m.xpm $(HOME)/.dt/pixmaps/$(wIDGET).m.pm
	$(INSTALL_DATA) pixmaps/$(wIDGET).l.xpm $(HOME)/.dt/pixmaps/$(wIDGET).l.pm

uninstall-xpm-home :
	$(RM) $(HOME)/.dt/pixmaps/$(wIDGET).t.pm
	$(RM) $(HOME)/.dt/pixmaps/$(wIDGET).s.pm
	$(RM) $(HOME)/.dt/pixmaps/$(wIDGET).m.pm
	$(RM) $(HOME)/.dt/pixmaps/$(wIDGET).l.pm

SUFFIXES : $(C) $(O) $(E) .ad.in .ad

$(C)$(O) :
	$(CC) -c $(CPPFLAGS) $(DEFS) $(XWIDGETINC) $(CFLAGS) $<

# Certain makes break on this
# ADINS = $(ADS:.ad.in=.ad)
#
# $(ADS) : %.ad.in:%.ad
#	sed s:@READPATH@:$(readdir):g $< > $@
$(WIDGET).ad : $(WIDGET).ad.in
	sed s:@READPATH@:$(readdir):g $(WIDGET).ad.in > $@

Makefile : Makefile.in config.status
	$(SHELL) config.status
config.status : configure
	$(SHELL) config.status --recheck
configure : configure.in
# enable this rule if you want autoconf to be executed automatically when
# configure.in is changed. This is commented out, since patching might give
# configure.in a newer timestamp than configure and not everybody has autoconf
#	cd $(srcdir); autoconf

run :
	./$(PROG)

run.scores :

run.version :
	./$(PROG) -version

lee :
	./$(PROG) -lee -leftAuxRails 9 -rightAuxRails 9

#Roman Hand Abacus (right most column twelfths and ancient Roman Numerals in display)
roman :
	./$(PROG) -roman -subdeck 3 -topPiece 2 -bottomPiece 6 -rails 10 -romanNumerals -nolatin -ancientRoman -nomodernRoman

#Alt Roman Hand Abacus (right most column eighths and modern Roman Numerals on abacus)
roman8 :
	./$(PROG) -roman -subdeck 3 -topPiece 2 -bottomPiece 6 -rails 10 -romanNumerals -nolatin -noancientRoman -modernRoman -eighth

#Russian Schoty
russian :
	./$(PROG) -russian -bottomPiece 4 -rails 11

#Old Russian Schoty
russianold :
	./$(PROG) -russian -bottomPiece 4 -bottomPiecePercent 4 -rails 11

#Georgian Schoty (not to be taken seriously)
georgian :
	./$(PROG) -russian -bottomPiece 4 -bottomPiecePercent 4 -rails 11 -base 20

#Danish School Abacus
danish :
	./$(PROG) -danish -decimalPosition 0 -decimalComma -group -rails 10

#Mesoamerican Nepohualtzintzin (similar to Japanese Soroban base 20)
mesoamerican :
	./$(PROG) -other -base 20 -anomaly 2 -diamond -topNumber 3 -bottomNumber 4 -topSpaces 1 -bottomSpaces 1

#Babylonian Watch (proposed by author)
watch :
	./$(PROG) -other -anomaly 4 -anomalySq 4 -topSpaces 1 -bottomSpaces 1

#Chinese solid-and-broken-bar system
bar :
	./$(PROG) -other -base 12 -displayBase 12 -topFactor 3 -topNumber 3 -bottomNumber 2

#Base 16 Abacus
base16 :
	./$(PROG) -japanese -base 16 -displayBase 10

gdb :
	gdb ./$(PROG)

dbx :
	dbx ./$(PROG)

clean :
	$(RM) *.o *.exe* core *~ *% *.bak make.log MakeOut Makefile.dep \
$(PROG) $(PROG).errs $(PROG).1.html $(PROG)._man $(wIDGET)*.xpm
	cd win32 ; make -f Makefile clean

distclean : clean
	$(RM) config.cache config.log *.ad
	$(RM)r autom4te.cache
	cd win32 ; make -f Makefile distclean
	$(RM) lessons/Abacus.les Abacus.les

clean.all : distclean
	$(RM) Makefile config.status*

PACKAGE=$(VER)/$(WIDGET).h $(VER)/$(WIDGET)P.h \
$(VER)/xwin.h $(VER)/file.h $(VER)/timer.h $(VER)/rngs.h \
$(VER)/sound.h $(VER)/version.h \
$(VER)/pixmaps/mouse-l.xbm $(VER)/pixmaps/mouse-r.xbm \
$(VER)/pixmaps/$(wIDGET).xbm $(VER)/pixmaps/$(wIDGET).xpm \
$(VER)/pixmaps/$(wIDGET).t.xpm $(VER)/pixmaps/$(wIDGET).s.xpm \
$(VER)/pixmaps/$(wIDGET).m.xpm $(VER)/pixmaps/$(wIDGET).l.xpm \
$(VER)/pixmaps/$(wIDGET).p.xpm $(VER)/pixmaps/Abacus0*.gif \
$(VER)/pixmaps/mini.$(wIDGET).png $(VER)/pixmaps/small.$(wIDGET).png \
$(VER)/pixmaps/normal.$(wIDGET).png $(VER)/pixmaps/big.$(wIDGET).png \
$(VER)/bump.au $(VER)/move.au $(VER)/play.sh \
$(VER)/$(WIDGET)$(C) $(VER)/$(WIDGET)D$(C) $(VER)/$(WIDGET)C$(C) \
$(VER)/$(WIDGET)M$(C) $(VER)/$(WIDGET)T$(C) $(VER)/$(P)$(wIDGET)$(C) \
$(VER)/xwin$(C) $(VER)/file$(C) $(VER)/timer$(C) $(VER)/rngs$(C) \
$(VER)/sound$(C) \
$(VER)/Imakefile $(VER)/$(PROG).man $(VER)/$(PROG).html \
$(VER)/$(WIDGET).ad.in $(VER)/$(WIDGET).ps $(VER)/lessons/Abacus*.les \
$(VER)/configure $(VER)/Makefile.in $(VER)/configure.in \
$(VER)/config.guess $(VER)/config.sub $(VER)/install-sh $(VER)/mkinstalldirs \
$(VER)/AUTHORS $(VER)/ChangeLog $(VER)/COPYING $(VER)/NEWS \
$(VER)/INSTALL $(VER)/README $(VER)/TODO \
$(VER)/vms/README.vms $(VER)/vms/$(PROG).hlp \
$(VER)/vms/make.com $(VER)/vms/mmov.com \
$(VER)/vms/vms_amd.c $(VER)/vms/vms_amd.h $(VER)/vms/vms_mmov.c \
$(VER)/win32/Makefile $(VER)/win32/w$(wIDGET).rc \
$(VER)/win32/bump.wav $(VER)/win32/move.wav \
$(VER)/win32/w$(wIDGET).ini $(VER)/win32/$(wIDGET).ico

zip :
	cd .. ; zip $(VER) $(PACKAGE)

pkzip :
	cd .. ; pkzip $(VER) $(PACKAGE)

tar :
	cd .. ; tar cvf $(VER).tar $(PACKAGE)

compress :
	cd .. ; tar cvf - $(PACKAGE) | compress > $(VER).tar.Z

gzip :
	cd .. ; tar cvf - $(PACKAGE) | gzip > $(VER).tar.gz

bzip2 :
	cd .. ; tar cvf - $(PACKAGE) | bzip2 > $(VER).tar.bz2

dist : bzip2

dist.man : $(PROG).html vms/$(PROG).hlp

# man2html 3.0.1, changed psgz 1666 and txsz 1552
$(PROG).html : $(PROG).man
	nroff -c -man < $(PROG).man | man2html -title $(PROG) > $(PROG).html

# found man2hlp.sh in lynx source
vms/$(PROG).hlp : $(PROG).man
	man2hlp.sh $(PROG).man > vms/$(PROG).hlp

html : $(PROG).html

hlp : vms/$(PROG).hlp

man :
	nroff -c -man $(PROG).man | $(MORE)

print:
	$(PRINT) $(HDRS) $(SRCS)

read :
	$(MORE) README

antic :
	antic *.h *.c */*.xpm */*.xbm */*.c */*.h

lint :
	$(LINT) -ax -DLINT $(DEFS) $(XWIDGETINC) $(SRCS) $(XWIDGETLIBS)

indent :
	$(INDENT) $(HDRS) $(SRCS)

PNGS=\
	pixmaps/big.$(wIDGET).png\
	pixmaps/normal.$(wIDGET).png\
	pixmaps/small.$(wIDGET).png\
	pixmaps/mini.$(wIDGET).png

pixmaps/big.$(wIDGET).png : pixmaps/$(wIDGET).l.xpm
	if grep None $< > /dev/null; then\
		sed -e 's/None/White/' $< | xpmtoppm |\
		pnmtopng -transparent 1,1,1 > $@;\
	else\
		xpmtoppm $< | pnmtopng > $@;\
	fi

pixmaps/normal.$(wIDGET).png : pixmaps/$(wIDGET).m.xpm
	if grep None $< > /dev/null; then\
		sed -e 's/None/White/' $< | xpmtoppm |\
		pnmtopng -transparent 1,1,1 > $@;\
	else\
		xpmtoppm $< | pnmtopng > $@;\
	fi

pixmaps/small.$(wIDGET).png : pixmaps/$(wIDGET).p.xpm
	if grep None $< > /dev/null; then\
		sed -e 's/None/White/' $< | xpmtoppm |\
		pnmtopng -transparent 1,1,1 > $@;\
	else\
		xpmtoppm $< | pnmtopng > $@;\
	fi

pixmaps/mini.$(wIDGET).png : pixmaps/$(wIDGET).t.xpm
	if grep None $< > /dev/null; then\
		sed -e 's/None/White/' $< | xpmtoppm |\
		pnmtopng -transparent 1,1,1 > $@;\
	else\
		xpmtoppm $< | pnmtopng > $@;\
	fi

pixmap : $(PNGS)

GIFS=\
	pixmaps/Abacus001.gif pixmaps/Abacus002.gif\
	pixmaps/Abacus003.gif pixmaps/Abacus004.gif\
	pixmaps/Abacus005.gif pixmaps/Abacus006.gif\
	pixmaps/Abacus007.gif pixmaps/Abacus008.gif\
	pixmaps/Abacus009.gif pixmaps/Abacus010.gif\
	pixmaps/Abacus011.gif pixmaps/Abacus012.gif

pixmaps/Abacus001.gif : Abacus.ps
	pstopnm Abacus.ps
	for i in 01 02 03 04 05 06 07 08 09 10 11 12; do\
		ppmtogif Abacus0$$i.ppm > pixmaps/Abacus0$$i.gif;\
		rm -f ppmtogif Abacus0$$i.ppm;\
	done

gif : $(GIFS)