Makefrag 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Makefrag - makefile fragment for hack
  2. #
  3. # Copyright (c) 2000 Joseph Samuel Myers.
  4. # All rights reserved.
  5. #
  6. # Redistribution and use in source and binary forms, with or without
  7. # modification, are permitted provided that the following conditions
  8. # are met:
  9. # 1. Redistributions of source code must retain the above copyright
  10. # notice, this list of conditions and the following disclaimer.
  11. # 2. Redistributions in binary form must reproduce the above copyright
  12. # notice, this list of conditions and the following disclaimer in the
  13. # documentation and/or other materials provided with the distribution.
  14. # 3. The name of the author may not be used to endorse or promote products
  15. # derived from this software without specific prior written permission.
  16. #
  17. # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  18. # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  19. # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  20. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  21. # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  22. # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  23. # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  24. # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  25. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  26. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  27. # SUCH DAMAGE.
  28. hack_DIRS := $(GAMESDIR) $(MAN6DIR)
  29. hack_CLEANFILES := hack.onames.h
  30. hack_all: hack/hack hack/hack.6
  31. hack/hack.onames.h: hack/def.objects.h hack/makedefs
  32. hack/makedefs $< >$@
  33. hack/alloc.d hack/hack.Decl.d hack/hack.apply.d hack/hack.bones.d \
  34. hack/hack.d hack/hack.cmd.d hack/hack.do.d hack/hack.do_name.d \
  35. hack/hack.do_wear.d hack/hack.dog.d hack/hack.eat.d hack/hack.end.d \
  36. hack/hack.engrave.d hack/hack.fight.d hack/hack.invent.d \
  37. hack/hack.ioctl.d hack/hack.lev.d hack/hack.main.d hack/hack.makemon.d \
  38. hack/hack.mhitu.d hack/hack.mklev.d hack/hack.mkmaze.d \
  39. hack/hack.mkobj.d hack/hack.mkshop.d hack/hack.mon.d hack/hack.monst.d \
  40. hack/hack.o_init.d hack/hack.objnam.d hack/hack.options.d \
  41. hack/hack.pager.d hack/hack.potion.d hack/hack.pri.d hack/hack.read.d \
  42. hack/hack.rip.d hack/hack.rumors.d hack/hack.save.d hack/hack.search.d \
  43. hack/hack.shk.d hack/hack.shknam.d hack/hack.steal.d \
  44. hack/hack.termcap.d hack/hack.timeout.d hack/hack.topl.d \
  45. hack/hack.track.d hack/hack.trap.d hack/hack.tty.d hack/hack.u_init.d \
  46. hack/hack.unix.d hack/hack.vault.d hack/hack.version.d \
  47. hack/hack.wield.d hack/hack.wizard.d hack/hack.worm.d hack/hack.worn.d \
  48. hack/hack.zap.d hack/rnd.d: hack/hack.onames.h
  49. hack_install: hack_all
  50. $(INSTALL_SCORE_GAME) hack/hack $(INSTALL_PREFIX)$(GAMESDIR)/hack
  51. $(HIDE_GAME) hack
  52. $(INSTALL_HACK_DIR) $(INSTALL_PREFIX)$(HACK_DIR)
  53. set -e; for f in data help hh rumors; do $(INSTALL_DATA) hack/$$f $(INSTALL_PREFIX)$(HACK_DIR)/$$f; done
  54. $(INSTALL_SCORE_FILE) $(HACK_DIR)/perm
  55. $(INSTALL_SCORE_FILE) $(HACK_DIR)/record
  56. $(INSTALL_MANUAL) hack/hack.6