--- a/Makefile Tue Aug 28 13:45:22 2018 +0200 +++ b/Makefile Tue Aug 28 14:03:09 2018 +0200 @@ -28,17 +28,19 @@ include conf.mk +ROOTDIR=$(shell pwd) + all: chess - cd src; $(MAKE) + cd src; $(MAKE) BUILDDIR=$(ROOTDIR)/build/release debug: chess-debug - cd src; $(MAKE) debug + cd src; $(MAKE) BUILDDIR=$(ROOTDIR)/build/debug CFLAGS="${CFLAGS_D}" chess: - cd src/chess; $(MAKE) BUILDDIR=../../build CONFIG=../../conf.mk + cd src/chess; $(MAKE) BUILDDIR=$(ROOTDIR)/build/release chess-debug: - cd src/chess; $(MAKE) debug BUILDDIR=../../build CONFIG=../../conf.mk + cd src/chess; $(MAKE) BUILDDIR=$(ROOTDIR)/build/debug CFLAGS="${CFLAGS_D}" clean: $(RM) $(RMFLAGS) build