msvc: finally make it possible to build the full Windows package
[nasm.git] / doc / Makefile.in
blob848f6222ab33c8a0b6fdd98aaa4fc3b3fe72e105
2 # UNIX Makefile for NASM documentation
5 top_srcdir = @top_srcdir@
6 srcdir = @srcdir@
7 VPATH = @srcdir@
8 prefix = @prefix@
9 exec_prefix = @exec_prefix@
10 bindir = @bindir@
11 mandir = @mandir@
12 docdir = $(prefix)/doc/nasm
13 infodir = @infodir@
14 datarootdir = @datarootdir@
16 INSTALL = @INSTALL@
17 INSTALL_PROGRAM = @INSTALL_PROGRAM@
18 INSTALL_DATA = @INSTALL_DATA@
20 PERL = perl -I$(srcdir)
21 MAKEINFO = makeinfo
22 TEXI2DVI = texi2dvi
23 TEXI2IPF = texi2ipf
24 IPFC = ipfc
26 ACRODIST = acrodist # Acrobat Distiller
27 PSTOPDF = pstopdf # BSD/MacOS X utility
28 PS2PDF = ps2pdf # Part of GhostScript
30 RM_F = rm -f
31 RM_RF = rm -rf
33 SRCS = nasmdoc.src inslist.src changes.src version.src
34 OUT = info html nasmdoc.txt nasmdoc.ps nasmdoc.pdf
36 all: $(OUT)
38 os2: nasm.inf
40 inslist.src: inslist.pl ../x86/insns.dat
41 $(PERL) $(srcdir)/inslist.pl $(srcdir)/../x86/insns.dat
43 .PHONY: html
44 html: html/nasmdoc0.html
46 RDSRC = $(PERL) $(srcdir)/rdsrc.pl -I$(srcdir)/
48 html/nasmdoc0.html: $(SRCS) rdsrc.pl
49 $(RDSRC) html nasmdoc.src
51 nasmdoc.dip: $(SRCS) rdsrc.pl
52 $(RDSRC) dip nasmdoc.src
54 nasmdoc.texi: $(SRCS) rdsrc.pl
55 $(RDSRC) texi nasmdoc.src
57 nasmdoc.txt: $(SRCS) rdsrc.pl
58 $(RDSRC) txt nasmdoc.src
60 version.src: $(top_srcdir)/version.pl $(top_srcdir)/version
61 $(PERL) $(top_srcdir)/version.pl docsrc \
62 < $(top_srcdir)/version > version.src
64 nasmdoc.ps: nasmdoc.dip nasmlogo.eps \
65 genps.pl psfonts.ph pswidth.ph head.ps
66 $(PERL) $(srcdir)/genps.pl -headps $(srcdir)/head.ps nasmdoc.dip \
67 > nasmdoc.ps
69 nasmdoc.pdf: nasmdoc.ps
70 $(PERL) pspdf.pl nasmdoc.ps nasmdoc.pdf
72 .PHONY: info
73 info: info/nasm.info
75 info/nasm.info: nasmdoc.texi
76 mkdir -p info
77 $(MAKEINFO) $<
78 mv -f *.info *.info-* info
80 # DVI output from texinfo (optional)
81 nasmdoc.dvi: nasmdoc.texi
82 $(TEXI2DVI) nasmdoc.texi
84 # Rules for building an OS/2 book
85 nasmdoc.ipf: nasmdoc.texi
86 $(TEXI2IPF) $< >$@
88 nasm.inf: nasmdoc.ipf
89 $(IPFC) -i -s $< $@
91 clean:
92 -$(RM_F) *.rtf *.hpj *.texi *.gid *.ipf *.dip
93 -$(RM_F) *.aux *.cp *.fn *.ky *.pg *.log *.toc *.tp *.vr
94 -$(RM_F) inslist.src version.src
96 spotless: clean
97 -$(RM_RF) html info
98 -$(RM_F) *.hlp nasmdoc.txt *.inf *.pdf *.dvi
99 -$(RM_F) nasmdoc*.ps
101 install: all
102 mkdir -p $(INSTALLROOT)$(infodir)
103 $(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
104 mkdir -p $(INSTALLROOT)$(docdir)/html
105 $(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
106 $(INSTALL_DATA) nasmdoc.ps nasmdoc.pdf nasmdoc.txt $(INSTALLROOT)$(docdir)