From 04862eec85838b3b462a5d0919631e3cbddc9609 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Sun, 12 Jan 2014 07:18:29 +0000 Subject: [PATCH] Added wp target --- build/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/Makefile b/build/Makefile index aa28d80fc..5cfb4c0ce 100644 --- a/build/Makefile +++ b/build/Makefile @@ -9,6 +9,7 @@ EXE_SUFFIX = CFLAGS = -std=c99 -O2 -W -Wall -pedantic -pthread -pipe -I. -I.. $(CFLAGS_EXTRA) VERSION = $(shell perl -lne \ 'print $$1 if /define\s+MONGOOSE_VERSION\s+"(\S+)"/' ../mongoose.h) +WP = wordpress-private-1.3 RM = rm -rf VDIR = mongoose-$(VERSION) @@ -160,6 +161,11 @@ release: tarball macos cp mongoose-lua-sqlite-ssl.exe mongoose_php_bundle/mongoose.exe zip -r mongoose-php-$(VERSION).zip mongoose_php_bundle/ +wp: mongoose.exe + upx mongoose.exe + cp mongoose.exe $(WP)/ + zip -r $(WP).zip $(WP) + clean: @cd ../examples && $(MAKE) clean @$(RM) *.o *.core $(PROG) *.obj *.so $(PROG).txt *.dSYM *.tgz \ -- GitLab