2013-04-21 11:45:41 +00:00
|
|
|
BASEDIR := ../..
|
|
|
|
HEADER := $(BASEDIR)/gmqcc.h
|
|
|
|
MAJOR := `sed -n -e '/GMQCC_VERSION_MAJOR/{s/.* .* //;p;q;}' $(HEADER)`
|
|
|
|
MINOR := `sed -n -e '/GMQCC_VERSION_MINOR/{s/.* .* //;p;q;}' $(HEADER)`
|
|
|
|
PATCH := `sed -n -e '/GMQCC_VERSION_PATCH/{s/.* .* //;p;q;}' $(HEADER)`
|
|
|
|
BINDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH)
|
|
|
|
|
|
|
|
base:
|
|
|
|
$(MAKE) CC=i486-mingw32-gcc UNAME=MINGW32 -C $(BASEDIR) clean
|
2013-10-11 13:51:08 +00:00
|
|
|
$(MAKE) CC=i486-mingw32-gcc UNAME=MINGW32 -C $(BASEDIR) DESTDIR=distro/win32/$(BINDIR) PREFIX=/ strip install
|
2013-08-21 04:29:33 +00:00
|
|
|
@mkdir -p $(BINDIR)/doc
|
|
|
|
@groff -mandoc $(BINDIR)/man1/gmqpak.1 | ps2pdf - $(BINDIR)/doc/gmqpak.pdf
|
|
|
|
@groff -mandoc $(BINDIR)/man1/qcvm.1 | ps2pdf - $(BINDIR)/doc/qcvm.pdf
|
|
|
|
@groff -mandoc $(BINDIR)/man1/gmqcc.1 | ps2pdf - $(BINDIR)/doc/gmqcc.pdf
|
|
|
|
@rm -rf $(BINDIR)/man1/
|
2013-04-21 11:45:41 +00:00
|
|
|
@zip -r $(BINDIR)-win32.zip $(BINDIR)
|
|
|
|
@rm -rf $(BINDIR)
|
|
|
|
clean:
|
|
|
|
$(MAKE) -C $(BASEDIR) clean
|
|
|
|
@rm -f *.zip
|
|
|
|
|
|
|
|
all: base
|