blob: 29b9644c1ac091754e31f4960aa1aeadb4b2ab72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
mandir = @mandir@
includedir = @includedir@
sharedir = $(prefix)/share/fontforge
srcdir = @srcdir@
top_builddir = .
LIBTOOL = @LIBTOOL@
INSTALL = @INSTALL@
all: fontforge
libs: libgunicode libgdraw
fontforge: libgunicode libgdraw
( cd fontforge ; $(MAKE) )
libgunicode:
( cd Unicode ; $(MAKE) )
libgdraw:
( cd gdraw ; $(MAKE) )
clean:
( cd fontforge ; $(MAKE) clean )
( cd Unicode ; $(MAKE) clean )
( cd gdraw ; $(MAKE) clean )
-rm -rf .libs
distclean cleaner:
( cd fontforge ; $(MAKE) distclean )
( cd Unicode ; $(MAKE) distclean )
( cd gdraw ; $(MAKE) distclean )
-rm -rf .libs
-rm Makefile config.cache config.log config.status libtool
install_libs: libs
# You may need to be root to do the install
mkdir -p $(libdir)
#-rm $(libdir)/libgdraw.so* $(libdir)/libgunicode.so.*
$(LIBTOOL) $(INSTALL) -c libgdraw.la $(libdir)/libgdraw.la
$(LIBTOOL) $(INSTALL) -c libgunicode.la $(libdir)/libgunicode.la
#cp .libs/*.so.*.* $(libdir)
$(LIBTOOL) --finish $(libdir)
install: $(sharedir) all install_libs
# You may need to be root to do the install
mkdir -p $(bindir)
mkdir -p $(mandir)/man1
mkdir -p $(sharedir)
$(LIBTOOL) $(INSTALL) -c fontforge/fontforge $(bindir)
$(LIBTOOL) $(INSTALL) -c fontforge/sfddiff $(bindir)
cp fontforge/pfaedit-*.ui $(sharedir)
#The next line will fail for most installs. If you have downloaded the cidmaps
# this will install them. If you haven't it won't. You only need the cidmaps
# if you are editing CID keyed files (and even then you can live without them
-cp $(srcdir)/cidmap/*.cidmap $(sharedir) >/dev/null 2>&1
cp $(srcdir)/fontforge/fontforge.1 $(mandir)/man1
cp $(srcdir)/fontforge/sfddiff.1 $(mandir)/man1
uninstall:
-rm $(bindir)/fontforge
-rm $(bindir)/sfddiff
-rm $(sharedir)/pfaedit-*.ui
-rm $(mandir)/man1/fontforge.1
-rm $(mandir)/man1/sfddiff.1
-rm $(libdir)/libgdraw.so*
-rm $(libdir)/libgunicode.so*
-rm $(sharedir)/*.cidmap
$(sharedir):
mkdir -p $(sharedir)
|