updated makefile

This commit is contained in:
konrad 2018-06-10 11:13:01 +02:00 committed by kolaente
parent 479cf54ada
commit 986059d719
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 9 additions and 8 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
.idea/
config.ini
*.db
*.db
list

View file

@ -4,9 +4,9 @@ IMPORT := git.kolaente.de/konrad/list
SED_INPLACE := sed -i
ifeq ($(OS), Windows_NT)
EXECUTABLE := Library.exe
EXECUTABLE := list.exe
else
EXECUTABLE := Library
EXECUTABLE := list
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
SED_INPLACE := sed -i ''
@ -29,9 +29,9 @@ TAGS ?=
TMPDIR := $(shell mktemp -d 2>/dev/null || mktemp -d -t 'kasino-temp')
ifeq ($(OS), Windows_NT)
EXECUTABLE := Library.exe
EXECUTABLE := list.exe
else
EXECUTABLE := Library
EXECUTABLE := list
endif
ifneq ($(DRONE_TAG),)
@ -110,7 +110,7 @@ release-windows:
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/karalabe/xgo; \
fi
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out Library-$(VERSION) .
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out list-$(VERSION) .
ifeq ($(CI),drone)
mv /build/* $(DIST)/binaries
endif
@ -120,7 +120,7 @@ release-linux:
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/karalabe/xgo; \
fi
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out Library-$(VERSION) .
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out list-$(VERSION) .
ifeq ($(CI),drone)
mv /build/* $(DIST)/binaries
endif
@ -130,7 +130,7 @@ release-darwin:
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
go get -u github.com/karalabe/xgo; \
fi
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out Library-$(VERSION) .
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out list-$(VERSION) .
ifeq ($(CI),drone)
mv /build/* $(DIST)/binaries
endif