From 53953235d8f9ca0545dc764d8a3c5125453eed2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Mon, 8 Apr 2002 00:07:07 +0000 Subject: [PATCH] now distcheck should work... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3940 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/Makefile.am | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/Makefile.am b/lib/Makefile.am index d263239173..ea5c5ea4d3 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -52,6 +52,7 @@ libinstalldirs: install-xfonts: test -f xfonts/fonts.dir || exit 0 ; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/xfonts ; \ files=`sed -e 's/^[0-9]*$$//' -e 's/^\([^ ]*\) .*$$/\1/' xfonts/fonts.dir` ; \ for i in $${files} ; do \ ln -sf `kpsewhich $$i` $(DESTDIR)$(pkgdatadir)/xfonts/$$i ; \ @@ -59,6 +60,9 @@ install-xfonts: $(INSTALL_DATA) xfonts/fonts.dir $(DESTDIR)$(pkgdatadir)/xfonts/fonts.dir ; \ $(INSTALL_DATA) xfonts/fonts.scale $(DESTDIR)$(pkgdatadir)/xfonts/fonts.scale +uninstall-xfonts: + rm -rf $(DESTDIR)$(pkgdatadir)/xfonts + install-data-local: libinstalldirs install-xfonts files=`cd $(srcdir) ; echo $(LIBINSTFILES)` ; \ for i in $${files} ; do \ @@ -71,15 +75,15 @@ install-exec-local: libinstalldirs $(INSTALL_SCRIPT) $(srcdir)/$$i $(DESTDIR)$(pkgdatadir)/$$i ; \ done -uninstall-local: +uninstall-local: uninstall-xfonts @$(NORMAL_UNINSTALL) files=`cd $(srcdir) ; echo $(LIBINSTFILES) $(LYXSCRIPTS)` ; \ for i in $${files} ; do \ - rm -f $(pkgdatadir)/$$i ; \ + rm -f $(DESTDIR)$(pkgdatadir)/$$i ; \ done ; \ dirs=`cd $(srcdir) ; echo $(LYXLIBDIRS)` ; \ for i in $${dirs} ; do \ - rm -rf $(pkgdatadir)/$$i ; \ + rm -rf $(DESTDIR)$(pkgdatadir)/$$i ; \ done dist-hook: