From dd2ef6d47aecaff90c33fdd4ff67b401291de8f4 Mon Sep 17 00:00:00 2001
From: Andrew Johnson
A new tool is provided that expands out @VAR@ macros. By default it knows the value of @TOP@, @ARCH@ and any - paths defined in the application's configure/RELEASE file, but - additional macros can be defined in the Makefile that uses it by - adding to the EXPAND_VARS macro like the example following, - which creates an @EXE@ macro that expands out to .exe - on windows and to nothing on other platforms:
+ paths defined in the application's configure/RELEASE file such + as @EPICS_BASE@, but additional macros can be defined in the + Makefile that uses it by adding to the EXPAND_VARS + variable like the example following, which creates an @EXE@ + macro that expands out to .exe on windows targets and to + nothing on other platforms: +EXPAND_VARS += EXE=$(EXE)+
Files that contain @VAR@ macros to be substituted must have an at sign @ as the last character of their name and be listed in the EXPAND variable of their Makefile. The @@ -283,24 +287,29 @@ or later. These changes are briefly:
@ suffix removed, and is then available for compiling or installing using any other build mechanism.Support has been added for installing Perl library modules. The Makefile variable PERL_MODULES can be set to a list of names of files to be installed into the $(TOP)/lib/perl directory. The above macro expansion facility can then be used in perl programs that use these libraries to set the perl search path to include that directory. The syntax for this is as follows:
+use lib '@TOP@/lib/perl'; use MyModule;+
The filenames listed in PERL_MODULES can include subdirectory path components and the build system will preserve these in the installed result.