# line 1 "install-GEN.ljm" # line 8 "install-GEN.ljm" /*# Where and how to install things (generally) */ /*# [An individual project is likely to have its own ideas] */ /*# WHERE: */ #ifndef InstRootDir #define InstRootDir /usr/local #endif /* platform-specific binaries */ #ifndef InstBinDir #define InstBinDir $(INSTROOT)/bin/$(HOSTPLATFORM) #endif /* scripts are platform-independent executables */ #ifndef InstScriptDir #define InstScriptDir $(INSTROOT)/bin #endif /* "Lib" is where platform-specific stuff goes; * "Data" is where platform-independent stuff goes. * [arbitrary] */ #ifndef InstLibDir #define InstLibDir $(INSTROOT)/lib/$(HOSTPLATFORM) #endif #ifndef InstDataDir #define InstDataDir $(INSTROOT)/lib #endif INSTROOT = InstRootDir INSTBINDIR = InstBinDir INSTSCRIPTDIR = InstScriptDir INSTLIBDIR = InstLibDir INSTDATADIR = InstDataDir /* top of manual page tree to install in */ /* NB: not necessarily the same place as to look for man pages (?) */ #ifndef InstManRoot #define InstManRoot ManDirectoryRoot #endif /* prefix for man page _sources_ (vs .../cat) */ #ifndef InstManSrcRoot #define InstManSrcRoot $(INSTMANROOT)/man #endif /* man pages for commands */ #ifndef InstComManDir /* man pages for commands */ #define InstComManDir CAT2($(INSTMANSRCROOT),$(COMMANSUFFIX)) #endif /* man pages for library routines */ #ifndef InstLibManDir #define InstLibManDir CAT2($(INSTMANSRCROOT),$(LIBMANSUFFIX)) #endif /* man pages for system commands */ #ifndef InstSysManDir #define InstSysManDir CAT2($(INSTMANSRCROOT),$(SYSMANSUFFIX)) #endif /* suffix for installing commands'/etcs' man pages */ #ifndef ComManSuffix #define ComManSuffix l /* use just one tab or cpp will die */ #endif #ifndef LibManSuffix #define LibManSuffix 3 /* use just one tab or cpp will die */ #endif #ifndef SysManSuffix #define SysManSuffix 8 /* use just one tab or cpp will die */ #endif INSTMANROOT = InstManRoot INSTMANSRCROOT = InstManSrcRoot INSTCOMMANDIR = InstComManDir INSTLIBMANDIR = InstLibManDir INSTSYSMANDIR = InstSysManDir COMMANSUFFIX = ComManSuffix LIBMANSUFFIX = LibManSuffix SYSMANSUFFIX = SysManSuffix #ifndef InstInfoDir #define InstInfoDir $(INSTROOT)/info #endif INSTINFODIR = InstInfoDir /*# HOW: */ /* this stuff about "who" does the installing doesn't have make vars * as it is not intended to be runtime-changeable. */ #ifndef InstOwner #ifdef Owner #define InstOwner -o Owner #else #define InstOwner /* as nothing */ #endif #endif #ifndef InstGroup #ifdef Group #define InstGroup -g Group #else #define InstGroup /* as nothing */ #endif #endif #ifndef InstFileFlags #define InstFileFlags /* as nothing */ #endif #ifndef InstStrip #define InstStrip /* as nothing */ #endif #ifndef InstBinFlags #define InstBinFlags -m 0755 InstOwner InstGroup InstFileFlags InstStrip #endif /* No strip flags on rest of these -- avoids message from install about stripping non-binaries. */ #ifndef InstScriptFlags #define InstScriptFlags -m 0755 InstOwner InstGroup InstFileFlags #endif #ifndef InstLibFlags #define InstLibFlags -m 0644 InstOwner InstGroup InstFileFlags #endif #ifndef InstDataLibFlags #define InstDataLibFlags -m 0644 InstOwner InstGroup InstFileFlags #endif #ifndef InstIncFlags #define InstIncFlags -m 0644 InstOwner InstGroup InstFileFlags #endif #ifndef InstDataFlags #define InstDataFlags -m 0644 InstOwner InstGroup InstFileFlags #endif #ifndef InstManFlags #define InstManFlags -m 0644 InstOwner InstGroup InstFileFlags #endif #ifndef InstRanlibFlags #define InstRanlibFlags /*none*/ #endif INSTBINFLAGS = InstBinFlags INSTSCRIPTFLAGS = InstScriptFlags INSTLIBFLAGS = InstLibFlags INSTINCFLAGS = InstIncFlags /* flags for include files */ INSTDATAFLAGS = InstDataFlags INSTMANFLAGS = InstManFlags INSTRANLIBFLAGS = InstRanlibFlags