summaryrefslogtreecommitdiff
path: root/mk/install.mk.in
diff options
context:
space:
mode:
authorsimonm <unknown>1996-11-21 16:51:06 +0000
committersimonm <unknown>1996-11-21 16:51:06 +0000
commit02b60157852c1bf3c371b47c33d83814a05153bc (patch)
tree8d5ff7a8591eac367d90e234ce7edc86fb95a1d1 /mk/install.mk.in
parentc7cfec6242e57cec4e4ad106a53a327f319cdc8d (diff)
downloadhaskell-02b60157852c1bf3c371b47c33d83814a05153bc.tar.gz
[project @ 1996-11-21 16:45:53 by simonm]
New Build System!
Diffstat (limited to 'mk/install.mk.in')
-rw-r--r--mk/install.mk.in83
1 files changed, 83 insertions, 0 deletions
diff --git a/mk/install.mk.in b/mk/install.mk.in
new file mode 100644
index 0000000000..2d45807648
--- /dev/null
+++ b/mk/install.mk.in
@@ -0,0 +1,83 @@
+#-----------------------------------------------------------------------------
+# $Id: install.mk.in,v 1.2 1996/11/21 16:50:34 simonm Exp $
+
+AT_GLASGOW = @AT_GLASGOW@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+ifeq ($(AT_GLASGOW), 1)
+INSTBINDIR = $(exec_prefix)/bin/`/usr/local/gnu/bin/hw_os`
+else
+INSTBINDIR = $(exec_prefix)/bin
+endif
+
+INSTSCRIPTDIR = $(exec_prefix)/bin
+INSTLIBDIR = $(prefix)/lib/$(HOSTPLATFORM)
+INSTDATADIR = $(prefix)/lib
+
+#-----------------------------------------------------------------------------
+# Man pages & Documentation
+
+# top of manual page tree to install in
+# NB: not necessarily the same place as to look for man pages (?)
+INSTMANROOT = $(prefix)
+
+# prefix for man page _sources_ (vs .../cat)
+INSTMANSRCROOT = $(INSTMANROOT)/man
+
+# man pages for commands
+INSTCOMMANDIR = $(INSTMANSRCROOT)$(COMMANSUFFIX)
+
+# man pages for library routines
+INSTLIBMANDIR = $(INSTMANSRCROOT)$(LIBMANSUFFIX)
+
+# man pages for system commands
+INSTSYSMANDIR = $(INSTMANSRCROOT)$(SYSMANSUFFIX)
+
+# suffix for installing commands'/etcs' man pages
+COMMANSUFFIX = 1
+LIBMANSUFFIX = 3
+SYSMANSUFFIX = 8
+
+ifeq ($(AT_GLASGOW), 1)
+INSTINFODIR = /local/doc/info
+else
+INSTINFODIR = $(prefix)/info
+endif
+
+#-----------------------------------------------------------------------------
+# How to install things
+
+# this stuff about "who" does the installing doesn't have make vars
+# as it is not intended to be runtime-changeable.
+#
+ifdef OWNER
+INSTOWNER = -o $(OWNER)
+else
+INSTOWNER =
+endif
+
+ifdef GROUP
+INSTGROUP = -g $(GROUP)
+else
+INSTGROUP =
+endif
+
+INSTFILEFLAGS =
+INSTSTRIP =
+INSTBINFLAGS = \
+ -m 0755 $(INSTOWNER) $(INSTGROUP) $(INSTFILEFLAGS) $(INSTSTRIP)
+
+
+# No strip flags on rest of these -- avoids message from install
+# about stripping non-binaries.
+
+GENINSTALLFLAGS = $(INSTOWNER) $(INSTGROUP) $(INSTFILEFLAGS)
+
+INSTSCRIPTFLAGS = -m 0755 $(GENINSTALLFLAGS)
+INSTLIBFLAGS = -m 0644 $(GENINSTALLFLAGS)
+INSTDATALIBFLAGS = -m 0644 $(GENINSTALLFLAGS)
+INSTINCFLAGS = -m 0644 $(GENINSTALLFLAGS)
+INSTDATAFLAGS = -m 0644 $(GENINSTALLFLAGS)
+INSTMANFLAGS = -m 0644 $(GENINSTALLFLAGS)
+INSTRANLIBFLAGS =