$(MAKE) -C deb/ CARCH=i686
$(MAKE) -C archlinux/this/
$(MAKE) -C archlinux/this/ CARCH=i686
+ $(MAKE) -C win32/
@mv deb/*.deb ./
@mv archlinux/this/*pkg.tar.xz ./
+ @mv win32/*.zip ./
upload:
@echo "APPKEY:76vh3q42hnvmzm3" > dropbox_config
@wget -q "http://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh"
@chmod +x dropbox_uploader.sh
@sed -i -e "s/~\/.dropbox_uploader/.\/dropbox_config/g" $$(basename $(DROPBOX))
- @find . -type f -regex ".*/.*\.\(xz\|deb\)" -exec ./$$(basename $(DROPBOX)) upload {} \;
+ @find . -type f -regex ".*/.*\.\(xz\|deb\|zip\)" -exec ./$$(basename $(DROPBOX)) upload {} \;
@rm dropbox_config dropbox_uploader.sh
clean:
@rm -f *.deb
@rm -f *.pkg.tar.xz
+ @rm -f *.zip
all: base upload
--- /dev/null
+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
+ $(MAKE) CC=i486-mingw32-gcc UNAME=MINGW32 -C $(BASEDIR) DESTDIR=distro/win32/$(BINDIR) PREFIX=/ install
+ @zip -r $(BINDIR)-win32.zip $(BINDIR)
+ @rm -rf $(BINDIR)
+clean:
+ $(MAKE) -C $(BASEDIR) clean
+ @rm -f *.zip
+
+all: base