fonts: fonts.sh to retrieve GS and CM fonts
[neatroff_make.git] / Makefile
blobd2a64e08eafd9919818a4e6c115f301c09653795
1 # Neatroff top-level Makefile
3 # Installation prefix
4 PREFIX = $(PWD)
5 # Input fonts directory; containing ghostscript-fonts and other fonts
6 FONTS = $(PREFIX)/fonts
8 # Output device directory
9 FDIR = $(PREFIX)/
10 # Macro directory
11 MDIR = $(PREFIX)/tmac
13 all: help
15 help:
16 @echo "Neatroff top-level makefile"
17 @echo
18 @echo " init Initialise git repositories and fonts"
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"
22 @echo
24 init:
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 @cd fonts && sh ./fonts.sh
33 pull:
34 cd neatroff && git pull
35 cd neatpost && git pull
36 cd neatmkfn && git pull
37 cd neateqn && git pull
38 cd neatrefer && git pull
39 cd troff && git pull
40 git pull
42 neat:
43 @cd neatroff && $(MAKE) FDIR="$(FDIR)" MDIR="$(MDIR)"
44 @cd neatpost && $(MAKE) FDIR="$(FDIR)" MDIR="$(MDIR)"
45 @cd neateqn && $(MAKE)
46 @cd neatmkfn && $(MAKE)
47 @cd neatrefer && $(MAKE)
48 @cd troff/pic && $(MAKE)
49 @cd troff/tbl && $(MAKE)
50 @cd neatmkfn && ./gen.sh $(FONTS) $(FDIR)/devutf >/dev/null
52 clean:
53 cd neatroff && $(MAKE) clean
54 cd neatpost && $(MAKE) clean
55 cd neateqn && $(MAKE) clean
56 cd neatmkfn && $(MAKE) clean
57 cd neatrefer && $(MAKE) clean
58 cd troff/tbl && $(MAKE) clean
59 cd troff/pic && $(MAKE) clean
60 @rm -r $(FDIR)/devutf