1c002ea441ef48d4580156e0e80f23a8b7dc3eec markd Sun Jan 19 13:05:19 2025 -0800 CGI loaders working diff --git src/inc/cgiVars.mk src/inc/cgiVars.mk new file mode 100644 index 00000000000..27a83356284 --- /dev/null +++ src/inc/cgiVars.mk @@ -0,0 +1,26 @@ +# common variables for CGIs and CGI loader programs + +ifeq (${CGI_BIN_USER},) + CGI_BIN_USER=${CGI_BIN}-${USER} +endif + +ifeq (${CGI_BIN_BETA},) + CGI_BIN_BETA=${CGI_BIN}-beta +endif + +# these rules set CGI_BIN_DEST to the right cgi-bin directory depending +# on the main goal (my (default), alpha or beta) +# this won't work if you supply multiple goals "(make my alpha beta") +# but we do not seem to do that +CGI_BIN_DEST=${CGI_BIN} +ifeq ($(MAKECMDGOALS),my) + CGI_BIN_DEST=${CGI_BIN}-${USER} +endif +ifeq ($(MAKECMDGOALS),) + CGI_BIN_DEST=${CGI_BIN}-${USER} +endif +ifeq ($(MAKECMDGOALS),beta) + CGI_BIN_DEST=${CGI_BIN}-beta +endif + +