OSDN Git Service

Initial Import
[nethackexpress/trunk.git] / sys / vms / Makefile.doc
1 #       NetHack Makefile (VMS) - for the [Unix] documentation.
2 #       SCCS Id: @(#)Makefile.doc       3.4     1993/01/06
3
4 #  Copy this file to [.doc]Makefile. and edit it if needed.
5
6 GUIDEBOOK = Guidebook.          # regular ASCII file
7 #GUIDEBOOK = Guidebook.ps       # PostScript file
8 #GUIDEBOOK = Guidebook.dvi      # TeX device-independent file
9
10 ALLDOCS = $(GUIDEBOOK)
11 #ALLDOCS = $(GUIDEBOOK) manpages
12
13 NOOP = !
14
15 Guidebook :     $(GUIDEBOOK)
16         $(NOOP)
17
18 # the basic guidebook
19 #Guidebook. :   Guidebook.mn
20 #       #tbl tmac.n Guidebook.mn | nroff | col > Guidebook
21 #       write sys$output "Guidebook.mn cannot be processed under VMS."
22 Guidebook. :    Guidebook.txt           # distributed version of plain text
23         copy Guidebook.txt Guidebook.
24
25 # Fancier output for those with ditroff, psdit and a PostScript printer.
26 #Guidebook.ps : Guidebook.mn
27 #       #tbl tmac.n Guidebook.mn | ditroff | psdit > Guidebook.ps
28 #       write sys$output "Guidebook.mn cannot be processed under VMS."
29 Guidebook.ps :  Guidebook.dvi           # generated with LaTeX
30         dvi2ps Guidebook
31
32 # Guidebook.tex is the same as Guidebook.mn but formatted with LaTeX.
33 # - The invocation command for LaTeX may vary in different installations.
34 # - To print Guidebook.dvi you need to use a suitable dvi-driver.
35 Guidebook.dvi :  Guidebook.tex
36         latex Guidebook.tex
37
38 all : $(ALLDOCS)
39         $(NOOP)
40
41 GAME    = nethack
42 MANDIR  = HACKDIR:
43 MANEXT  = man
44 #MANDIR = /usr/man/man6
45 #MANEXT = 6
46
47 # manual non-installation; raw man pages may be better than nothing
48 GAMEMANCREATE = copy nethack.6
49 LEVMANCREATE = copy lev_comp.6
50 DGNMANCREATE = copy dgn_comp.6
51 RCVRMANCREATE = copy recover.6
52 # GAMEMANCREATE = nroff -man nethack.6 >
53 # LEVMANCREATE = nroff -man lev_comp.6 >
54 # DGNMANCREATE = nroff -man dgn_comp.6 >
55 # RCVRMANCREATE = nroff -man recover.6 >
56
57 manpages :
58         - $(GAMEMANCREATE) $(MANDIR)$(GAME).$(MANEXT)
59         - $(LEVMANCREATE) $(MANDIR)lev_comp.$(MANEXT)
60         - $(DGNMANCREATE) $(MANDIR)dgn_comp.$(MANEXT)
61         - $(RCVRMANCREATE) $(MANDIR)recover.$(MANEXT)
62
63 spotless :
64         - if f$search("Guidebook.")   .nes."" then  delete Guidebook.;*
65         - if f$search("Guidebook.ps") .nes."" then  delete Guidebook.ps;*
66         - if f$search("Guidebook.dvi").nes."" then  delete Guidebook.dvi;*
67         - if f$search("Guidebook.aux").nes."" then  delete Guidebook.aux;*
68         - if f$search("Guidebook.log").nes."" then  delete Guidebook.log;*