prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ mandir = @mandir@ includedir = @includedir@ sharedir = $(prefix)/share/fontforge docdir = $(prefix)/share/doc/fontforge localedir = $(prefix)/share/locale srcdir = @srcdir@ top_builddir = . LIBTOOL = @LIBTOOL@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ all: fontforge libs: libgunicode libgutils @GDRAW_LIB@ fontforge: libgunicode libgutils @GDRAW_LIB@ pos ( cd fontforge ; $(MAKE) ) libgunicode: ( cd Unicode ; $(MAKE) ) libgutils: ( cd gutils ; $(MAKE) ) libgdraw: ( cd gdraw ; $(MAKE) ) pos: -ln -s $(srcdir)/po/*.po po ( cd po ; $(MAKE) ) clean: ( cd fontforge ; $(MAKE) clean ) ( cd Unicode ; $(MAKE) clean ) ( cd gutils ; $(MAKE) clean ) ( cd gdraw ; $(MAKE) clean ) ( cd plugins ; $(MAKE) clean ) -( cd po ; rm *.mo ) -( cd pyhook ; rm -rf build dist ) -rm -rf .libs distclean cleaner: ( cd fontforge ; $(MAKE) distclean ) ( cd Unicode ; $(MAKE) distclean ) ( cd gutils ; $(MAKE) distclean ) ( cd gdraw ; $(MAKE) distclean ) ( cd plugins ; $(MAKE) distclean ) -( cd po ; rm *.mo Makefile* ) -( cd pyhook ; rm -rf build dist setup.py ) -rm -rf .libs -rm Makefile config.cache config.log config.status libtool fontforge.pc systemspecific install_libs: libs # You may need to be root to do the install mkdir -p $(DESTDIR)$(libdir) #-rm $(DESTDIR)$(libdir)/libgdraw.so* $(DESTDIR)$(libdir)/libgunicode.so.* $(LIBTOOL) --mode=install $(INSTALL) -c libgunicode.la $(DESTDIR)$(libdir)/libgunicode.la $(LIBTOOL) --mode=install $(INSTALL) -c libgutils.la $(DESTDIR)$(libdir)/libgutils.la #We don't build gdraw if no X if test -r libgdraw.la ; then $(LIBTOOL) --mode=install $(INSTALL) -c libgdraw.la $(DESTDIR)$(libdir)/libgdraw.la ; fi #We don't always build libfontforge if test -r libfontforge.la ; then $(LIBTOOL) --mode=install $(INSTALL) -c libfontforge.la $(DESTDIR)$(libdir)/libfontforge.la ; fi $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir) mkdir -p $(prefix)/libdata/pkgconfig $(INSTALL_DATA) fontforge.pc $(prefix)/libdata/pkgconfig install_incs: mkdir -p $(DESTDIR)$(includedir)/fontforge $(INSTALL_DATA) $(srcdir)/inc/*.h $(DESTDIR)$(includedir)/fontforge # $(INSTALL_DATA) `grep -L GGadget $(srcdir)/fontforge/*.h` $(DESTDIR)$(includedir)/fontforge ( for file in $(srcdir)/fontforge/*.h ; do if grep GGadget $$file >/dev/null 2>&1 ; then echo pointless >/dev/null ; else $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/fontforge ; fi ; done ) install_docs: mkdir -p $(DESTDIR)$(docdir) mkdir -p $(DESTDIR)$(docdir)/flags $(DESTDIR)$(docdir)/ja #explicit use of sh to make sure we don't invoke csh with different "if" syntax -sh -c "if test -d $(srcdir)/htdocs/ja >/dev/null ; then mkdir -p $(DESTDIR)$(docdir)/ja ; fi" -$(INSTALL_DATA) $(srcdir)/htdocs/*.{html,png,gif,pdf} $(DESTDIR)$(docdir) -$(INSTALL_DATA) $(srcdir)/htdocs/flags/* $(DESTDIR)$(docdir)/flags -$(INSTALL_DATA) $(srcdir)/htdocs/ja/* $(DESTDIR)$(docdir)/ja install_po: ( cd po ; make install ) install_prog: mkdir -p $(DESTDIR)$(bindir) mkdir -p $(DESTDIR)$(mandir)/man1 mkdir -p $(DESTDIR)$(sharedir) $(LIBTOOL) --mode=install $(INSTALL) -c fontforge/fontforge $(DESTDIR)$(bindir) $(LIBTOOL) --mode=install $(INSTALL) -c fontforge/sfddiff $(DESTDIR)$(bindir) $(LIBTOOL) --mode=install $(INSTALL) -c fontforge/fontimage $(DESTDIR)$(bindir) $(LIBTOOL) --mode=install $(INSTALL) -c fontforge/fontlint $(DESTDIR)$(bindir) # -rm -f $(DESTDIR)$(bindir)/pfaedit # (cd $(DESTDIR)$(bindir) ; ln -s fontforge pfaedit) # $(INSTALL_DATA) fontforge/pfaedit-*.ui $(DESTDIR)$(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 -$(INSTALL_DATA) $(srcdir)/cidmap/*.cidmap $(DESTDIR)$(sharedir) >/dev/null 2>&1 $(INSTALL_DATA) $(srcdir)/fontforge/fontforge.1 $(DESTDIR)$(mandir)/man1 $(INSTALL_DATA) $(srcdir)/fontforge/sfddiff.1 $(DESTDIR)$(mandir)/man1 $(INSTALL_DATA) $(srcdir)/fontforge/fontimage.1 $(DESTDIR)$(mandir)/man1 $(INSTALL_DATA) $(srcdir)/fontforge/fontlint.1 $(DESTDIR)$(mandir)/man1 install: $(DESTDIR)$(sharedir) all install_libs install_incs install_po install_prog # You may need to be root to do the install #explicit use of sh to make sure we don't invoke csh with different "if" syntax sh -c "if test -d $(srcdir)/htdocs >/dev/null ; then $(MAKE) install_docs ; fi" sh < systemspecific #we don't always create a setup.py -(cd pyhook ; if test -r setup.py ; then python setup.py install ; fi ) install_py: $(DESTDIR)$(sharedir) all install_libs install_incs install_po install_prog # You may need to be root to do the install #explicit use of sh to make sure we don't invoke csh with different "if" syntax sh -c "if test -d $(srcdir)/htdocs >/dev/null ; then $(MAKE) install_docs ; fi" sh < systemspecific -(cd pyhook ; python setup.py bdist --formats=gztar ; cp dist/fontforge-*.tar.gz $(DESTDIR)/tmp ) uninstall: -rm $(DESTDIR)$(bindir)/fontforge -rm $(DESTDIR)$(bindir)/sfddiff -rm $(DESTDIR)$(bindir)/fontimage -rm $(DESTDIR)$(bindir)/fontlint -rm $(DESTDIR)$(sharedir)/pfaedit-*.ui -rm $(DESTDIR)$(localedir)/*/LC_MESSAGES/FontForge.mo -rm $(DESTDIR)$(mandir)/man1/fontimage.1 -rm $(DESTDIR)$(mandir)/man1/fontforge.1 -rm $(DESTDIR)$(mandir)/man1/sfddiff.1 -rm $(DESTDIR)$(mandir)/man1/fontlint.1 -rm $(DESTDIR)$(libdir)/libgdraw.* -rm $(DESTDIR)$(libdir)/libgutils.* -rm $(DESTDIR)$(libdir)/libgunicode.* -rm $(DESTDIR)$(libdir)/libfontforge.* -rm $(DESTDIR)$(sharedir)/*.cidmap -rm $(DESTDIR)$(includedir)/fontforge/*.h -rm -rf $(DESTDIR)$(docdir)/* -rm $(DESTDIR)$(libdir)/pkgconfig/fontforge.pc $(DESTDIR)$(sharedir): mkdir -p $(DESTDIR)$(sharedir)