You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
693 B

.PHONY: clean
VERSION :=v0.11.3
GOPATH :=$(shell pwd)/$(CADDY_SRC)/.go
all: caddy
caddy: $(CADDY_SRC) checkout-version patch $(GOPATH)
cd $(CADDY_SRC) && go get -v
cp $(GOPATH)/bin/$@ $@
mkdir -p $@/src/
ln -sf $(shell pwd)/$(CADDY_SRC) $(GOPATH)/src/
patch: $(CADDY_SRC)
cd $(CADDY_SRC)\
&& git apply ../plugins.patch\
&& git apply ../disable-telemetry.patch
git clone $@
checkout-version: $(CADDY_SRC)
cd $(CADDY_SRC) && git checkout --force --quiet $(VERSION)
rm -f caddy
rm -rf caddy-*