
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: 29: hack_DIRS := $(GAMESDIR) $(MAN6DIR) 30: 31: hack_CLEANFILES := hack.onames.h 32: 33: hack_all: hack/hack hack/hack.6 34: 35: hack/hack.onames.h: hack/def.objects.h hack/makedefs 36: hack/makedefs $< >$@ 37: 38: hack/alloc.d hack/hack.Decl.d hack/hack.apply.d hack/hack.bones.d \ 39: hack/hack.d hack/hack.cmd.d hack/hack.do.d hack/hack.do_name.d \ 40: hack/hack.do_wear.d hack/hack.dog.d hack/hack.eat.d hack/hack.end.d \ 41: hack/hack.engrave.d hack/hack.fight.d hack/hack.invent.d \ 42: hack/hack.ioctl.d hack/hack.lev.d hack/hack.main.d hack/hack.makemon.d \ 43: hack/hack.mhitu.d hack/hack.mklev.d hack/hack.mkmaze.d \ 44: hack/hack.mkobj.d hack/hack.mkshop.d hack/hack.mon.d hack/hack.monst.d \ 45: hack/hack.o_init.d hack/hack.objnam.d hack/hack.options.d \ 46: hack/hack.pager.d hack/hack.potion.d hack/hack.pri.d hack/hack.read.d \ 47: hack/hack.rip.d hack/hack.rumors.d hack/hack.save.d hack/hack.search.d \ 48: hack/hack.shk.d hack/hack.shknam.d hack/hack.steal.d \ 49: hack/hack.termcap.d hack/hack.timeout.d hack/hack.topl.d \ 50: hack/hack.track.d hack/hack.trap.d hack/hack.tty.d hack/hack.u_init.d \ 51: hack/hack.unix.d hack/hack.vault.d hack/hack.version.d \ 52: hack/hack.wield.d hack/hack.wizard.d hack/hack.worm.d hack/hack.worn.d \ 53: hack/hack.zap.d hack/rnd.d: hack/hack.onames.h 54: 55: hack_install: hack_all 56: $(INSTALL_SCORE_GAME) hack/hack $(INSTALL_PREFIX)$(GAMESDIR)/hack 57: $(HIDE_GAME) hack 58: $(INSTALL_HACK_DIR) $(INSTALL_PREFIX)$(HACK_DIR) 59: set -e; for f in data help hh rumors; do $(INSTALL_DATA) hack/$$f $(INSTALL_PREFIX)$(HACK_DIR)/$$f; done 60: $(INSTALL_SCORE_FILE) $(HACK_DIR)/perm 61: $(INSTALL_SCORE_FILE) $(HACK_DIR)/record 62: $(INSTALL_MANUAL) hack/hack.6