Skip to content

Commit

Permalink
make: add nuke target for C commands and libs
Browse files Browse the repository at this point in the history
Also, clean *.out files for commands written in Go.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4535051
  • Loading branch information
ality authored and rsc committed May 12, 2011
1 parent fa23a70 commit fbb4be3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Make.ccmd
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/Make.clib
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Make.cmd
Expand Up @@ -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)
Expand Down

0 comments on commit fbb4be3

Please sign in to comment.