mirror of
https://github.com/golang/go
synced 2024-11-21 23:34:42 -07:00
make: add nuke target for C commands and libs
Also, clean *.out files for commands written in Go. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4535051
This commit is contained in:
parent
fa23a70044
commit
fbb4be3278
@ -18,6 +18,9 @@ CLEANFILES+=y.tab.[ch]
|
||||
clean:
|
||||
rm -f *.$(HOST_O) $(TARG) $(CLEANFILES)
|
||||
|
||||
nuke: clean
|
||||
rm -f "$(GOBIN)/$(TARG)"
|
||||
|
||||
ifneq ($(NOINSTALL),1)
|
||||
install: $(QUOTED_GOBIN)/$(TARG)
|
||||
endif
|
||||
|
@ -26,6 +26,8 @@ CLEANFILES+=y.tab.[ch] y.output a.out $(LIB)
|
||||
clean:
|
||||
rm -f *.$(HOST_O) $(CLEANFILES)
|
||||
|
||||
nuke: clean
|
||||
rm -f "$(GOROOT)/lib/$(LIB)"
|
||||
|
||||
y.tab.h: $(YFILES)
|
||||
LANG=C LANGUAGE="en_US.UTF8" bison -v -y $(HOST_YFLAGS) $(YFILES)
|
||||
|
@ -27,7 +27,7 @@ install: $(TARGDIR)/$(TARG)
|
||||
$(TARGDIR)/$(TARG): $(TARG)
|
||||
mkdir -p $(TARGDIR) && cp -f $(TARG) $(TARGDIR)
|
||||
|
||||
CLEANFILES+=$(TARG) _test _testmain.go
|
||||
CLEANFILES+=$(TARG) _test _testmain.go test.out build.out
|
||||
|
||||
nuke: clean
|
||||
rm -f $(TARGDIR)/$(TARG)
|
||||
|
Loading…
Reference in New Issue
Block a user