-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 801 Bytes
/
Makefile
File metadata and controls
40 lines (29 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/make
GOROOT:=$(shell PATH="/pkg/main/dev-lang.go.dev/bin:$$PATH" go env GOROOT)
GOPATH:=$(shell $(GOROOT)/bin/go env GOPATH)
export CGO_ENABLED=0
all:
GOROOT="$(GOROOT)" $(GOPATH)/bin/goimports -w -l .
$(GOROOT)/bin/go build -v
sapi/php-cli/php-cli:
make -C sapi/php-cli
php-cli: $(shell find -iname '*.go')
echo building cli
make buildext
go build -gcflags="all=-N -l" ./sapi/php-cli
sapi/php-httpd/php-httpd:
make -C sapi/php-httpd
sapi: sapi/php-cli/php-cli sapi/php-httpd/php-httpd
test:
$(GOROOT)/bin/go test
http:
$(RM) sapi/php-httpd/php-httpd
make sapi/php-httpd/php-httpd
./sapi/php-httpd/php-httpd
buildext:
go run tools/buildext/buildext.go
deps:
$(GOROOT)/bin/go get -v .
testdeps:
$(GOROOT)/bin/go get -v -t .
.PHONY: test http buildext sapi testdeps deps