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
18 @cd neatroff
&& $(MAKE
) FDIR
="$(FDIR)" MDIR
="$(MDIR)"
19 @cd neatpost
&& $(MAKE
) FDIR
="$(FDIR)" MDIR
="$(MDIR)"
20 @cd neateqn
&& $(MAKE
)
21 @cd neatmkfn
&& $(MAKE
)
22 @cd neatrefer
&& $(MAKE
)
23 @cd troff
/pic
&& $(MAKE
)
24 @cd troff
/tbl
&& $(MAKE
)
25 @
test -d devutf ||
(cd neatmkfn
&& .
/gen.sh
$(GSFONTS
) ..
/devutf
)
28 @
test -d neatroff || git clone git
://repo.or.cz
/neatroff.git
29 @
test -d neatpost || git clone git
://repo.or.cz
/neatpost.git
30 @
test -d neatmkfn || git clone git
://repo.or.cz
/neatmkfn.git
31 @
test -d neateqn || git clone git
://repo.or.cz
/neateqn.git
32 @
test -d neatrefer || git clone git
://repo.or.cz
/neatrefer.git
33 @
test -d troff || git clone git
://repo.or.cz
/troff.git
36 cd neatroff
&& git pull
37 cd neatpost
&& git pull
38 cd neatmkfn
&& git pull
39 cd neateqn
&& git pull
40 cd neatrefer
&& git pull
45 $(INSTALL
) neatroff
/roff
$(BDIR
)/neatroff
46 $(INSTALL
) neatpost
/post
$(BDIR
)/neatpost
47 $(INSTALL
) neateqn
/eqn
$(BDIR
)/neateqn
48 $(INSTALL
) neatmkfn
/mkfn
$(BDIR
)/neatmkfn
49 $(INSTALL
) neatrefer
/refer
$(BDIR
)/neatrefer
50 $(INSTALL
) troff
/tbl
/tbl
$(BDIR
)/tbl9
51 $(INSTALL
) troff
/pic
/pic
$(BDIR
)/pic9
53 mkdir
-p
-m
755 $(MDIR
)
56 chmod
644 $(MDIR
)/*.
* $(MDIR
)/*/*
58 mkdir
-p
-m
755 $(FDIR
)/devutf
59 cp
-r devutf
/* $(FDIR
)/devutf
/
60 chmod
644 $(FDIR
)/devutf
/*
63 @echo
"Neatroff top-level makefile"
65 @echo
" all Compile the programs"
66 @echo
" install Install the executables and data"
67 @echo
" clean Remove generated files"
69 @echo
" init Initialise git repositories (git clone)"
70 @echo
" pull Update git repositories (git pull)"
73 cd neatroff
&& $(MAKE
) clean
74 cd neatpost
&& $(MAKE
) clean
75 cd neateqn
&& $(MAKE
) clean
76 cd neatmkfn
&& $(MAKE
) clean
77 cd neatrefer
&& $(MAKE
) clean
78 cd troff
/tbl
&& $(MAKE
) clean
79 cd troff
/pic
&& $(MAKE
) clean