1 # Neatroff top-level makefile
5 # Input fonts directory; containing ghostscript-fonts and other fonts
6 GSFONTS
= /usr
/share
/ghostscript
/fonts
8 # Output device directory
9 FDIR
= $(PREFIX
)/share
/neatroff
/font
11 MDIR
= $(PREFIX
)/share
/neatroff
/tmac
12 # Directory to install the executables
16 cd neatroff
&& $(MAKE
) FDIR
="$(FDIR)" MDIR
="$(MDIR)"
17 cd neatpost
&& $(MAKE
) FDIR
="$(FDIR)" MDIR
="$(MDIR)"
19 cd neatmkfn
&& $(MAKE
)
20 cd neatrefer
&& $(MAKE
)
21 test -d devutf ||
$(MAKE
) gen
24 test -d neatroff || git clone git
://repo.or.cz
/neatroff.git
25 test -d neatpost || git clone git
://repo.or.cz
/neatpost.git
26 test -d neatmkfn || git clone git
://repo.or.cz
/neatmkfn.git
27 test -d neateqn || git clone git
://repo.or.cz
/neateqn.git
28 test -d neatrefer || git clone git
://repo.or.cz
/neatrefer.git
31 cd neatroff
&& git pull
32 cd neatpost
&& git pull
33 cd neatmkfn
&& git pull
34 cd neateqn
&& git pull
35 cd neatrefer
&& git pull
38 cd neatmkfn
&& .
/gen.sh
$(GSFONTS
) ..
/devutf
42 cp neatroff
/roff
$(BDIR
)/neatroff
43 cp neatpost
/post
$(BDIR
)/neatpost
44 cp neateqn
/eqn
$(BDIR
)/neateqn
45 cp neatmkfn
/mkfn
$(BDIR
)/neatmkfn
46 cp neatrefer
/refer
$(BDIR
)/neatrefer
53 @echo
"Neatroff top-level makefile"
55 @echo
" init Initialise git repositories"
56 @echo
" pull Pull git repositories"
57 @echo
" all Compile the programs"
58 @echo
" gen Regenerate font descriptions"
59 @echo
" install Install the executables and data"
60 @echo
" clean Remove generated files"
63 cd neatroff
&& $(MAKE
) clean
64 cd neatpost
&& $(MAKE
) clean
65 cd neateqn
&& $(MAKE
) clean
66 cd neatmkfn
&& $(MAKE
) clean
67 cd neatrefer
&& $(MAKE
) clean