tmac.gr: specifying graph aspect ratio
[neatroff_make.git] / Makefile
blob2d145ca56cfe8792f576ff0fd3e2d488b88f6659
1 # Neatroff top-level Makefile
3 # Installation prefix
4 PREFIX = $(PWD)
5 # Input fonts directory
6 FONTS = $(PREFIX)/fonts
7 # Output device directory
8 FDIR = $(PREFIX)/
9 # Macro directory
10 MDIR = $(PREFIX)/tmac
12 all: help
14 help:
15 @echo "Neatroff top-level makefile"
16 @echo
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"
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 @test -d soin || (wget -c http://litcave.rudi.ir/soin.tar.gz && tar xf soin.tar.gz)
32 @cd fonts && sh ./fonts.sh
34 init_fa: init
35 @test -d shape || (wget -c http://litcave.rudi.ir/shape.tar.gz && tar xf shape.tar.gz)
36 @cd fonts && sh ./fonts_fa.sh
38 pull:
39 cd neatroff && git pull
40 cd neatpost && git pull
41 cd neatmkfn && git pull
42 cd neateqn && git pull
43 cd neatrefer && git pull
44 cd troff && git pull
45 git pull
47 neat:
48 @cd neatroff && $(MAKE) FDIR="$(FDIR)" MDIR="$(MDIR)"
49 @cd neatpost && $(MAKE) FDIR="$(FDIR)" MDIR="$(MDIR)"
50 @cd neateqn && $(MAKE)
51 @cd neatmkfn && $(MAKE)
52 @cd neatrefer && $(MAKE)
53 @cd troff/pic && $(MAKE)
54 @cd troff/tbl && $(MAKE)
55 @cd soin && $(MAKE)
56 @test ! -d shape || (cd shape && $(MAKE))
57 @cd neatmkfn && ./gen.sh $(FONTS) $(FDIR)/devutf >/dev/null
59 clean:
60 @cd neatroff && $(MAKE) clean
61 @cd neatpost && $(MAKE) clean
62 @cd neateqn && $(MAKE) clean
63 @cd neatmkfn && $(MAKE) clean
64 @cd neatrefer && $(MAKE) clean
65 @cd troff/tbl && $(MAKE) clean
66 @cd troff/pic && $(MAKE) clean
67 @cd soin && $(MAKE) clean
68 @test ! -d shape || (cd shape && $(MAKE) clean)
69 @rm -r $(FDIR)/devutf