Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NGINX_VERSION=1.6.0
- NSSM_VERSION=2.22
- NGINX_LINK=http://nginx.org/download/nginx-$(NGINX_VERSION).zip
- NGINX_PKG=nginx-$(NGINX_VERSION)
- NSSM_LINK=http://nssm.cc/download/nssm-$(NSSM_VERSION).zip
- NSSM_PKG=nssm-$(NSSM_VERSION)
- BIN= build/nginx-service.exe
- .PHONY: clean all $(BIN)
- $(BIN): deps/$(NGINX_PKG)/* deps/$(NSSM_PKG)/*
- cp -r deps/$(NGINX_PKG)/* tmp/
- cp deps/$(NSSM_PKG)/win32/nssm.exe tmp/nssm.exe
- cp -r src/* tmp/
- mv tmp/conf/nginx.conf tmp/conf/nginx.conf.orig
- cp -r add-on/* tmp/
- cd tmp && makensis nginx.nsi
- mv tmp/nginx-service.exe build/nginx-service.exe
- deps/$(NGINX_PKG)/*: deps/$(NGINX_PKG).zip
- rm -rf deps/$(NGINX_PKG)/
- unzip deps/$(NGINX_PKG).zip -d deps/
- deps/$(NSSM_PKG)/*: deps/$(NSSM_PKG).zip
- rm -rf deps/$(NSSM_PKG)/
- unzip deps/$(NSSM_PKG).zip -d deps/
- deps/$(NGINX_PKG).zip:
- cd deps && wget $(NGINX_LINK)
- deps/$(NSSM_PKG).zip:
- cd deps && wget $(NSSM_LINK)
- clean:
- rm -rf deps/*
- rm -rf build/*
- rm -rf tmp/*
- all: clean $(BIN)
Advertisement
Comments
-
- for create nginx makefile script
- 1) Copy script Ctrl+A and Ctrl+C
- 2) Create text document, press Ctrl+A
- 3) Rename file New Text Document.txt to Makefile
- 4) Export nginx makefile script to Makefile in buttons Ctrl+V
-
- Also, if you find errors or shortcomings in my scripts, tell me in the comments and you can ask me questions in the comments
Add Comment
Please, Sign In to add comment
Advertisement