2022-08-17 18:30:03 +00:00
|
|
|
SUBDIRS = cacert_resources oidc_app oidc_idp oidc_registration
|
2024-05-19 05:12:54 +00:00
|
|
|
GO_VERSION = 1.22.3
|
2022-08-17 18:30:03 +00:00
|
|
|
|
2023-08-08 10:31:25 +00:00
|
|
|
export PATH:=$(CURDIR)/tmp/go/bin:$(PATH)
|
2023-08-06 19:08:46 +00:00
|
|
|
|
2023-08-08 10:31:25 +00:00
|
|
|
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)
|
2023-08-06 19:08:46 +00:00
|
|
|
cd cacert_resources ; $(MAKE) $(MFLAGS)
|
2022-08-17 18:30:03 +00:00
|
|
|
|
2023-08-08 10:31:25 +00:00
|
|
|
oidc_app/demo-app: cacert_resources install_go force_look
|
2022-08-17 18:30:03 +00:00
|
|
|
echo building demo app : $(MAKE) $(MFLAGS)
|
|
|
|
cd oidc_app ; $(MAKE) $(MFLAGS)
|
|
|
|
|
2023-08-08 10:31:25 +00:00
|
|
|
oidc_idp/cacert-idp: cacert_resources install_go force_look
|
2022-08-17 18:30:03 +00:00
|
|
|
echo building CAcert IDP : $(MAKE) $(MFLAGS)
|
|
|
|
cd oidc_idp ; $(MAKE) $(MFLAGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
echo cleaning up in .
|
|
|
|
-for d in $(SUBDIRS) ; do ( cd $$d; $(MAKE) clean ); done
|
|
|
|
|
|
|
|
force_look:
|
|
|
|
true
|
|
|
|
|
2023-08-08 10:31:25 +00:00
|
|
|
.PHONY: all clean install_go install_yarn
|