cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-10-19 20:27:12 +03:00
parent 882e39370e
commit 9ba285256c
2 changed files with 17 additions and 40 deletions

View File

@ -15,20 +15,10 @@ EDITOR ?= vim
# CTs... # CTs...
# #
# NOTE: The order here is important:
# - to avoid bootstrapping network connections gate must be the
# first CT to get built to route the rest of CT's to the WAN
# connection during the build process.
# - ns should be the second to be built to provide the rest of the
# CT's with DHCP network configuration.
# - the rest of the CT's are created in order of importance, strting
# from CT's needed for access and ending with services.
CORE_CTs := \
gate ns
MINIMAL_CTs := \ MINIMAL_CTs := \
ssh wireguard ssh wireguard
APP_CTs := \ APP_CTs := \
syncthing nextcloud #gitea syncthing nextcloud
# Optional (see dev target)... # Optional (see dev target)...
DEV_CTs := \ DEV_CTs := \
gitea gitea
@ -86,25 +76,14 @@ config.global: config.global.example
#---------------------------------------------------------------------- #----------------------------------------------------------------------
# Shorthands... # Bootstrapping...
.PHONY: config
config: config.global
.PHONY: gate
gate: gate-traefik
#----------------------------------------------------------------------
# Bootstrap stage 1: build basic infrastructure... # Bootstrap stage 1: build basic infrastructure...
.PHONY: bootstrap .PHONY: bootstrap
bootstrap: \ bootstrap: \
host-bootstrap \ host-bootstrap \
gate-bootstrap \ gate-bootstrap ns \
ns ssh wireguard \ $(MINIMAL_CTs) \
bootstrap-clean bootstrap-clean
@ -121,29 +100,27 @@ finalize: bootstrap-clean gate-bootstrap-clean
#---------------------------------------------------------------------- #----------------------------------------------------------------------
# Shorthands...
.PHONY: core .PHONY: config
core: config $(CORE_CTs) config: config.global
.PHONY: minimal .PHONY: gate
minimal: core $(MINIMAL_CTs) gate: gate-traefik
#----------------------------------------------------------------------
.PHONY: all
all: $(APP_CTs)
.PHONY: dev .PHONY: dev
dev: minimal $(DEV_CTs) dev: $(DEV_CTs)
.PHONY: all
all: minimal $(APP_CTs)
.PHONY: test
test:
@echo "TEST!"
test2: test test
#---------------------------------------------------------------------- #----------------------------------------------------------------------