makefile: remove win32 and src targets
This commit is contained in:
parent
ccc1f73e52
commit
6b4c2cc208
21
Makefile
21
Makefile
@ -21,7 +21,6 @@ all: build/linux64/contented build/win32/contented.exe
|
|||||||
|
|
||||||
dist: \
|
dist: \
|
||||||
_dist/contented-$(VERSION)-linux64.tar.gz \
|
_dist/contented-$(VERSION)-linux64.tar.gz \
|
||||||
_dist/contented-$(VERSION)-win32.7z \
|
|
||||||
_dist/contented-$(VERSION)-src.zip
|
_dist/contented-$(VERSION)-src.zip
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -48,26 +47,6 @@ build/linux64/contented: $(SOURCES) staticResources.go
|
|||||||
go build $(GOFLAGS) -o ../../build/linux64/contented \
|
go build $(GOFLAGS) -o ../../build/linux64/contented \
|
||||||
)
|
)
|
||||||
|
|
||||||
build/win32/contented.exe: $(SOURCES) staticResources.go
|
|
||||||
mkdir -p build/win32
|
|
||||||
(cd cmd/contented ; \
|
|
||||||
PATH=/usr/lib/mxe/usr/bin:$(PATH) CC=i686-w64-mingw32.static-gcc \
|
|
||||||
CGO_ENABLED=1 GOOS=windows GOARCH=386 \
|
|
||||||
go build $(GOFLAGS) -o ../../build/win32/contented.exe \
|
|
||||||
)
|
|
||||||
|
|
||||||
_dist/contented-$(VERSION)-linux64.tar.gz: build/linux64/contented
|
_dist/contented-$(VERSION)-linux64.tar.gz: build/linux64/contented
|
||||||
mkdir -p _dist
|
mkdir -p _dist
|
||||||
tar caf _dist/contented-$(VERSION)-linux64.tar.gz -C build/linux64 contented --owner=0 --group=0
|
tar caf _dist/contented-$(VERSION)-linux64.tar.gz -C build/linux64 contented --owner=0 --group=0
|
||||||
|
|
||||||
_dist/contented-$(VERSION)-win32.7z: build/win32/contented.exe
|
|
||||||
mkdir -p _dist
|
|
||||||
( cd build/win32 ; \
|
|
||||||
if [ -f dist.7z ] ; then rm dist.7z ; fi ; \
|
|
||||||
7z a dist.7z contented.exe ; \
|
|
||||||
mv dist.7z ../../_dist/contented-$(VERSION)-win32.7z \
|
|
||||||
)
|
|
||||||
|
|
||||||
_dist/contented-$(VERSION)-src.zip: $(SOURCES)
|
|
||||||
git archive HEAD -o _dist/contented-$(VERSION)-src.zip
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user