DOMAIN ?= cadoles.com OUTPUT_DIR = images/infra/$(DOMAIN)/production SYSDIR = $(OUTPUT_DIR)/$*.$(DOMAIN)/system DATADIR = $(OUTPUT_DIR)/$*.$(DOMAIN)/data SYSSIZE ?= 10240 DATASIZE ?= 20480 EOLEBASE = images/eole/2.7.2/eolebase/eolebase-2.7.2.img SETHBASE = images/eole/2.7.2/seth/seth-2.7.2.img AMONBASE = images/eole/2.7.2/amon/amon-2.7.2.img PSOURCE ?= ./images/infra/$(DOMAIN)/production PUBDIR ?= /var/www/html/market/master/ber/ PROVDIR ?= ./recipes/provisioning/infra build: infra infra: dns.$(DOMAIN).img \ amon.$(DOMAIN).img \ dc.$(DOMAIN).img \ sso.$(DOMAIN).img \ ninegate.$(DOMAIN).img \ limesurvey.$(DOMAIN).img \ dokuwiki.$(DOMAIN).img \ dolibarr.$(DOMAIN).img \ nextcloud.$(DOMAIN).img \ nineboard.$(DOMAIN).img \ piwigo.$(DOMAIN).img \ syspass.$(DOMAIN).img \ jorani.$(DOMAIN).img %.$(DOMAIN): %.$(DOMAIN).img @echo Building : $* %.$(DOMAIN).img: $(EOLEBASE) $(SETHBASE) $(AMONBASE) @rm -rf $(SYSDIR) @mkdir -p $(PROVDIR)/$*.$(DOMAIN)/eole-db VM_NAME=$*.$(DOMAIN) DOMAIN=$(DOMAIN) SYS_DISK_SIZE=$(SYSSIZE) \ script/build recipes/infra/$(DOMAIN)/production/$*.json ${BUILD_OPTS} ${BUILD_OPT} %.$(DOMAIN)-publish: @echo cp -r $(PSOURCE)/$*.$(DOMAIN) $(PUBDIR)production/ @cp -r $(PSOURCE)/$*.$(DOMAIN) $(PUBDIR)production/ ber-publish: @echo cp -r $(PSOURCE) $(PUBDIR) @cp -r $(PSOURCE) $(PUBDIR)