Archived
1
0

makefile sanity checks

This commit is contained in:
Jeff Becker
2017-09-12 13:08:26 -04:00
parent 683d7b7179
commit 7b5ac6602f
2 changed files with 16 additions and 10 deletions

View File

@@ -7,6 +7,8 @@ LOCAL_JS=$(REPO)/contrib/js/nntpchan
VENDOR_JS=$(REPO)/contrib/js/vendor
SRND_DIR=$(REPO)/contrib/backends/srndv2
SRND=$(REPO)/srndv2
GOROOT=$(shell go env GOROOT)
GO=$(GOROOT)/bin/go
all: clean build
@@ -30,12 +32,12 @@ $(JS): js-deps
$(SRND):
$(MAKE) -C $(SRND_DIR)
GOROOT=$(GOROOT) $(MAKE) -C $(SRND_DIR)
cp $(SRND_DIR)/srndv2 $(SRND)
clean:
rm -f $(SRND) $(JS)
$(MAKE) -C $(SRND_DIR) clean
GOROOT=$(GOROOT) $(MAKE) -C $(SRND_DIR) clean
distclean: clean
rm -rf $(REPO_GOPATH)