You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
GOC=go build
|
|
|
|
GOFLAGS=-a -ldflags '-s'
|
|
|
|
CGOR=CGO_ENABLED=0
|
|
|
|
NETHACK_DIR=$(shell pwd)/savedata
|
|
|
|
IMAGE_NAME=nethack_launch
|
|
|
|
|
|
|
|
|
|
|
|
all: stat reclist
|
|
|
|
|
|
|
|
run:
|
|
|
|
go run \
|
|
|
|
nethack-launcher.go
|
|
|
|
|
|
|
|
stat:
|
|
|
|
mkdir -p bin/
|
|
|
|
$(CGOR) $(GOC) $(GOFLAGS) -o bin/nethack-launcher nethack-launcher.go
|
|
|
|
|
|
|
|
reclist:
|
|
|
|
mkdir -p bin/
|
|
|
|
gcc -static deps/reclist.c -o bin/reclist
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
go get github.com/gorilla/mux
|
|
|
|
|
|
|
|
#build_docker:
|
|
|
|
# mkdir -p stage.tmp/
|
|
|
|
# cp -R deps/Dockerfile stage.tmp/
|
|
|
|
#
|
|
|
|
#run: savedata
|
|
|
|
# $(OS_PERMS) docker run \
|
|
|
|
# -d \
|
|
|
|
# -p 23:23 \
|
|
|
|
# -v $(NETHACK_DIR)/var:/opt/nethack/nethack.alt.org/nh343/var:rw \
|
|
|
|
# -v $(NETHACK_DIR)/dgldir:/opt/nethack/nethack.alt.org/dgldir:rw \
|
|
|
|
# --name=nethack \
|
|
|
|
# --restart always \
|
|
|
|
# $(IMAGE_NAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf bin/
|
|
|
|
rm -rf stage.tmp/
|