Makefile.in 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #
  2. # UNIX Makefile for NASM documentation
  3. #
  4. top_srcdir = @top_srcdir@
  5. srcdir = @srcdir@
  6. VPATH = @srcdir@
  7. prefix = @prefix@
  8. exec_prefix = @exec_prefix@
  9. bindir = @bindir@
  10. mandir = @mandir@
  11. docdir = @docdir@
  12. htmldir = @htmldir@
  13. infodir = @infodir@
  14. datarootdir = @datarootdir@
  15. INSTALL = @INSTALL@
  16. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  17. INSTALL_DATA = @INSTALL_DATA@
  18. PERL = perl -I$(srcdir)
  19. PDFOPT = @PDFOPT@
  20. MKDIR = mkdir
  21. RM_F = rm -f
  22. RM_RF = rm -rf
  23. CP_F = cp -f
  24. CP_UF = cp -ufv
  25. # Auxiliary files referenced by the HTML files
  26. HTMLAUX = nasmdoc.css local.css nasmlogw.png
  27. SRCS = nasmdoc.src inslist.src changes.src version.src
  28. OUT = html nasmdoc.txt nasmdoc.pdf
  29. .SUFFIXES:
  30. .SUFFIXES: .pfa .ph
  31. all: $(OUT)
  32. inslist.src: inslist.pl ../x86/insns.dat
  33. $(PERL) $(srcdir)/inslist.pl $(srcdir)/../x86/insns.dat
  34. .PHONY: html
  35. html: $(HTMLAUX)
  36. $(MKDIR) -p html
  37. for f in $(HTMLAUX); do $(CP_UF) "$(srcdir)/$$f" html/; done
  38. $(MAKE) html/nasmdoc0.html
  39. RDSRC = $(PERL) $(srcdir)/rdsrc.pl -I$(srcdir)/
  40. html/nasmdoc0.html: $(SRCS) rdsrc.pl
  41. $(RM_F) html/*.html
  42. $(RDSRC) -ohtml html nasmdoc.src
  43. nasmdoc.dip: $(SRCS) rdsrc.pl
  44. $(RDSRC) dip nasmdoc.src
  45. nasmdoc.txt: $(SRCS) rdsrc.pl
  46. $(RDSRC) txt nasmdoc.src
  47. version.src: $(top_srcdir)/version.pl $(top_srcdir)/version
  48. $(PERL) $(top_srcdir)/version.pl docsrc \
  49. < $(top_srcdir)/version > version.src
  50. nasmdoc.ps: nasmdoc.dip genps.pl afmmetrics.ph ttfmetrics.ph \
  51. pswidth.ph nasmlogo.eps psfonts.ph head.ps
  52. $(PERL) $(srcdir)/genps.pl -epsdir "$(srcdir)" \
  53. -headps $(srcdir)/head.ps nasmdoc.dip \
  54. > nasmdoc.ps
  55. nasmdoc.pdf: nasmdoc.ps pspdf.pl
  56. $(PERL) $(srcdir)/pspdf.pl $(PDFOPT) nasmdoc.ps nasmdoc.pdf
  57. clean:
  58. -$(RM_F) *.rtf *.hpj *.texi *.gid *.ipf *.dip
  59. -$(RM_F) *.aux *.cp *.fn *.ky *.pg *.log *.toc *.tp *.vr
  60. -$(RM_F) inslist.src version.src
  61. -$(RM_F) nasmdoc*.ps
  62. spotless: clean
  63. -$(RM_RF) html info
  64. -$(RM_F) *.hlp nasmdoc.txt *.inf *.pdf *.dvi
  65. install: all
  66. $(MKDIR) -p $(DESTDIR)$(htmldir)
  67. $(INSTALL_DATA) html/* $(DESTDIR)$(htmldir)
  68. $(MKDIR) -p $(DESTDIR)$(docdir)
  69. $(INSTALL_DATA) nasmdoc.pdf nasmdoc.txt $(DESTDIR)$(docdir)