makefile: add clean-deps target

This commit is contained in:
mappu 2017-11-12 10:35:46 +13:00
parent d90b08f45e
commit 584a6b632f

View File

@ -11,7 +11,7 @@ GOFLAGS=-a \
SOURCES=client/ Gopkg.lock Gopkg.toml Makefile Config.go main.go nmdc-webfrontend.conf.SAMPLE SOURCES=client/ Gopkg.lock Gopkg.toml Makefile Config.go main.go nmdc-webfrontend.conf.SAMPLE
.PHONY: all deps clean .PHONY: all deps clean clean-deps
all: $(BINNAME)-$(VERSION)-win32.7z $(BINNAME)-$(VERSION)-linux64.tar.xz $(BINNAME)-$(VERSION)-src.tar.xz all: $(BINNAME)-$(VERSION)-win32.7z $(BINNAME)-$(VERSION)-linux64.tar.xz $(BINNAME)-$(VERSION)-src.tar.xz
@ -27,6 +27,10 @@ clean:
rm -fr ./clientpack rm -fr ./clientpack
rm -f ./bindata.go rm -f ./bindata.go
clean-deps:
rm -fr ./vendor
rm -fr ./node_modules
bindata.go: client client/* bindata.go: client client/*
npm run webpack npm run webpack
cat client/index.htm \ cat client/index.htm \