O=o
YFLAGS=-d
# GNU Make syntax:
-ifndef GOBIN
nullstring :=
space := $(nullstring) # a space at the end
+ifndef GOBIN
QUOTED_HOME=$(subst $(space),\ ,$(HOME))
GOBIN=$(QUOTED_HOME)/bin
-QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
-else
-nullstring :=
-space := $(nullstring) # a space at the end
-QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
endif
+QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
CC=$(QUOTED_GOBIN)/quietgcc
LD=$(QUOTED_GOBIN)/quietgcc
package: _obj/$(TARG).a
testpackage: _test/$(TARG).a
-ifndef GOBIN
nullstring :=
space := $(nullstring) # a space at the end
+ifndef GOBIN
QUOTED_HOME=$(subst $(space),\ ,$(HOME))
GOBIN=$(QUOTED_HOME)/bin
-QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
-else
-nullstring :=
-space := $(nullstring) # a space at the end
-QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
endif
+QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
# GNU Make 3.80 has a bug in lastword
# elem=$(lastword $(subst /, ,$(TARG)))
endif
# ugly hack to deal with whitespaces in $GOROOT
-nullstring :=
-space := $(nullstring) # a space at the end
QUOTED_GOROOT=$(subst $(space),\ ,$(GOROOT))
pkgdir=$(QUOTED_GOROOT)/pkg/$(GOOS)_$(GOARCH)
#
# to rebuild the dependency information in Make.deps.
+nullstring :=
+space := $(nullstring)
+ifndef GOBIN
+QUOTED_HOME=$(subst $(space),\ ,$(HOME))
+GOBIN=$(QUOTED_HOME)/bin
+endif
+QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
+
all: install
DIRS=\
test.dirs: $(addsuffix .test, $(TEST))
%.clean:
- +cd $* && gomake clean
+ +cd $* && $(QUOTED_GOBIN)/gomake clean
%.install:
- +cd $* && gomake install
+ +cd $* && $(QUOTED_GOBIN)/gomake install
%.nuke:
- +cd $* && gomake nuke
+ +cd $* && $(QUOTED_GOBIN)/gomake nuke
%.test:
- +cd $* && gomake test
+ +cd $* && $(QUOTED_GOBIN)/gomake test
clean: clean.dirs