1
0
mirror of https://github.com/golang/go synced 2024-11-21 23:14:40 -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:
Anthony Martin 2011-05-11 22:53:42 -04:00 committed by Russ Cox
parent fa23a70044
commit fbb4be3278
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)