From 261e814e4aed8f574ea059d8b61dafaead2f6c4c Mon Sep 17 00:00:00 2001
From: Simon Rose <simon.rose@ess.eu>
Date: Tue, 22 Jun 2021 17:08:50 +0200
Subject: [PATCH] Removed a lot of old comments from driver.makefile

---
 require-ess/tools/driver.makefile | 100 ------------------------------
 1 file changed, 100 deletions(-)

diff --git a/require-ess/tools/driver.makefile b/require-ess/tools/driver.makefile
index 4f761e57..6f91cd84 100644
--- a/require-ess/tools/driver.makefile
+++ b/require-ess/tools/driver.makefile
@@ -153,16 +153,6 @@ ifndef EPICSVERSION
 ## RUN 1
 # In source directory
 
-##---## In E3, we don't need to check which EPICS BASE
-
-# Find out which EPICS versions to build.
-#INSTALLED_EPICS_VERSIONS := $(patsubst ${EPICS_LOCATION}/base-%,%,$(wildcard ${EPICS_LOCATION}/base-*[0-9]))
-#EPICS_VERSIONS = $(filter-out ${EXCLUDE_VERSIONS:=%},${DEFAULT_EPICS_VERSION})
-#MISSING_EPICS_VERSIONS = $(filter-out ${BUILD_EPICS_VERSIONS},${DEFAULT_EPICS_VERSION})
-#BUILD_EPICS_VERSIONS = $(filter ${INSTALLED_EPICS_VERSIONS},${DEFAULT_EPICS_VERSION})
-
-#BUILD_EPICS_VERSIONS = ${DEFAULT_EPICS_VERSION}
-
 $(foreach v,$(sort $(basename ${BUILD_EPICS_VERSIONS})),$(eval EPICS_VERSIONS_$v=$(filter $v.%,${BUILD_EPICS_VERSIONS})))
 
 
@@ -197,15 +187,9 @@ export TMPS
 clean::
 	$(RMDIR) O.*
 
-#clean.%::
-#	$(RMDIR) $(wildcard O.*${@:clean.%=%}*)
-
 uninstall:
 	$(RMDIR) ${MODULE_LOCATION}
 
-#uninstall.%:
-#	$(RMDIR) $(wildcard ${MODULE_LOCATION}/R*${@:uninstall.%=%}*)
-
 help:
 	@echo "usage:"
 	@for target in '' build '<EPICS version>' \
@@ -216,7 +200,6 @@ help:
 	do echo "  make $$target"; \
 	done
 	@echo "Makefile variables:(defaults) [comment]"
-#	@echo "  EPICS_VERSIONS   (${DEFAULT_EPICS_VERSION})"
 	@echo "  MODULE           (${PRJ}) [from current directory name]"
 	@echo "  PROJECT          [older name for MODULE]"
 	@echo "  SOURCES          (*.c *.cc *.cpp *.st *.stt *.gt)"
@@ -232,16 +215,8 @@ help:
 	@echo "  BUILDCLASSES     (Linux)"
 	@echo "  <module>_VERSION () [build against specific version of other module]"
 
-##  "make version" shows the module version and why it is what it is.       
-# version: ${IGNOREFILES}
-# 	@${VERSIONCHECKCMD}
-
 debug::
-#	@echo "INSTALLED_EPICS_VERSIONS = ${INSTALLED_EPICS_VERSIONS}"
 	@echo "BUILD_EPICS_VERSIONS = ${BUILD_EPICS_VERSIONS}"
-#	@echo "MISSING_EPICS_VERSIONS = ${MISSING_EPICS_VERSIONS}"
-#	@echo "EPICS_VERSIONS_3.14 = ${EPICS_VERSIONS_3.14}"
-	@echo "EPICS_VERSIONS_3.15 = ${EPICS_VERSIONS_3.15}"
 	@echo "BUILDCLASSES = ${BUILDCLASSES}"
 	@echo "LIBVERSION = ${LIBVERSION}"
 	@echo "VERSIONCHECKFILES = ${VERSIONCHECKFILES}"
@@ -254,13 +229,6 @@ MAKEVERSION = ${MAKE} -f ${USERMAKEFILE} LIBVERSION=${LIBVERSION}
 build install debug db_internal:: ${IGNOREFILES}
 	@+for VERSION in ${BUILD_EPICS_VERSIONS}; do ${MAKEVERSION} EPICSVERSION=$$VERSION $@; done
 
-#build: ${IGNOREFILES}
-#	${MAKE} -f ${USERMAKEFILE} LIBVERSION=${LIBVERSION} EPICSVERSION=$$DEFAULT_EPICS_VERSION
-#	 ${MAKEVERSION} EPICSVERSION=$${BUILD_EPICS_VERSIONS}
-# Handle cases where user requests a group of EPICS versions:
-# make <action>.3.13 or make <action>.3.14 instead of make <action> or
-# make 3.13 or make 3.14 instead of make.
-
 define VERSIONRULES
 $(1): ${IGNOREFILES}
 	@+for VERSION in $${EPICS_VERSIONS_$(1)}; do $${MAKEVERSION} EPICSVERSION=$$$$VERSION build; done
@@ -312,7 +280,6 @@ else # EPICSVERSION
 # Second or third run (see T_A branch below)
 
 EPICS_BASE=${EPICS_LOCATION}
-#/base-${EPICSVERSION}
 
 CONFIG=${EPICS_BASE}/configure
 
@@ -406,12 +373,6 @@ SCR = $(if ${SCRIPTS},$(filter-out -none-,${SCRIPTS}),$(wildcard *.cmd *.iocsh))
 SCR += ${SCRIPTS_${EPICSVERSION}}
 export SCR
 
-DOCUDIR = .
-#DOCU = $(foreach DIR,${DOCUDIR},$(wildcard ${DIR}/*README*) $(foreach EXT,${DOCUEXT}, $(wildcard ${DIR}/*.${EXT})))
-export DOCU
-
-# Loop over all target architectures for third run.
-
 # Filter architectures to build using EXCLUDE_ARCHS and ARCH_FILTER.
 CROSS_COMPILER_TARGET_ARCHS := ${EPICS_HOST_ARCH} ${CROSS_COMPILER_TARGET_ARCHS}
 CROSS_COMPILER_TARGET_ARCHS := $(filter-out $(addprefix %,${EXCLUDE_ARCHS}),$(filter-out $(addsuffix %,${EXCLUDE_ARCHS}),$(if ${ARCH_FILTER},$(filter ${ARCH_FILTER},${CROSS_COMPILER_TARGET_ARCHS}),${CROSS_COMPILER_TARGET_ARCHS})))
@@ -569,29 +530,6 @@ INSTALL_CFG     = ${INSTALL_REV}/cfg
 INSTALL_DOC     = ${MODULE_LOCATION}/doc
 INSTALL_SCR     = ${INSTALL_REV}
 
-#INSTALL_DOCUS = $(addprefix ${INSTALL_DOC}/${PRJ}/,$(notdir ${DOCU}))
-
-#${INSTALL_DOC}/${PRJ}/%: %
-#	@echo "Installing documentation $@"
-#	$(RM) $@
-#	cp $^ $@
-#	chmod 444 $@
-#
-#${INSTALL_TEMPL}/%.template: %.template
-#	@echo "Installing template file $@"
-#	$(RM) $@
-#	echo "#${PRJ}Lib ${LIBVERSION}" > $@
-#	cat $^ >> $@
-#	chmod 444 $@
-#	$(SETLINKS) ${INSTALL_TEMPL} .template $(basename $(notdir $^))
-#
-#${INSTALL_TEMPL}/%.db: %.db
-#	@echo "Installing template file $@"
-#	$(RM) $@
-#	$(CP) $^ >> $@
-#	chmod 444 $@
-#	$(SETLINKS) ${INSTALL_TEMPL} .db $(basename $(notdir $^))
-
 LIBRARY_OBJS = $(strip ${LIBOBJS} $(foreach l,${USR_LIBOBJS},$(addprefix ../,$(filter-out /%,$l))$(filter /%,$l)))
 
 MODULELIB = $(if ${LIBRARY_OBJS},${LIB_PREFIX}${PRJ}${SHRLIB_SUFFIX},)
@@ -912,7 +850,6 @@ SNCFLAGS += -r
 ${VERSIONFILE}:
 	echo "char _${PRJ}LibRelease[] = \"${LIBVERSION}\";" >> $@
 
-# EPICS R3.14.*:
 # Create file to fill registry from dbd file.
 ${REGISTRYFILE}: ${MODULEDBD}
 	$(PERL) $(EPICS_BASE_HOST_BIN)/registerRecordDeviceDriver.pl $< $(basename $@) | grep -v 'iocshRegisterCommon();' > $@
@@ -992,40 +929,3 @@ build:
 endif # In O.* directory
 endif # T_A defined
 endif # EPICSVERSION defined
-
-
-
-
-##
-## Tuesday, January 30 14:03:35 CET 2018  : Default snc path (SNC) was changed in order to use E3_SITELIBS_PATH,
-##                                          at the same time, we also add E3_SITEMODS_PATH, E3_SITEAPPS_PATH also.
-##                                          They should be configured in E3/CONFIG_EXPORT and E3/CONFIG_E3_MAKEFILE.
-##                                          We also introduce E3_SEQUENCER_NAME also.
-##
-## Wednesday, January 31 15:18:33 CET 2018: Add Debug messages in SNC  
-##
-## Saturday, February 10 22:42:44 CET 2018: E3_SEQUENCER_VERSION was introduced. If not set, fall back to
-##                                          *.*.* versions number, and SNC will be selected via lastword
-##                                          in the original driver.makefile way.
-##                                          Default E3_SEQUENCER_NAME as sequencer, if it is not defined in
-##                                          CONFIG_MODULE in each module
-##
-## Tuesday, May  1 20:27:31 CEST 2018       : Generate a dependency file with module_name x.x.x instead of x.x
-##                                            add the exclusion for include for require.dep
-##
-## Sunday, May  6 22:10:24 CEST 2018        : add %.{hh,hpp,hxx} headers into vpath in order to install them properly
-## 
-## Tuesday, September 18 22:57:17 CEST 2018 : add *.iocsh in SCR
-##
-## Thursday, November  8 11:01:28 CET 2018  : Add    ADD_SITEMODS_INCLUDES and ADD_SITEAPPS_INCLUDES instead of ADD_FOREIGN_INCLUDES
-##                                            Remove the E3_SEQUENCER_*, use sequencer_VERSION instaed.
-##
-## Thursday, March  7 00:11:50 CET 2019     : Add E3_SITEMODS_PATH, E3_SITEAPPS_PATH in the dep file generation.
-##
-## Monday, September  9 15:25:53 CEST 2019  : Revert E3_SITEMODS_PATH from E3_SITELIBS_PATH in the snc path
-##
-## Tuesday, June 30 2020                    : Combine NFS E3 driver.makefile with conda version
-##
-## Friday, July 3 2020                      : Force all module names to be lowercase, to allow consistency between conda/nfs startup scripts.
-##
-## $(DATE)                                  : Removed the V3-specific code. Adde������������������������������������������������������������������
\ No newline at end of file
-- 
GitLab