ref: b35cc68ab93b9070cb97004829a8c23402442274
parent: 29ce560862d68477b95bc6d1898facadc5421ffa
author: Ori Bernstein <[email protected]>
date: Sat Jan 19 21:48:48 EST 2013
Install the Myrddin system's makefiles on 'make install'
--- a/6/main.c
+++ b/6/main.c
@@ -97,7 +97,7 @@
if (debugopt['T'])
dump(file, stdout);
infer(file);
- /* after all processing */
+ /* after all type inference */
if (debugopt['t'])
dump(file, stdout);
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,8 @@
6 \
muse \
myrbuild \
- libstd
+ libstd \
+ doc
include mk/c.mk
include config.mk
--- /dev/null
+++ b/doc/Makefile
@@ -1,0 +1,14 @@
+MAN=mc.1 \
+ muse.1 \
+ myrbuild.1 \
+
+include ../config.mk
+
+all:
+
+install:
+ @echo install $(MAN) $(INST_ROOT)/share/man/man1; \
+ mkdir -p $(INST_ROOT)/share/man/man1; \
+ install $(MAN) $(INST_ROOT)/share/man/man1; \
+
+
--- a/doc/mc.1
+++ b/doc/mc.1
@@ -63,7 +63,7 @@
.SH FILES
The source code for this compiler is available from
-.B git://git.eigenstate.org/git/ori/mc2.git
+.B git://git.eigenstate.org/git/ori/mc.git
.SH SEE ALSO
.IR muse(1)
--- a/doc/muse.1
+++ b/doc/muse.1
@@ -69,9 +69,9 @@
.SH FILES
The source for muse is available from
-.B git://git.eigenstate.org/git/ori/mc2.git
+.B git://git.eigenstate.org/git/ori/mc.git
and lives in the
-.I util/
+.I muse/
directory within the source tree.
.SH SEE ALSO
--- /dev/null
+++ b/doc/myrbuild.1
@@ -1,0 +1,66 @@
+.TH MUSE 1
+.SH NAME
+myrbuild
+.SH SYNOPSIS
+.B myrbuild
+.I -[hblI]
+.I [file...]
+.br
+.SH DESCRIPTION
+.PP
+The 'myrbuild' tool takes as input a list of Myrddin or assembly sources,
+and compiles them in the correct dependency order into either a library or
+an executable. If the source files are myrddin sources, then the appropriate
+usefiles will be created as well. It expects Myrddin source to be in '.myr'
+files.
+
+.PP
+Myrbuild will default to building for the current architecture.
+
+.PP
+The myrbuild options are:
+
+.TP
+.B -h
+Print a summary of the available options.
+
+.TP
+.B -b name
+Compile source into a binary named 'name'. If neither this option nor
+the '-l' option are given, myrbuild will create a binary called 'a.out'.
+
+.TP
+.B -l 'name'
+Compile source given into a library called 'lib<name>.a', and a matching
+usefile called 'name'. Only static libraries are currently supported.
+
+.TP
+.B -I path
+Add 'path' to the search path for unquoted use statments. This option
+does not affect the search path for local usefiles, which are always
+searched relative to the compiler's current working directory. Without
+any options, the search path defaults to /usr/include/myr.
+
+.SH EXAMPLE
+.EX
+ myrbuild -b foo foo.myr
+ myrbuild -l foo bar.myr baz.myr
+ muse -mo library foo.use bar.use
+.EE
+
+.SH FILES
+The source for muse is available from
+.B git://git.eigenstate.org/git/ori/mc.git
+and lives in the
+.I myrbuild/
+directory within the source tree.
+
+.SH SEE ALSO
+.IR mc(1)
+.IR muse(1)
+.IR ld(1)
+.IR as(1)
+
+.SH BUGS
+.PP
+None known.