Add Go installation to Makefile
This commit is contained in:
parent
0e44cc9017
commit
4a7e46f2ad
2 changed files with 22 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
/.idea/
|
||||
/.vagrant/
|
||||
/tmp/
|
||||
|
|
31
Makefile
31
Makefile
|
@ -1,23 +1,34 @@
|
|||
SUBDIRS = cacert_resources oidc_app oidc_idp oidc_registration
|
||||
GO_VERSION = 1.20.7
|
||||
|
||||
all: cacert_resources oidc_app/demo-app oidc_idp/cacert-idp oidc_registration/cacert-oidc-registration
|
||||
export PATH:=$(CURDIR)/tmp/go/bin:$(PATH)
|
||||
|
||||
cacert_resources: force_look
|
||||
echo building JS and CSS resources
|
||||
all: cacert_resources oidc_app/demo-app oidc_idp/cacert-idp
|
||||
|
||||
$(CURDIR)/tmp/go$(GO_VERSION).linux-amd64.tar.gz:
|
||||
mkdir -p tmp ; cd tmp ; \
|
||||
curl -L -O https://go.dev/dl/go$(GO_VERSION).linux-amd64.tar.gz ; \
|
||||
|
||||
install_go: $(CURDIR)/tmp/go$(GO_VERSION).linux-amd64.tar.gz
|
||||
tar x -C $(CURDIR)/tmp -f $(CURDIR)/tmp/go$(GO_VERSION).linux-amd64.tar.gz
|
||||
go version
|
||||
go env
|
||||
|
||||
install_yarn:
|
||||
sudo apt install yarnpkg
|
||||
|
||||
cacert_resources: install_yarn force_look
|
||||
echo building UI resources : $(MAKE) $(MFLAGS)
|
||||
cd cacert_resources ; $(MAKE) $(MFLAGS)
|
||||
|
||||
oidc_app/demo-app: force_look
|
||||
oidc_app/demo-app: cacert_resources install_go force_look
|
||||
echo building demo app : $(MAKE) $(MFLAGS)
|
||||
cd oidc_app ; $(MAKE) $(MFLAGS)
|
||||
|
||||
oidc_idp/cacert-idp: force_look
|
||||
oidc_idp/cacert-idp: cacert_resources install_go force_look
|
||||
echo building CAcert IDP : $(MAKE) $(MFLAGS)
|
||||
cd oidc_idp ; $(MAKE) $(MFLAGS)
|
||||
|
||||
oidc_registration/cacert-oidc-registration: force_look
|
||||
echo building CAcert client registration: $(MAKE) $(MFLAGS)
|
||||
cd oidc_registration ; $(MAKE) $(MFLAGS)
|
||||
|
||||
clean:
|
||||
echo cleaning up in .
|
||||
-for d in $(SUBDIRS) ; do ( cd $$d; $(MAKE) clean ); done
|
||||
|
@ -25,4 +36,4 @@ clean:
|
|||
force_look:
|
||||
true
|
||||
|
||||
.PHONY: all clean
|
||||
.PHONY: all clean install_go install_yarn
|
||||
|
|
Loading…
Reference in a new issue