Skip to content

Commit

Permalink
Merge pull request #76 from cubicdaiya/rm-doc-and-cross-compilation-t…
Browse files Browse the repository at this point in the history
…arget-and-dist

makefile: remove unused targets.
  • Loading branch information
cubicdaiya authored Dec 25, 2021
2 parents 2d2dc5a + ea6e6c4 commit 6425016
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 799 deletions.
21 changes: 0 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ export GO111MODULE=on
nginx-build: *.go builder/*.go command/*.go configure/*.go module3rd/*.go openresty/*.go util/*.go
go build -ldflags '-X main.NginxBuildVersion=${VERSION}' -o $@

build-cross:
GOOS=linux GOARCH=amd64 go build -ldflags '-s -w -X main.NginxBuildVersion=${VERSION}' -o bin/linux/amd64/nginx-build
GOOS=darwin GOARCH=amd64 go build -ldflags '-s -w -X main.NginxBuildVersion=${VERSION}' -o bin/darwin/amd64/nginx-build
GOOS=darwin GOARCH=arm64 go build -ldflags '-s -w -X main.NginxBuildVersion=${VERSION}' -o bin/darwin/arm64/nginx-build

dist: build-cross
cd bin/linux/amd64/ && tar cvf nginx-build-linux-amd64-${VERSION}.tar nginx-build && zopfli nginx-build-linux-amd64-${VERSION}.tar
cd bin/darwin/amd64/ && tar cvf nginx-build-darwin-amd64-${VERSION}.tar nginx-build && zopfli nginx-build-darwin-amd64-${VERSION}.tar
cd bin/darwin/arm64/ && tar cvf nginx-build-darwin-arm64-${VERSION}.tar nginx-build && zopfli nginx-build-darwin-arm64-${VERSION}.tar

build-example: nginx-build
./nginx-build -c config/configure.example -m config/modules.cfg.example -d work -clear

Expand All @@ -24,16 +14,5 @@ check:
fmt:
go fmt ./...

install:
install nginx-build /usr/local/bin/nginx-build
install doc/_build/man/nginx-build.7 /usr/local/share/man/man7/nginx-build.7

.PHONY: doc
doc:
cd doc; make man

clean:
rm -rf nginx-build
rm -rf bin/linux/amd64/nginx-build*
rm -rf bin/darwin/amd64/nginx-build*
rm -rf bin/darwin/arm64/nginx-build*
177 changes: 0 additions & 177 deletions doc/Makefile

This file was deleted.

Loading

0 comments on commit 6425016

Please sign in to comment.