File: Makefile

package info (click to toggle)
troffcvt 1.04%2Brepack1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,416 kB
  • sloc: ansic: 13,110; makefile: 6,847; perl: 1,583; cpp: 333; sh: 215
file content (735 lines) | stat: -rw-r--r-- 20,687 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
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
# Makefile generated by imake - do not edit!
# $XConsortium: imake.c /main/90 1996/11/13 14:43:23 lehors $

# -------------------------------------------------------------------------
# Makefile generated from "Imake.tmpl" and <Imakefile>.
#
# Platform-specific parameters may be set in the appropriate .cf and
# .p-cf configuration files.  Site-wide parameters may be set in the
# files site.def and site.p-def.  Full rebuilds are recommended if
# any parameters are changed.

# -------------------------------------------------------------------------
# site-specific configuration parameters that need to come before the
# platform-specific parameters - edit site.def or site.p-def to change

# site:  Primate Center 89/12/22

# -------------------------------------------------------------------------
# Set the OS name and version macros if imake has defined them

# -------------------------------------------------------------------------
# platform-specific configuration parameters specific to this project
# edit sun.p-cf to change

# -------------------------------------------------------------------------
# platform-specific configuration parameters
# edit sun.cf to change

# platform:  sun.cf	96/06/21
# operating system:  SunOS 5.5 Generic sun4u

# -------------------------------------------------------------------------
# site-specific configuration parameters that go after the
# platform-specific parameters - edit site.def or site.p-def to change

# site:  Primate Center 89/12/22

# -------------------------------------------------------------------------
# project-specific system and project description parameters
# Edit Imake.p-params to change

           LIBDIR = $(LOCALUSRLIBDIR)/troffcvt
       PROJLIBDIR = $(LIBDIR)
      MACROLIBDIR = $(USRLIBDIR)/tmac
  MACROFILEPREFIX =

         STRING_H = <string.h>
 STRING_H_DEFINES = -D'STRING_H=$(STRING_H)'

       INCLUDESRC = $(TOP)/h
           LIBSRC = $(TOP)/lib
       LIBUNIXSRC = $(TOP)/libunix
        LIBMACSRC = $(TOP)/libmac
          UTILSRC = $(TOP)/util

           DOCSRC = $(TOP)/doc
           MANSRC = $(TOP)/man

         TCGENLIB = $(LOADERLIBPREFIX)$(LIBSRC)/libtcgen.a
      DEPTCGENLIB = $(LIBSRC)/libtcgen.a
        TCREADLIB = $(LOADERLIBPREFIX)$(LIBSRC)/libtcread.a
     DEPTCREADLIB = $(LIBSRC)/libtcread.a
        TCUNIXLIB = $(LOADERLIBPREFIX)$(LIBUNIXSRC)/libtcunix.a
     DEPTCUNIXLIB = $(LIBUNIXSRC)/libtcunix.a

# -------------------------------------------------------------------------
# Standard system and project description parameters
# Edit Imake.params to change

# -------------------------------------------------------------------------
# definitions common to all Makefiles

          PATHSEP = /

            SHELL = /bin/sh

  VARARGS_DEFINES = -DSTDARG -DVARARGS

              TOP = ../.
      CURRENT_DIR = ./post

# Configuration file identification - name and release level

         CONFIGNAME = WRPRC2
 CONFIGMAJORRELEASE = 2
 CONFIGMINORRELEASE = 11
      CONFIGRELEASE = $(CONFIGMAJORRELEASE).$(CONFIGMINORRELEASE)
      CONFIGROOTDIR = /usr/local/lib/config

# Project identfication - name and release level

        PROJECTNAME = troffcvt
PROJECTMAJORRELEASE = 1
PROJECTMINORRELEASE = 04
     PROJECTRELEASE = $(PROJECTMAJORRELEASE).$(PROJECTMINORRELEASE)

           BINDIR = /usr/bin
        USRLIBDIR = /usr/lib
       LINTLIBDIR = $(USRLIBDIR)/lint

           ETCDIR = /usr/etc
      INCLUDEROOT = /usr/include
           TMPDIR = /usr/tmp
     SPOOLROOTDIR = /var/spool

     LOCALROOTDIR = /usr/local
      LOCALBINDIR = $(LOCALROOTDIR)/bin
   LOCALUSRLIBDIR = $(LOCALROOTDIR)/lib
  LOCALLINTLIBDIR = $(LOCALUSRLIBDIR)/lint
      LOCALADMDIR = $(LOCALROOTDIR)/adm
      LOCALETCDIR = $(LOCALROOTDIR)/etc
 LOCALINCLUDEROOT = $(LOCALROOTDIR)/include

          MANROOT = /usr/local/man
    MANSOURCEPATH = $(MANROOT)/man
       MAN1SUFFIX = 1
       MAN2SUFFIX = 2
       MAN3SUFFIX = 3
       MAN4SUFFIX = 4
       MAN5SUFFIX = 5
       MAN6SUFFIX = 6
       MAN7SUFFIX = 7
       MAN8SUFFIX = 8
       MANLSUFFIX = l
       MANNSUFFIX = n
        MANSUFFIX = $(MAN1SUFFIX)
          MAN1DIR = $(MANSOURCEPATH)$(MAN1SUFFIX)
          MAN2DIR = $(MANSOURCEPATH)$(MAN2SUFFIX)
          MAN3DIR = $(MANSOURCEPATH)$(MAN3SUFFIX)
          MAN4DIR = $(MANSOURCEPATH)$(MAN4SUFFIX)
          MAN5DIR = $(MANSOURCEPATH)$(MAN5SUFFIX)
          MAN6DIR = $(MANSOURCEPATH)$(MAN6SUFFIX)
          MAN7DIR = $(MANSOURCEPATH)$(MAN7SUFFIX)
          MAN8DIR = $(MANSOURCEPATH)$(MAN8SUFFIX)
          MANLDIR = $(MANSOURCEPATH)$(MANLSUFFIX)
          MANNDIR = $(MANSOURCEPATH)$(MANNSUFFIX)
           MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)

           IMBOOT = imboot
           DEPEND = makedepend
             MSUB = msub
        MKDIRHIER = mkdirhier

               AR = ar cq
               CC = cc
              CPP = /lib/cpp $(STD_CPP_DEFINES)
               LD = ld
             LINT = lint
      LINTLIBFLAG = -o
         LINTOPTS = -bh
         LINTLIBS =
               LN = ln -s
             MAKE = make
               MV = mv
               CP = cp
              CMP = cmp

               RM = rm -f
             TAGS = ctags
             PERL = perl
         PERLPATH = $(LOCALBINDIR)/perl
            PERL5 = perl5
        PERL5PATH = $(LOCALBINDIR)/perl5
              AWK = awk
              SED = sed
             COMM = comm
              CAT = cat
              COL = col
             SORT = sort
             UNIQ = uniq
            CHMOD = chmod
            CHDIR = cd
     SENDMAILPATH = /usr/lib/sendmail

# Important local programs

              FIGEN = figen
             DISTAR = distar

# Standard system include file directories, defines, etc.

  STD_CPP_DEFINES =

     STD_INCLUDES = -I$(LOCALINCLUDEROOT)
      STD_DEFINES = -Dsun -DSVR4
       STD_LDLIBS = -lsocket -lnsl -lw
      STD_LDFLAGS = -L$(LOCALUSRLIBDIR)

# Project-specific include file directories, defines, etc.

 PROJECT_INCLUDES = -I. -I$(INCLUDESRC)
  PROJECT_DEFINES = $(VARARGS_DEFINES) $(STRING_H_DEFINES)
   PROJECT_LDLIBS =
  PROJECT_LDFLAGS =

  LOADERLIBPREFIX =
      CDEBUGFLAGS = -O
        CCOPTIONS = -Xc

      ALLINCLUDES = $(INCLUDES) $(PROJECT_INCLUDES) $(STD_INCLUDES)
       ALLDEFINES = $(STD_DEFINES) $(PROJECT_DEFINES) $(DEFINES)
           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLINCLUDES) $(ALLDEFINES)
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLINCLUDES) $(ALLDEFINES)
     EXTRA_LDLIBS = $(LDLIBS) $(PROJECT_LDLIBS) $(STD_LDLIBS)
           LDOPTS = $(CDEBUGFLAGS) $(CCOPTIONS) \
			$(LDFLAGS) $(PROJECT_LDFLAGS) $(STD_LDFLAGS)

           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *.a .emacs_* tags TAGS make.log MakeOut

          INSTALL = /usr/ucb/install
         INSTCOPY = -c
        INSTSTRIP = -s
        INSTOWNER =
        INSTGROUP =
     INSTPROGMODE = -m 0755
  INSTUIDPROGMODE = -m 04755
  INSTGIDPROGMODE = -m 02755
 INSTUGIDPROGMODE = -m 06755
   INSTSCRIPTMODE = -m 0755
      INSTLIBMODE = -m 0644
      INSTDATMODE = -m 0444
      INSTMANMODE = -m 0444
      INSTINCMODE = -m 0444
    INSTPROGFLAGS = $(INSTCOPY) $(INSTOWNER) $(INSTGROUP) $(INSTPROGMODE) $(INSTSTRIP)
 INSTUIDPROGFLAGS = $(INSTCOPY) $(INSTOWNER) $(INSTGROUP) $(INSTUIDPROGMODE) $(INSTSTRIP)
 INSTGIDPROGFLAGS = $(INSTCOPY) $(INSTOWNER) $(INSTGROUP) $(INSTGIDPROGMODE) $(INSTSTRIP)
INSTUGIDPROGFLAGS = $(INSTCOPY) $(INSTOWNER) $(INSTGROUP) $(INSTUGIDPROGMODE) $(INSTSTRIP)
  INSTSCRIPTFLAGS = $(INSTCOPY) $(INSTOWNER) $(INSTGROUP) $(INSTSCRIPTMODE)
     INSTLIBFLAGS = $(INSTCOPY) $(INSTOWNER) $(INSTGROUP) $(INSTLIBMODE)
     INSTDATFLAGS = $(INSTCOPY) $(INSTOWNER) $(INSTGROUP) $(INSTDATMODE)
     INSTMANFLAGS = $(INSTCOPY) $(INSTOWNER) $(INSTGROUP) $(INSTMANMODE)
     INSTINCFLAGS = $(INSTCOPY) $(INSTOWNER) $(INSTGROUP) $(INSTINCMODE)

           SOELIM = soelim
            TROFF = groff
            NROFF = nroff
              TBL = gtbl
              EQN = geqn
             NEQN = neqn
              PIC = pic
        MANMACROS = -man
         MEMACROS = -me
         MMMACROS = -mm
         MSMACROS = -ms
       MDOCMACROS = -mdoc
         TROFFCVT = troffcvt
           TBLCVT = tblcvt
       TROFF2HTML = troff2html
        TROFF2RTF = troff2rtf
           UNROFF = unroff
      TCMANMACROS = -man
       TCMEMACROS = -me
       TCMMMACROS = -mm
       TCMSMACROS = -ms
     TCMDOCMACROS = -mdoc

# Library link and dependency specifiers

      BIBSTUFFLIB = -lbibstuff
   DEPBIBSTUFFLIB =
           ETMLIB = -letm
        DEPETMLIB =
           FPLLIB = -lfpl
        DEPFPLLIB =
           FQLLIB = -lfql
        DEPFQLLIB =
         GECOSLIB = -lgecos
      DEPGECOSLIB =
        LOGMGRLIB = -llogmgr
     DEPLOGMGRLIB =
        MEMMGRLIB = -lmemmgr
     DEPMEMMGRLIB =
           NDSLIB = -lnds
        DEPNDSLIB =
           NIOLIB = -lnio
        DEPNIOLIB =
         ORDERLIB = -lorder
      DEPORDERLIB =
        SEQNUMLIB = -lseqnum
     DEPSEQNUMLIB =
        SIMSCRLIB = -lsimscr
     DEPSIMSCRLIB =
           TFMLIB = -ltfm
        DEPTFMLIB =
            TSLIB = -ltokenscan
         DEPTSLIB =
          PORTLIB = -lport
       DEPPORTLIB =

# Makefile-generating commands and parameters

   IMBOOT_DEFINES =
       IMBOOT_CMD = $(IMBOOT) -C $(CONFIGNAME) $(IMBOOT_DEFINES)

# -------------------------------------------------------------------------
# Project-specific imake rules
# Edit Imake.p-rules to change

# -------------------------------------------------------------------------
# Standard imake rules
# Edit Imake.rules to change

# -------------------------------------------------------------------------
# start of Imakefile

# troffcvt postprocessor Makefile

# make sure "all" is default target

all::

# any special -D's or other flags for compiling
 DEFINES =

# any special -I's for compiling
INCLUDES =

# libraries needed for linking

    LIBS = $(TCREADLIB) $(TCUNIXLIB) $(TCGENLIB) $(MEMMGRLIB) \
		$(TSLIB) $(ETMLIB) $(PORTLIB)
 DEPLIBS = $(DEPTCREADLIB) $(DEPTCUNIXLIB) $(DEPTCGENLIB) $(DEPMEMMGRLIB) \
		$(DEPTSLIB) $(DEPETMLIB) $(DEPPORTLIB)

NULLSRCS = tc2null.c
NULLOBJS = tc2null.o

 RTFSRCS = tc2rtf.c rtffont.c
 RTFOBJS = tc2rtf.o rtffont.o

HTMLSRCS = tc2html.c
HTMLOBJS = tc2html.o

TEXTSRCS = tc2text.c
TEXTOBJS = tc2text.o

    SRCS = $(NULLSRCS) $(RTFSRCS) $(HTMLSRCS) $(TEXTSRCS)
    OBJS = $(NULLOBJS) $(RTFOBJS) $(HTMLOBJS) $(TEXTOBJS)

# general-purpose data files

install:: i.tcr-fonts

help_aux::
	@echo "'make "i.tcr-fonts"' to "install tcr-fonts
i.tcr-fonts:: tcr-fonts
	@if [ -d $(LIBDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LIBDIR)); fi
	$(INSTALL) $(INSTDATFLAGS) tcr-fonts $(LIBDIR)/tcr-fonts

# troff2null stuff

all:: tc2null

help_aux::
	@echo "'make "tc2null"' to "build tc2null
tc2null: $(NULLOBJS) $(DEPLIBS)
	$(RM) $@
	$(CC) -o $@ $(NULLOBJS) $(LDOPTS) $(LIBS) $(EXTRA_LDLIBS)

clean::
	$(RM) tc2null

lint:: lint.tc2null
lint.tc2null:
	$(LINT) $(LINTFLAGS) $(NULLSRCS) $(LINTLIBS)

help_aux::
	@echo "'make "lint.tc2null"' to "lint sources for tc2null

install:: i.tc2null

help_aux::
	@echo "'make "i.tc2null"' to "install tc2null
i.tc2null:: tc2null
	@if [ -d $(LOCALBINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LOCALBINDIR)); fi
	$(INSTALL) $(INSTPROGFLAGS) tc2null $(LOCALBINDIR)/tc2null

all:: troff2null
troff2null:: troff2null.pl
	$(RM) $@
	echo "#!"$(PERLPATH) > $@
	$(MSUB) troff2null.pl >> $@
	$(CHMOD) a+x $@

clean::
	$(RM) troff2null

help_aux::
	@echo "'make "troff2null"' to "build the troff2null script

install:: i.troff2null

help_aux::
	@echo "'make "i.troff2null"' to "install troff2null
i.troff2null:: troff2null
	@if [ -d $(LOCALBINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LOCALBINDIR)); fi
	$(INSTALL) $(INSTSCRIPTFLAGS) troff2null $(LOCALBINDIR)/troff2null

# troff2html stuff

all:: tc2html

help_aux::
	@echo "'make "tc2html"' to "build tc2html
tc2html: $(HTMLOBJS) $(DEPLIBS)
	$(RM) $@
	$(CC) -o $@ $(HTMLOBJS) $(LDOPTS) $(LIBS) $(EXTRA_LDLIBS)

clean::
	$(RM) tc2html

lint:: lint.tc2html
lint.tc2html:
	$(LINT) $(LINTFLAGS) $(HTMLSRCS) $(LINTLIBS)

help_aux::
	@echo "'make "lint.tc2html"' to "lint sources for tc2html

install:: i.tc2html

help_aux::
	@echo "'make "i.tc2html"' to "install tc2html
i.tc2html:: tc2html
	@if [ -d $(LOCALBINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LOCALBINDIR)); fi
	$(INSTALL) $(INSTPROGFLAGS) tc2html $(LOCALBINDIR)/tc2html

all:: tc2html-toc
tc2html-toc:: tc2html-toc.pl
	$(RM) $@
	echo "#!"$(PERLPATH) > $@
	$(MSUB) tc2html-toc.pl >> $@
	$(CHMOD) a+x $@

clean::
	$(RM) tc2html-toc

help_aux::
	@echo "'make "tc2html-toc"' to "build the tc2html-toc script

install:: i.tc2html-toc

help_aux::
	@echo "'make "i.tc2html-toc"' to "install tc2html-toc
i.tc2html-toc:: tc2html-toc
	@if [ -d $(LOCALBINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LOCALBINDIR)); fi
	$(INSTALL) $(INSTSCRIPTFLAGS) tc2html-toc $(LOCALBINDIR)/tc2html-toc

all:: troff2html
troff2html:: troff2html.pl
	$(RM) $@
	echo "#!"$(PERLPATH) > $@
	$(MSUB) troff2html.pl >> $@
	$(CHMOD) a+x $@

clean::
	$(RM) troff2html

help_aux::
	@echo "'make "troff2html"' to "build the troff2html script

install:: i.troff2html

help_aux::
	@echo "'make "i.troff2html"' to "install troff2html
i.troff2html:: troff2html
	@if [ -d $(LOCALBINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LOCALBINDIR)); fi
	$(INSTALL) $(INSTSCRIPTFLAGS) troff2html $(LOCALBINDIR)/troff2html

install:: i.html-fonts

help_aux::
	@echo "'make "i.html-fonts"' to "install html-fonts
i.html-fonts:: html-fonts
	@if [ -d $(LIBDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LIBDIR)); fi
	$(INSTALL) $(INSTDATFLAGS) html-fonts $(LIBDIR)/html-fonts

install:: i.html-specials

help_aux::
	@echo "'make "i.html-specials"' to "install html-specials
i.html-specials:: html-specials
	@if [ -d $(LIBDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LIBDIR)); fi
	$(INSTALL) $(INSTDATFLAGS) html-specials $(LIBDIR)/html-specials

# troff2rtf stuff

all:: tc2rtf

help_aux::
	@echo "'make "tc2rtf"' to "build tc2rtf
tc2rtf: $(RTFOBJS) $(DEPLIBS)
	$(RM) $@
	$(CC) -o $@ $(RTFOBJS) $(LDOPTS) $(LIBS) $(EXTRA_LDLIBS)

clean::
	$(RM) tc2rtf

lint:: lint.tc2rtf
lint.tc2rtf:
	$(LINT) $(LINTFLAGS) $(RTFSRCS) $(LINTLIBS)

help_aux::
	@echo "'make "lint.tc2rtf"' to "lint sources for tc2rtf

install:: i.tc2rtf

help_aux::
	@echo "'make "i.tc2rtf"' to "install tc2rtf
i.tc2rtf:: tc2rtf
	@if [ -d $(LOCALBINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LOCALBINDIR)); fi
	$(INSTALL) $(INSTPROGFLAGS) tc2rtf $(LOCALBINDIR)/tc2rtf

all:: troff2rtf
troff2rtf:: troff2rtf.pl
	$(RM) $@
	echo "#!"$(PERLPATH) > $@
	$(MSUB) troff2rtf.pl >> $@
	$(CHMOD) a+x $@

clean::
	$(RM) troff2rtf

help_aux::
	@echo "'make "troff2rtf"' to "build the troff2rtf script

install:: i.troff2rtf

help_aux::
	@echo "'make "i.troff2rtf"' to "install troff2rtf
i.troff2rtf:: troff2rtf
	@if [ -d $(LOCALBINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LOCALBINDIR)); fi
	$(INSTALL) $(INSTSCRIPTFLAGS) troff2rtf $(LOCALBINDIR)/troff2rtf

install:: i.rtf-fonts

help_aux::
	@echo "'make "i.rtf-fonts"' to "install rtf-fonts
i.rtf-fonts:: rtf-fonts
	@if [ -d $(LIBDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LIBDIR)); fi
	$(INSTALL) $(INSTDATFLAGS) rtf-fonts $(LIBDIR)/rtf-fonts

install:: i.rtf-spec-ansi

help_aux::
	@echo "'make "i.rtf-spec-ansi"' to "install rtf-spec-ansi
i.rtf-spec-ansi:: rtf-spec-ansi
	@if [ -d $(LIBDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LIBDIR)); fi
	$(INSTALL) $(INSTDATFLAGS) rtf-spec-ansi $(LIBDIR)/rtf-spec-ansi

install:: i.rtf-spec-mac

help_aux::
	@echo "'make "i.rtf-spec-mac"' to "install rtf-spec-mac
i.rtf-spec-mac:: rtf-spec-mac
	@if [ -d $(LIBDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LIBDIR)); fi
	$(INSTALL) $(INSTDATFLAGS) rtf-spec-mac $(LIBDIR)/rtf-spec-mac

install:: i.rtf-spec-pc

help_aux::
	@echo "'make "i.rtf-spec-pc"' to "install rtf-spec-pc
i.rtf-spec-pc:: rtf-spec-pc
	@if [ -d $(LIBDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LIBDIR)); fi
	$(INSTALL) $(INSTDATFLAGS) rtf-spec-pc $(LIBDIR)/rtf-spec-pc

install:: i.rtf-spec-pca

help_aux::
	@echo "'make "i.rtf-spec-pca"' to "install rtf-spec-pca
i.rtf-spec-pca:: rtf-spec-pca
	@if [ -d $(LIBDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LIBDIR)); fi
	$(INSTALL) $(INSTDATFLAGS) rtf-spec-pca $(LIBDIR)/rtf-spec-pca

# unroff stuff

all:: tc2text

help_aux::
	@echo "'make "tc2text"' to "build tc2text
tc2text: $(TEXTOBJS) $(DEPLIBS)
	$(RM) $@
	$(CC) -o $@ $(TEXTOBJS) $(LDOPTS) $(LIBS) $(EXTRA_LDLIBS)

clean::
	$(RM) tc2text

lint:: lint.tc2text
lint.tc2text:
	$(LINT) $(LINTFLAGS) $(TEXTSRCS) $(LINTLIBS)

help_aux::
	@echo "'make "lint.tc2text"' to "lint sources for tc2text

install:: i.tc2text

help_aux::
	@echo "'make "i.tc2text"' to "install tc2text
i.tc2text:: tc2text
	@if [ -d $(LOCALBINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LOCALBINDIR)); fi
	$(INSTALL) $(INSTPROGFLAGS) tc2text $(LOCALBINDIR)/tc2text

all:: unroff
unroff:: unroff.pl
	$(RM) $@
	echo "#!"$(PERLPATH) > $@
	$(MSUB) unroff.pl >> $@
	$(CHMOD) a+x $@

clean::
	$(RM) unroff

help_aux::
	@echo "'make "unroff"' to "build the unroff script

install:: i.unroff

help_aux::
	@echo "'make "i.unroff"' to "install unroff
i.unroff:: unroff
	@if [ -d $(LOCALBINDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LOCALBINDIR)); fi
	$(INSTALL) $(INSTSCRIPTFLAGS) unroff $(LOCALBINDIR)/unroff

install:: i.text-specials

help_aux::
	@echo "'make "i.text-specials"' to "install text-specials
i.text-specials:: text-specials
	@if [ -d $(LIBDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LIBDIR)); fi
	$(INSTALL) $(INSTDATFLAGS) text-specials $(LIBDIR)/text-specials

install:: i.text-8-specials

help_aux::
	@echo "'make "i.text-8-specials"' to "install text-8-specials
i.text-8-specials:: text-8-specials
	@if [ -d $(LIBDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(LIBDIR)); fi
	$(INSTALL) $(INSTDATFLAGS) text-8-specials $(LIBDIR)/text-8-specials

# other

depend::
	$(DEPEND) -s "# DO NOT DELETE" -- $(ALLINCLUDES) $(ALLDEFINES) -- $(SRCS)

# -------------------------------------------------------------------------
# common rules for all Makefiles

emptyrule::

clean::
	$(RM_CMD) "#"*

tags::
	$(TAGS) -w *.[ch]
	$(TAGS) -xw *.[ch] > TAGS

Makefile::
	$(IMBOOT_CMD) $(TOP) $(CURRENT_DIR)

help::
	@echo "'make Makefile' to rebuild Makefile"
	@echo "'make all' to make everything"
	@echo "'make target' to make a single target"
	@echo "'make depend' to generate header file dependencies"
	@echo "'make install' to install everything (except manual pages)"
	@echo "'make install.man' to install all manual pages"
	@echo "'make i.target' to install a single target"
	@echo "'make lint' to lint source files"
	@echo "'make lint.target' to lint source files for a single target"
	@echo "'make clean' to clean up"
	@make help_aux

help_aux::

# -------------------------------------------------------------------------
# empty rules for directories that do not have SUBDIRS

all::
depend::
lint::

install::
	@echo "install in $(CURRENT_DIR) done"

install.man::
	@echo "install.man in $(CURRENT_DIR) done"

Makefiles::

# -------------------------------------------------------------------------
# dependencies generated by makedepend

# DO NOT DELETE

tc2null.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
tc2null.o: /usr/include/ctype.h /usr/local/include/etm.h
tc2null.o: /usr/local/include/memmgr.h .././h/tcread.h .././h/tctbl.h
tc2rtf.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
tc2rtf.o: /usr/include/ctype.h /usr/include/string.h
tc2rtf.o: /usr/local/include/portlib.h /usr/local/include/etm.h
tc2rtf.o: /usr/local/include/memmgr.h .././h/tcgen.h .././h/tcunix.h
tc2rtf.o: .././h/tcread.h .././h/tctbl.h tc2rtf.h
rtffont.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
rtffont.o: /usr/include/string.h /usr/local/include/etm.h
rtffont.o: /usr/local/include/tokenscan.h /usr/local/include/memmgr.h
rtffont.o: .././h/tcgen.h .././h/tcread.h tc2rtf.h
tc2html.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
tc2html.o: /usr/include/ctype.h /usr/include/string.h
tc2html.o: /usr/local/include/portlib.h /usr/local/include/etm.h
tc2html.o: /usr/local/include/memmgr.h /usr/local/include/tokenscan.h
tc2html.o: .././h/tcgen.h .././h/tcunix.h .././h/tcread.h .././h/tctbl.h
tc2html.o: tc2html.h
tc2text.o: /usr/include/stdio.h /usr/include/sys/feature_tests.h
tc2text.o: /usr/include/ctype.h /usr/include/string.h
tc2text.o: /usr/local/include/portlib.h /usr/local/include/etm.h
tc2text.o: /usr/local/include/memmgr.h /usr/local/include/tokenscan.h
tc2text.o: .././h/tcgen.h .././h/tcunix.h .././h/tcread.h .././h/tctbl.h