/contrib/bind9/doc/misc/Makefile.in

https://bitbucket.org/freebsd/freebsd-head/ · Autoconf · 50 lines · 21 code · 10 blank · 19 comment · 2 complexity · 34ea8186ec6a61bc85ec8faafd1ff18d MD5 · raw file

  1. # Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
  2. # Copyright (C) 2001 Internet Software Consortium.
  3. #
  4. # Permission to use, copy, modify, and/or distribute this software for any
  5. # purpose with or without fee is hereby granted, provided that the above
  6. # copyright notice and this permission notice appear in all copies.
  7. #
  8. # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  9. # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  10. # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  11. # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  12. # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  13. # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  14. # PERFORMANCE OF THIS SOFTWARE.
  15. # $Id: Makefile.in,v 1.9 2009/07/10 23:47:58 tbox Exp $
  16. srcdir = @srcdir@
  17. VPATH = @srcdir@
  18. top_srcdir = @top_srcdir@
  19. @BIND9_MAKE_RULES@
  20. PERL = @PERL@
  21. MANOBJS = options
  22. doc man:: ${MANOBJS}
  23. docclean manclean maintainer-clean::
  24. rm -f options
  25. # Do not make options depend on ../../bin/tests/cfg_test, doing so
  26. # will cause excessively clever versions of make to attempt to build
  27. # that program right here, right now, if it is missing, which will
  28. # cause make doc to bomb.
  29. CFG_TEST = ../../bin/tests/cfg_test
  30. options: FORCE
  31. if test -x ${CFG_TEST} ; \
  32. then \
  33. ${CFG_TEST} --named --grammar > $@.raw ; \
  34. ${PERL} ${srcdir}/sort-options.pl < $@.raw > $@.sorted ; \
  35. ${PERL} ${srcdir}/format-options.pl < $@.sorted > $@.new ; \
  36. mv -f $@.new $@ ; \
  37. rm -f $@.raw $@.sorted ; \
  38. else \
  39. rm -f $@.new $@.raw $@.sorted ; \
  40. fi