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 6GUIDEBOOK = Guidebook. # regular ASCII file 7#GUIDEBOOK = Guidebook.ps # PostScript file 8#GUIDEBOOK = Guidebook.dvi # TeX device-independent file 9 10ALLDOCS = $(GUIDEBOOK) 11#ALLDOCS = $(GUIDEBOOK) manpages 12 13NOOP = ! 14 15Guidebook : $(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." 22Guidebook. : 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." 29Guidebook.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. 35Guidebook.dvi : Guidebook.tex 36 latex Guidebook.tex 37 38all : $(ALLDOCS) 39 $(NOOP) 40 41GAME = nethack 42MANDIR = HACKDIR: 43MANEXT = man 44#MANDIR = /usr/man/man6 45#MANEXT = 6 46 47# manual non-installation; raw man pages may be better than nothing 48GAMEMANCREATE = copy nethack.6 49LEVMANCREATE = copy lev_comp.6 50DGNMANCREATE = copy dgn_comp.6 51RCVRMANCREATE = 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 57manpages : 58 - $(GAMEMANCREATE) $(MANDIR)$(GAME).$(MANEXT) 59 - $(LEVMANCREATE) $(MANDIR)lev_comp.$(MANEXT) 60 - $(DGNMANCREATE) $(MANDIR)dgn_comp.$(MANEXT) 61 - $(RCVRMANCREATE) $(MANDIR)recover.$(MANEXT) 62 63spotless : 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;* 69