Makefile.in 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Copyright (C) 1994 Ian Murdock <imurdock@debian.org>
  2. # Copyright (C) 1994,1995 Ian Jackson <ijackson@nyx.cs.du.edu>
  3. #
  4. # This is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as
  6. # published by the Free Software Foundation; either version 2,
  7. # or (at your option) any later version.
  8. #
  9. # This is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public
  15. # License along with dpkg; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. srcdir = @srcdir@
  18. VPATH = @srcdir@
  19. prefix = @prefix@
  20. infodir = $(prefix)/info
  21. mandir = $(prefix)/man
  22. man5dir = $(mandir)/man5
  23. man5 = 5
  24. docdir = $(prefix)/doc
  25. devdocdir = $(docdir)/dpkg
  26. DIST = Makefile.in $(SRC) $(MAN)
  27. INSTALL = @INSTALL@
  28. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  29. INSTALL_DATA = @INSTALL_DATA@
  30. MAKEINFO = makeinfo
  31. TEXI2DVI = texi2dvi
  32. DEVDOCS= auto-deconfiguration.txt dependency-ordering.txt \
  33. disappear-replace.txt diversions.text \
  34. essential-flag.txt version-ordering.txt
  35. # Files folded into main guidelines document
  36. OBSOLETEDOCS= descriptions.txt upgrades+errors.txt \
  37. maintainer-script-args.txt virtual-dependencies.txt
  38. all: $(DEVDOCS) guidelines.info
  39. guidelines.info: guidelines.texi
  40. $(MAKEINFO) $(srcdir)/guidelines.texi
  41. database-structure.ps: database-structure.fig
  42. fig2dev -L ps -c -l _ -P <database-structure.fig >ps
  43. mv ps database-structure.ps
  44. database-structure.monops: database-structure.ps
  45. perl -pe 's:^/(col[0-7]) \{[01 ]*1[01 ]* setrgbcolor\}\
  46. bind def$$:/$$1 {} bind def:' database-structure.ps >ps
  47. mv ps database-structure.monops
  48. #dpkg.dvi:
  49. # $(TEXI2DVI) $(srcdir)/dpkg.texi
  50. #
  51. #dpkg.info:
  52. # $(MAKEINFO) $(srcdir)/dpkg.texi
  53. clean:
  54. rm -f database-structure.ps database-structure.monops ps
  55. rm -f *.{aux,cp,dvi,fn,ky,log,pg,toc,tp,vr}
  56. rm -f guidelines.info*
  57. distclean:
  58. rm -f Makefile *.orig *~ *.~* ./#*#
  59. install: all
  60. $(INSTALL_DATA) deb.5 $(man5dir)/deb.$(man5)
  61. $(INSTALL_DATA) deb-control.5 $(man5dir)/deb-control.$(man5)
  62. $(INSTALL_DATA) guidelines.info guidelines.info-*[0-9] \
  63. $(infodir)/.
  64. set -e; for d in $(DEVDOCS) ; do \
  65. $(INSTALL_DATA) $$d $(devdocdir)/$$d ; \
  66. done