8268f8067b6ad8a5e0b0f426bedc16e567ae116a markd Sun Oct 3 13:38:16 2021 -0700 fixed typo in make variable names that keeps it from being used as a environment variable diff --git src/inc/cgi_build_rules.mk src/inc/cgi_build_rules.mk index 04735c5..9c2c2ed 100644 --- src/inc/cgi_build_rules.mk +++ src/inc/cgi_build_rules.mk @@ -1,63 +1,63 @@ # Common set of build rules for CGI binaries 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 +# 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} +CGI_BIN_DEST=${CGI_BIN} ifeq ($(MAKECMDGOALS),my) - CGI-BIN_DEST=${CGI_BIN}-${USER} + CGI_BIN_DEST=${CGI_BIN}-${USER} endif ifeq ($(MAKECMDGOALS),) - CGI-BIN_DEST=${CGI_BIN}-${USER} + CGI_BIN_DEST=${CGI_BIN}-${USER} endif ifeq ($(MAKECMDGOALS),beta) - CGI-BIN_DEST=${CGI_BIN}-beta + CGI_BIN_DEST=${CGI_BIN}-beta endif my:: compile chmod a+rx $A${EXE} rm -f ${CGI_BIN_USER}/$A mv $A${EXE} ${CGI_BIN_USER}/$A alpha:: strip rm -f ${CGI_BIN}/$A mv $A${EXE} ${CGI_BIN}/$A beta:: strip rm -f ${CGI_BIN_BETA}/$A mv $A${EXE} ${CGI_BIN_BETA}/$A # don't actually strip so we can get stack traces strip:: compile chmod g+w $A${EXE} chmod a+rx $A${EXE} install:: strip @if [ ! -d "${DESTDIR}${CGI_BIN}" ]; then \ ${MKDIR} "${DESTDIR}${CGI_BIN}"; \ fi rm -f ${DESTDIR}${CGI_BIN}/$A mv $A${EXE} ${DESTDIR}${CGI_BIN}/$A debug:: $O ${CC} ${COPT} ${CFLAGS} $O ${MYLIBS} ${L} rm -f $A${EXE} mv ${AOUT} $A${EXE} lib:: cd ../../lib; make clean:: rm -f $O $A${EXE} tags:: ctags *.h *.c ../lib/*.c ../inc/*.h ../../lib/*.c ../../inc/*.h