Makefile.am 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #
  2. # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
  3. #
  4. # Permission to use, copy, modify, distribute, and sell this software and its
  5. # documentation for any purpose is hereby granted without fee, provided that
  6. # the above copyright notice appear in all copies and that both that
  7. # copyright notice and this permission notice appear in supporting
  8. # documentation.
  9. #
  10. # The above copyright notice and this permission notice shall be included
  11. # in all copies or substantial portions of the Software.
  12. #
  13. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  14. # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  15. # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  16. # IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
  17. # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  18. # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  19. # OTHER DEALINGS IN THE SOFTWARE.
  20. #
  21. # Except as contained in this notice, the name of the copyright holders shall
  22. # not be used in advertising or otherwise to promote the sale, use or
  23. # other dealings in this Software without prior written authorization
  24. # from the copyright holders.
  25. #
  26. drivermandir = $(DRIVER_MAN_DIR)
  27. driverman_PRE = @DRIVER_NAME@.man
  28. driverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
  29. EXTRA_DIST = @DRIVER_NAME@.man
  30. CLEANFILES = $(driverman_DATA)
  31. SED = sed
  32. # Strings to replace in man pages
  33. XORGRELSTRING = @PACKAGE_STRING@
  34. XORGMANNAME = X Version 11
  35. MAN_SUBSTS = \
  36. -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
  37. -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
  38. -e 's|__xservername__|Xorg|g' \
  39. -e 's|__xconfigfile__|xorg.conf|g' \
  40. -e 's|__projectroot__|$(prefix)|g' \
  41. -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
  42. -e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
  43. -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
  44. -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
  45. -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
  46. SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
  47. .man.$(DRIVER_MAN_SUFFIX):
  48. sed $(MAN_SUBSTS) < $< > $@