1 # Neatroff top-level Makefile
5 # Input fonts directory
6 FONTS
= $(PREFIX
)/fonts
7 # Output device directory
15 @echo
"Neatroff top-level makefile"
17 @echo
" init Initialise git repositories and fonts"
18 @echo
" init_fa Initialise for Farsi"
19 @echo
" neat Compile the programs and generate the fonts"
20 @echo
" pull Update git repositories (git pull)"
21 @echo
" clean Remove the generated files"
25 @
test -d neatroff || git clone git
://repo.or.cz
/neatroff.git
26 @
test -d neatpost || git clone git
://repo.or.cz
/neatpost.git
27 @
test -d neatmkfn || git clone git
://repo.or.cz
/neatmkfn.git
28 @
test -d neateqn || git clone git
://repo.or.cz
/neateqn.git
29 @
test -d neatrefer || git clone git
://repo.or.cz
/neatrefer.git
30 @
test -d troff || git clone git
://repo.or.cz
/troff.git
31 @
test -d soin ||
(wget
-c http
://litcave.rudi.ir
/soin.
tar.gz
&& tar xf soin.
tar.gz
)
32 @cd fonts
&& sh .
/fonts.sh
35 @cd neatroff
&& git checkout
dir
36 @
test -d shape ||
(wget
-c http
://litcave.rudi.ir
/shape.
tar.gz
&& tar xf shape.
tar.gz
)
37 @cd fonts
&& sh .
/fonts_fa.sh
40 cd neatroff
&& git pull
41 cd neatpost
&& git pull
42 cd neatmkfn
&& git pull
43 cd neateqn
&& git pull
44 cd neatrefer
&& git pull
49 @cd neatroff
&& $(MAKE
) FDIR
="$(FDIR)" MDIR
="$(MDIR)"
50 @cd neatpost
&& $(MAKE
) FDIR
="$(FDIR)" MDIR
="$(MDIR)"
51 @cd neateqn
&& $(MAKE
)
52 @cd neatmkfn
&& $(MAKE
)
53 @cd neatrefer
&& $(MAKE
)
54 @cd troff
/pic
&& $(MAKE
)
55 @cd troff
/tbl
&& $(MAKE
)
57 @
test ! -d shape ||
(cd shape
&& $(MAKE
))
58 @cd neatmkfn
&& .
/gen.sh
$(FONTS
) $(FDIR
)/devutf
>/dev
/null
61 @cd neatroff
&& $(MAKE
) clean
62 @cd neatpost
&& $(MAKE
) clean
63 @cd neateqn
&& $(MAKE
) clean
64 @cd neatmkfn
&& $(MAKE
) clean
65 @cd neatrefer
&& $(MAKE
) clean
66 @cd troff
/tbl
&& $(MAKE
) clean
67 @cd troff
/pic
&& $(MAKE
) clean
68 @cd soin
&& $(MAKE
) clean
69 @
test ! -d shape ||
(cd shape
&& $(MAKE
) clean)