summaryrefslogtreecommitdiff
path: root/web/glasgow/lit2x-0.16/mkworld/install-GEN.ljm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/glasgow/lit2x-0.16/mkworld/install-GEN.ljm
Initial commit
Diffstat (limited to 'web/glasgow/lit2x-0.16/mkworld/install-GEN.ljm')
-rw-r--r--web/glasgow/lit2x-0.16/mkworld/install-GEN.ljm145
1 files changed, 145 insertions, 0 deletions
diff --git a/web/glasgow/lit2x-0.16/mkworld/install-GEN.ljm b/web/glasgow/lit2x-0.16/mkworld/install-GEN.ljm
new file mode 100644
index 0000000000..615223d66a
--- /dev/null
+++ b/web/glasgow/lit2x-0.16/mkworld/install-GEN.ljm
@@ -0,0 +1,145 @@
+%************************************************************************
+%* *
+\section[mkworld-install-GEN]{General stuff about installing things}
+%* *
+%************************************************************************
+
+\begin{code}
+/*# 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
+\end{code}