NOEGNUDVERSION=noegnud-0.8.0 # you __MUST__ change this if you change the prefix for any variants' install !!!!!!!!!!!!! # although ..... " make -e foo " also works :O ;) GAMEUID = games GAMEGRP = bin CHOWN = chown CHGRP = chgrp # ----------------------------------------------------------------------------------------- default: @echo you must select one of the following : @echo " make data ; noeGNUd data files" @echo " make nh343 ; NetHack 3.4.3 (vanilla)" @echo " make nh342 ; NetHack 3.4.2 (vanilla)" @echo " make nh342-dt ; NetHack 3.4.2 (with DeeT's hack font patch)" @echo " make se006e4f8 ; SLASH'EM 0.0.6E4F8 (slashem stable)" @echo " make se007e6f2 ; SLASH'EM 0.0.7E6F2 (slashem development version)" @echo " make se007e6 ; SLASH'EM 0.0.7E6 (slashem development version)" @echo " make se007e5 ; SLASH'EM 0.0.7E5 (slashem development version)" @echo " make se007e2 ; SLASH'EM 0.0.7E2 (slashem development version)" @echo " make lh001 ; LittleHack 0.0.1 (based on NetHack-3.4.2)" @echo -------------- @echo or add the prefix "install_" eg: make "install_nh342" or "install_data" @echo to do the obvious all: default # each variant nh342: $(NOEGNUDVERSION)-nethack-3.4.2/Makefile make -C $(NOEGNUDVERSION)-nethack-3.4.2 nh343: $(NOEGNUDVERSION)-nethack-3.4.3/Makefile make -C $(NOEGNUDVERSION)-nethack-3.4.3 se006e4f8: $(NOEGNUDVERSION)-slashem-0.0.6E4F8/Makefile make -C $(NOEGNUDVERSION)-slashem-0.0.6E4F8 se007e2: $(NOEGNUDVERSION)-slashem-0.0.7E2/Makefile make -C $(NOEGNUDVERSION)-slashem-0.0.7E2 se007e5: $(NOEGNUDVERSION)-slashem-0.0.7E5/Makefile make -C $(NOEGNUDVERSION)-slashem-0.0.7E5 se007e6: $(NOEGNUDVERSION)-slashem-0.0.7E6/Makefile make -C $(NOEGNUDVERSION)-slashem-0.0.7E6 se007e6f2: $(NOEGNUDVERSION)-slashem-0.0.7E6F2/Makefile make -C $(NOEGNUDVERSION)-slashem-0.0.7E6F2 lh001: $(NOEGNUDVERSION)-littlehack-0.0.1/Makefile make -C $(NOEGNUDVERSION)-littlehack-0.0.1 nh342-dt: $(NOEGNUDVERSION)-nethack-3.4.2-deet/Makefile make -C $(NOEGNUDVERSION)-nethack-3.4.2-deet # installs install_all: all install: install_all install_nh342: nh342 make -e -C $(NOEGNUDVERSION)-nethack-3.4.2 install install_nh343: nh343 make -e -C $(NOEGNUDVERSION)-nethack-3.4.3 install install_se006e4f8: se006e4f8 make -e -C $(NOEGNUDVERSION)-slashem-0.0.6E4F8 install install_se007e2: se007e2 make -e -C $(NOEGNUDVERSION)-slashem-0.0.7E2 install install_se007e5: se007e5 make -e -C $(NOEGNUDVERSION)-slashem-0.0.7E5 install install_se007e6: se007e6 make -e -C $(NOEGNUDVERSION)-slashem-0.0.7E6 install install_se007e6f2: se007e6f2 make -e -C $(NOEGNUDVERSION)-slashem-0.0.7E6F2 install install_lh001: lh001 make -e -C $(NOEGNUDVERSION)-littlehack-0.0.1 install install_nh342-dt: nh342-dt make -e -C $(NOEGNUDVERSION)-nethack-3.4.2-deet install # data data: @echo "no data creation scripts exists yet, it er, just, um, works (we hope ;)" install_data: data -mkdir -p ${DATADIR} cp -r ../data ${DATADIR}/. $(CHOWN) $(GAMEUID) ${DATADIR}/data $(CHGRP) $(GAMEGRP) ${DATADIR}/data $(CHOWN) -R $(GAMEUID) ${DATADIR}/data/* $(CHGRP) -R $(GAMEGRP) ${DATADIR}/data/* # spawn Makefiles $(NOEGNUDVERSION)-nethack-3.4.2/Makefile: $(NOEGNUDVERSION)-nethack-3.4.2/win/noegnud cd $(NOEGNUDVERSION)-nethack-3.4.2/sys/unix && sh setup.sh && cd ../../ $(NOEGNUDVERSION)-nethack-3.4.3/Makefile: $(NOEGNUDVERSION)-nethack-3.4.3/win/noegnud cd $(NOEGNUDVERSION)-nethack-3.4.3/sys/unix && sh setup.sh && cd ../../ $(NOEGNUDVERSION)-slashem-0.0.6E4F8/Makefile: $(NOEGNUDVERSION)-slashem-0.0.6E4F8/win/noegnud cd $(NOEGNUDVERSION)-slashem-0.0.6E4F8/sys/unix && sh setup.sh && cd ../../ $(NOEGNUDVERSION)-slashem-0.0.7E2/Makefile: $(NOEGNUDVERSION)-slashem-0.0.7E2/win/noegnud cd $(NOEGNUDVERSION)-slashem-0.0.7E2/sys/unix && sh setup.sh && cd ../../ $(NOEGNUDVERSION)-slashem-0.0.7E6/Makefile: $(NOEGNUDVERSION)-slashem-0.0.7E6/win/noegnud cd $(NOEGNUDVERSION)-slashem-0.0.7E6/sys/unix && sh setup.sh && cd ../../ $(NOEGNUDVERSION)-slashem-0.0.7E6F2/Makefile: $(NOEGNUDVERSION)-slashem-0.0.7E6F2/win/noegnud cd $(NOEGNUDVERSION)-slashem-0.0.7E6F2/sys/unix && sh setup.sh && cd ../../ $(NOEGNUDVERSION)-littlehack-0.0.1/Makefile: $(NOEGNUDVERSION)-littlehack-0.0.1/win/noegnud cd $(NOEGNUDVERSION)-littlehack-0.0.1/sys/unix && sh setup.sh && cd ../../ $(NOEGNUDVERSION)-nethack-3.4.2-deet/Makefile: $(NOEGNUDVERSION)-nethack-3.4.2-deet/win/noegnud cd $(NOEGNUDVERSION)-nethack-3.4.2-deet/sys/unix && sh setup.sh && cd ../../ # decompression nethack-3.4.2: tarballs/nethack-342.tgz tar zxvf tarballs/nethack-342.tgz touch nethack-3.4.2 nethack-3.4.3: tarballs/nethack-343-src.tgz tar zxvf tarballs/nethack-343-src.tgz touch nethack-3.4.3 slashem-0.0.6E4F8: tarballs/se006e4f8.tar.gz tar zxvf tarballs/se006e4f8.tar.gz touch slashem-0.0.6E4F8 slashem-0.0.7E2: tarballs/se007e2.tar.gz tar zxvf tarballs/se007e2.tar.gz touch slashem-0.0.7E2 slashem-0.0.7E5: tarballs/se007e5.tar.gz tar zxvf tarballs/se007e5.tar.gz touch slashem-0.0.7E5 slashem-0.0.7E6: tarballs/se007e6.tar.gz tar zxvf tarballs/se007e6.tar.gz touch slashem-0.0.7E6 slashem-0.0.7E6F2: tarballs/se007e6f2.tar.gz tar zxvf tarballs/se007e6f2.tar.gz touch slashem-0.0.7E6F2 littlehack-0.0.1: tarballs/nethack-342.tgz tarballs/nethack-3.4.2-littlehack-0.0.1.diff.gz mkdir tmp tar zxvf tarballs/nethack-342.tgz -C tmp mv tmp/nethack-3.4.2 littlehack-0.0.1 rm -rf tmp cd littlehack-0.0.1 && gzip -dc ../tarballs/nethack-3.4.2-littlehack-0.0.1.diff.gz|patch -p1 touch littlehack-0.0.1 nethack-3.4.2-deet: tarballs/nethack-342.tgz tarballs/nethack-3.4.2-deet.diff.gz mkdir tmp tar zxvf tarballs/nethack-342.tgz -C tmp mv tmp/nethack-3.4.2 nethack-3.4.2-deet rm -rf tmp cd nethack-3.4.2-deet && gzip -dc ../tarballs/nethack-3.4.2-deet.diff.gz|patch -p1 touch nethack-3.4.2-deet # patching $(NOEGNUDVERSION)-nethack-3.4.2: nethack-3.4.2 ln -s nethack-3.4.2 $(NOEGNUDVERSION)-nethack-3.4.2 patch -p0