fix(Makefile): remove old clean targets

pull/10616/head
Chris Goller 2018-11-15 20:12:00 -06:00
parent 1e2a602cf6
commit a8c1155b21
5 changed files with 6 additions and 19 deletions

View File

@ -8,7 +8,7 @@
# * All cmds must be added to this top level Makefile.
# * All binaries are placed in ./bin, its recommended to add this directory to your PATH.
# * Each package that has a need to run go generate, must have its own Makefile for that purpose.
# * All recursive Makefiles must support the targets: all and clean.
# * All recursive Makefiles must support the all target
#
SUBDIRS := query task
@ -127,9 +127,7 @@ bench:
nightly: all
env GO111MODULE=on go run github.com/goreleaser/goreleaser --snapshot --rm-dist --publish-snapshots
# Recursively clean all subdirs
clean: $(SUBDIRS)
@for d in $^; do $(MAKE) -C $$d $(MAKECMDGOALS); done
clean:
$(MAKE) -C ui $(MAKECMDGOALS)
rm -rf bin

View File

@ -8,7 +8,5 @@ $(SUBDIRS):
all: $(SUBDIRS)
clean: $(SUBDIRS)
.PHONY: all clean subdirs $(SUBDIRS)
.PHONY: all subdirs $(SUBDIRS)

View File

@ -5,7 +5,4 @@ GO_GENERATE := go generate
promql.go: promql.peg gen.go
$(GO_GENERATE) -x
clean:
rm -f promql.go
.PHONY: all clean
.PHONY: all

View File

@ -7,7 +7,4 @@ $(SUBDIRS):
all: $(SUBDIRS)
clean: $(SUBDIRS)
.PHONY: all clean subdirs $(SUBDIRS)
.PHONY: all subdirs $(SUBDIRS)

View File

@ -7,7 +7,4 @@ all: $(targets)
$(targets): meta.proto
$(GO_GENERATE) -x
clean:
rm -f $(targets)
.PHONY: all clean
.PHONY: all