source: trunk/third/tex/xdvi/gsftopk/Makefile @ 12209

Revision 12209, 1.9 KB checked in by ghudson, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12208, which included commits to RCS files with non-trunk default branches.
Line 
1#
2# Makefile for gsftopk.
3#
4
5### Please set the following paths.
6TEXMF=/usr/local/lib/texmf
7
8# The following three should be as in dvips.
9HEADERDIR=$(TEXMF)/dvips
10HEADERPATH=.:$(HEADERDIR)
11CONFIGPATH=.:$(TEXMF)/dvips
12
13# The following should be as in TeX.
14TEXFONTS_DEFAULT=.:$(TEXMF)/fonts/tfm//
15
16# Where to put things.
17BINDIR=$(TEXMF)/bin
18MANDIR=$(TEXMF)/man/man1
19
20# (Optional) The fully-qualified path of Ghostscript.
21# GSPATH=-DGS=\"/usr/local/gnu/bin/gs\"
22
23# (Optional) Other definitions
24# OLD_DVIPS - define if you have an old version of dvips that uses psfonts.map
25#       entries of the form
26#           Symbol-Slanted "/Symbol .167 SlantFont"
27#       as opposed to
28#           Symbol-Slanted Symbol ".167 SlantFont"
29# DEFS=
30
31### End of user-edited part.
32
33# CC=gcc
34# LINT=gcc -c -Wall -Wshadow -Wpointer-arith -Dlint
35# also maybe -Wcast-qual -Wwrite-strings
36RM=rm -f
37INSTPGMMODE=755
38INSTDATMODE=644
39INSTMANMODE=644
40
41CFLAGS=-O -DCONFIGPATH=\"$(CONFIGPATH)\" -DHEADERPATH=\"$(HEADERPATH)\" \
42  -DTEXFONTS_DEFAULT=\"$(TEXFONTS_DEFAULT)\" $(GSPATH) $(DEFS)
43
44default: gsftopk gsftopk.1
45
46hpux:
47        $(MAKE) CC='c89 -D_POSIX_SOURCE'
48
49gsftopk: gsftopk.c config.h
50        $(CC) -o gsftopk $(CFLAGS) gsftopk.c
51
52config.h: Configure
53        ./Configure $(CC) $(CFLAGS)
54
55gsftopk.1: gsftopk1.sed sedscript
56        sed -f sedscript <gsftopk1.sed >$@
57
58sedscript: mksedscript Makefile
59        chmod u+x mksedscript
60        ./mksedscript $(DEFS) >$@
61
62install: gsftopk gsftopk.1
63        cp gsftopk $(BINDIR)
64        chmod $(INSTPGMMODE) $(BINDIR)/gsftopk
65        cp render.ps $(HEADERDIR)
66        chmod $(INSTDATMODE) $(HEADERDIR)/render.ps
67        cp gsftopk.1 $(MANDIR)
68        chmod $(INSTMANMODE) $(MANDIR)/gsftopk.1
69
70uninstall:
71        -$(RM) $(BINDIR)/gsftopk $(HEADERDIR)/render.ps $(MANDIR)/gsftopk.1
72
73lint:
74        $(LINT) $(CFLAGS) gsftopk.c
75
76TAGS:   $(srcs)
77        etags $(srcs)
78
79clean:
80        -$(RM) *.o gsftopk gsftopk.1 sedscript core *~
81
82mostlyclean: clean
83
84distclean: clean
85        -$(RM) config.h
86
87veryclean: distclean
88        -$(RM) TAGS
89
90realclean: distclean
91        -$(RM) TAGS
Note: See TracBrowser for help on using the repository browser.