Commit c2a4d16a authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

ioping: binary packs

Signed-off-by: default avatarKonstantin Khlebnikov <koct9i@gmail.com>
parent c94acc99
...@@ -15,8 +15,13 @@ VERSION=$(shell cat version) ...@@ -15,8 +15,13 @@ VERSION=$(shell cat version)
DISTDIR=$(PACKAGE)-$(VERSION) DISTDIR=$(PACKAGE)-$(VERSION)
DISTFILES=$(SRCS) $(MANS) $(SPEC) Makefile DISTFILES=$(SRCS) $(MANS) $(SPEC) Makefile
STRIP=strip
TARGET=$(shell ${CC} -dumpmachine | cut -d- -f 2)
ifdef MINGW ifdef MINGW
CC=i686-w64-mingw32-gcc CC=i686-w64-mingw32-gcc
STRIP=i686-w64-mingw32-strip
TARGET=win32
BINS:=$(BINS:=.exe) BINS:=$(BINS:=.exe)
endif endif
...@@ -43,4 +48,13 @@ $(BINS): $(OBJS) ...@@ -43,4 +48,13 @@ $(BINS): $(OBJS)
dist: version $(DISTFILES) dist: version $(DISTFILES)
tar -cz --transform='s,^,$(DISTDIR)/,S' $^ -f $(DISTDIR).tar.gz tar -cz --transform='s,^,$(DISTDIR)/,S' $^ -f $(DISTDIR).tar.gz
binary-tar: clean all
${STRIP} ${BINS}
tar czf ${PACKAGE}-${VERSION}-${TARGET}.tgz ${BINS} ${MANS}
binary-zip: clean all ${MANS}
${STRIP} ${BINS}
MANWIDTH=80 man ./${MANS} | col -b > ioping.txt
zip ${PACKAGE}-${VERSION}-${TARGET}.zip ${BINS} ioping.txt
.PHONY: all clean install dist .PHONY: all clean install dist
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment