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)"
18 @cd neateqn
&& $(MAKE
)
19 @cd neatmkfn
&& $(MAKE
)
20 @cd neatrefer
&& $(MAKE
)
21 @
test -d devutf ||
(cd neatmkfn
&& .
/gen.sh
$(GSFONTS
) ..
/devutf
)
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
39 cp neatroff
/roff
$(BDIR
)/neatroff
40 cp neatpost
/post
$(BDIR
)/neatpost
41 cp neateqn
/eqn
$(BDIR
)/neateqn
42 cp neatmkfn
/mkfn
$(BDIR
)/neatmkfn
43 cp neatrefer
/refer
$(BDIR
)/neatrefer
44 chmod
755 $(BDIR
)/neat
{roff
,post
,eqn
,mkfn
,refer
}
46 mkdir
-p
-m
755 $(MDIR
)
49 chmod
644 $(MDIR
)/*.
* $(MDIR
)/*/*
51 mkdir
-p
-m
755 $(FDIR
)/devutf
52 cp
-r devutf
/* $(FDIR
)/devutf
/
53 chmod
644 $(FDIR
)/devutf
/*
56 @echo
"Neatroff top-level makefile"
58 @echo
" init Initialise git repositories"
59 @echo
" pull Pull git repositories"
60 @echo
" all Compile the programs"
61 @echo
" install Install the executables and data"
62 @echo
" clean Remove generated files"
65 cd neatroff
&& $(MAKE
) clean
66 cd neatpost
&& $(MAKE
) clean
67 cd neateqn
&& $(MAKE
) clean
68 cd neatmkfn
&& $(MAKE
) clean
69 cd neatrefer
&& $(MAKE
) clean