Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # eventually this should have rules for recreating the man pages from the
  2. # sgml source, but since this doesn't work on my machine right now i'm
  3. # leaving it out.
  4. # if this is a recursive make, and mandir was set in the top-level Makefile,
  5. # use that value. Otherwise default to /usr/man.
  6. ifeq ($(mandir),)
  7. MANDIR=/usr/man
  8. else
  9. MANDIR=$(mandir)
  10. endif
  11. MAN1=$(MANDIR)/man1
  12. MAN5=$(MANDIR)/man5
  13. MAN8=$(MANDIR)/man8
  14. all: aboot.8 aboot.conf.5 abootconf.8 isomarkboot.1 sdisklabel.8 netabootwrap.1
  15. install:
  16. install -d $(MAN1) $(MAN5) $(MAN8)
  17. install -c isomarkboot.1 netabootwrap.1 $(MAN1)
  18. install -c aboot.conf.5 $(MAN5)
  19. install -c aboot.8 abootconf.8 e2writeboot.8 swriteboot.8 sdisklabel.8 $(MAN8)
  20. install-gz: install
  21. gzip -f9 $(MAN1)/isomarkboot.1 $(MAN1)/netabootwrap.1
  22. gzip -f9 $(MAN5)/aboot.conf.5
  23. gzip -f9 $(MAN8)/aboot.8 $(MAN8)/abootconf.8 $(MAN8)/e2writeboot.8 \
  24. $(MAN8)/swriteboot.8 $(MAN8)/sdisklabel.8
  25. install-gzip: install-gz
  26. clean:
  27. rm -f aboot.8 aboot.conf.5 abootconf.8 isomarkboot.1 sdisklabel.8 netabootwrap.1 manpage.log manpage.links manpage.refs
  28. aboot.8: aboot.sgml
  29. nsgmls aboot.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl
  30. aboot.conf.5: aboot.conf.sgml
  31. nsgmls aboot.conf.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl
  32. abootconf.8: abootconf.sgml
  33. nsgmls abootconf.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl
  34. isomarkboot.1: isomarkboot.sgml
  35. nsgmls isomarkboot.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl
  36. netabootwrap.1: netabootwrap.sgml
  37. nsgmls netabootwrap.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl
  38. sdisklabel.8: sdisklabel.sgml
  39. nsgmls sdisklabel.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl