File: README-example.txt

package info (click to toggle)
latex-mk 2.1-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,988 kB
  • ctags: 243
  • sloc: sh: 4,252; makefile: 165
file content (93 lines) | stat: -rw-r--r-- 2,700 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# $Id: README-example.txt,v 1.4 2004/05/29 03:24:59 dan Exp $
#


----------------------------------------
Trying the example before installation
----------------------------------------

To try out LaTeX-Mk and this example before installation, you need to set the 
following environment variables:

LATEX_MK_DIR

    This should be set to the top level build directory for LaTeX-Mk.  In
    this example, assume that the sources were extracted and built in 
    /tmp/latex-mk-0.2

LATEX_MK

    This should be set to the complete path to the latex-mk script.


If you are using csh/tcsh:

setenv LATEX_MK_DIR /tmp/latex-mk-0.2
setenv LATEX_MK /tmp/latex-mk-0.2/latex-mk

In you are using sh/bash:

LATEX_MK_DIR=/tmp/latex-mk-0.2
export LATEX_MK_DIR
LATEX_MK=/tmp/latex-mk-0.2/latex-mk
export LATEX_MK

Now go to the "running the example" section.

----------------------------------------
Trying the example after installation
----------------------------------------

If you wish to try out the example after installation, you will need to
copy the examples directory to a working directory where you have write
permissions.  Assuming that the examples directory was installed to
/usr/local/share/latex-mk/example, you can do something like:

mkdir /some/tmp/dir
cp -r /usr/local/share/latex-mk/example /tmp/tmp/dir

You will also need to set the enviroment variable

LATEX_MK_DIR

    This should be set to the directory where the LaTeX-Mk .mk files 
    have been installed to.  This is usually something like
    /usr/local/bin/share/latex-mk

f you are using csh/tcsh:

setenv LATEX_MK_DIR /usr/local/bin/share/latex-mk

In you are using sh/bash:

LATEX_MK_DIR=/usr/local/bin/share/latex-mk
export LATEX_MK_DIR

Now go to the "running the example" section.

----------------------------------------
Running the example
----------------------------------------

The example includes two different makefiles.  One is called
"mkfile.mk" which uses the BSD make syntax.  The other is
"mkfile.gmk" and uses the GNU make syntax.  Normally you
would just use the name "Makefile" and use the syntax appropriate
for your version of make.  However, to provide both a GNU make
and a BSD make example, I used two different names.  In addition,
I needed a name which would not conflict with the Makefile in
this directory which handles packaging up this example.  You can tell
make which makefile to use via the -f flag.  So to run GNU make,
you'd do:
	gmake -f mkfile.gmk
and for BSD make,
	make -f mkfile.mk

Try various targets like
	make -f mkfile.mk pdf
	make -f mkfile.mk clean
to see what make would run with actually having it run the commands
use the -n flag like:
	make -f mkfile.mk -n viewpdf