diff options
-rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -24,6 +24,10 @@ curdir:= $(shell pwd) GOCMD := GOPATH=$(curdir) go +ifdef GOROOT +GOCMD = GOPATH=$(curdir) $(GOROOT)/bin/go +endif +BUILDOPTS := -tags $(shell pkg-config --modversion gtk+-3.0 | sed 's/^\(.*\)\.\(.*\)\..*/gtk_\1_\2/') EXECUTEABLE := rhlibrary @@ -38,10 +42,10 @@ all: build getlibs: - @$(foreach lib,$(LIBS), echo "fetching lib: $(lib)"; $(GOCMD) get $(lib);) + @$(foreach lib,$(LIBS), echo "fetching lib: $(lib)"; $(GOCMD) get -d $(lib);) updatelibs: - @$(foreach lib,$(LIBS), echo "updating lib: $(lib)"; $(GOCMD) get -u $(lib);) + @$(foreach lib,$(LIBS), echo "updating lib: $(lib)"; $(GOCMD) get -d -u $(lib);) vet: @echo "vetting: $(EXECUTEABLE)" @@ -53,7 +57,7 @@ format: build: getlibs @echo "installing: $(EXECUTEABLE)" - @$(GOCMD) install $(EXECUTEABLE) + @$(GOCMD) install $(BUILDOPTS) $(EXECUTEABLE) clean: |