1999-09-27 18:44:28 +00:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
2000-06-12 11:27:15 +00:00
|
|
|
DISTCLEANFILES = *.orig *.rej *~ *.bak core textclass.lst packages.lst \
|
2002-04-26 10:32:23 +00:00
|
|
|
lyxrc.defaults doc/LyXConfig.lyx doc/LaTeXConfig.lyx
|
2002-03-19 21:42:50 +00:00
|
|
|
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
|
2000-08-14 05:24:35 +00:00
|
|
|
SUBDIRS = reLyX
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2001-09-02 11:40:33 +00:00
|
|
|
CHMOD=chmod
|
|
|
|
|
1999-10-13 21:01:03 +00:00
|
|
|
BIND = bind/*.bind
|
1999-09-27 18:44:28 +00:00
|
|
|
CLIPART = clipart/*.eps
|
2000-06-12 11:27:15 +00:00
|
|
|
DOCDIST = doc/LyXConfig.lyx*
|
2000-11-10 17:29:47 +00:00
|
|
|
DOCINST = doc/*.lyx doc/*.eps doc/*.lyx.in
|
2001-11-04 07:29:40 +00:00
|
|
|
EXAMPLES = examples/*.lyx examples/*.fen
|
2001-10-10 16:45:05 +00:00
|
|
|
HELP = help/*.hlp
|
2002-08-29 08:31:52 +00:00
|
|
|
IMAGES = images/*.xpm images/math/*.xpm
|
1999-09-27 18:44:28 +00:00
|
|
|
KBD = kbd/*.kmap kbd/*.cdef
|
2002-03-21 19:26:18 +00:00
|
|
|
LAYOUT = layouts/*.layout layouts/*.inc
|
2002-09-25 12:45:02 +00:00
|
|
|
LYXSCRIPTS = configure configure.cmd scripts/* lyx2lyx/*
|
1999-09-27 18:44:28 +00:00
|
|
|
TEMPL = templates/*.lyx
|
2001-10-31 15:19:49 +00:00
|
|
|
TEXSUPPORT = tex/*.cls tex/*.sty
|
2000-07-24 13:53:19 +00:00
|
|
|
UI = ui/*.ui
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2001-10-10 16:45:05 +00:00
|
|
|
LIBINSTFILES = $(BIND) $(CLIPART) $(DOCINST) $(EXAMPLES) $(HELP) $(IMAGES) \
|
|
|
|
$(KBD) $(LAYOUT) $(TEMPL) $(TEXSUPPORT) $(UI)
|
1999-10-14 00:51:48 +00:00
|
|
|
|
2001-10-10 16:45:05 +00:00
|
|
|
LIBDISTFILES = $(BIND) $(CLIPART) $(DOCDIST) $(EXAMPLES) $(HELP) $(IMAGES) \
|
|
|
|
$(KBD) $(LAYOUT) $(TEMPL) $(UI) $(TEXSUPPORT) $(LYXSCRIPTS)
|
1999-10-14 00:51:48 +00:00
|
|
|
|
1999-10-12 14:08:52 +00:00
|
|
|
pkgdata_DATA = lyxrc.example CREDITS chkconfig.ltx lyxrc.defaults \
|
2002-03-21 19:26:18 +00:00
|
|
|
textclass.lst packages.lst external_templates \
|
|
|
|
encodings languages symbols
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2002-09-25 12:45:02 +00:00
|
|
|
LYXLIBDIRS = bind clipart doc examples help images images/math kbd layouts lyx2lyx scripts \
|
2002-04-07 15:34:34 +00:00
|
|
|
templates tex ui
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-10-13 21:01:03 +00:00
|
|
|
EXTRA_DIST = CREDITS chkconfig.ltx configure.cmd lyxrc.example \
|
2002-03-19 21:42:50 +00:00
|
|
|
external_templates $(LYXLIBDIRS) \
|
2002-03-06 14:40:56 +00:00
|
|
|
encodings languages symbols configure configure.m4
|
|
|
|
|
|
|
|
$(srcdir)/configure: $(srcdir)/configure.m4
|
|
|
|
$(M4) $< > $@
|
|
|
|
$(CHMOD) 755 $@
|
|
|
|
|
|
|
|
lyxrc.defaults: $(srcdir)/configure
|
2002-03-07 15:29:40 +00:00
|
|
|
$(SHELL) $<
|
1999-10-14 00:51:48 +00:00
|
|
|
|
|
|
|
libinstalldirs:
|
|
|
|
for dir in $(LYXLIBDIRS) ; do \
|
2000-03-27 15:34:41 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$$dir ; \
|
1999-10-14 00:51:48 +00:00
|
|
|
done
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2002-03-19 22:49:56 +00:00
|
|
|
install-xfonts:
|
2002-03-25 23:29:30 +00:00
|
|
|
test -f xfonts/fonts.dir || exit 0 ; \
|
2002-04-08 00:07:07 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/xfonts ; \
|
2002-04-02 11:29:43 +00:00
|
|
|
files=`sed -e 's/^[0-9]*$$//' -e 's/^\([^ ]*\) .*$$/\1/' xfonts/fonts.dir` ; \
|
2002-03-25 23:29:30 +00:00
|
|
|
for i in $${files} ; do \
|
2002-03-21 19:26:18 +00:00
|
|
|
ln -sf `kpsewhich $$i` $(DESTDIR)$(pkgdatadir)/xfonts/$$i ; \
|
2002-03-25 23:29:30 +00:00
|
|
|
done ; \
|
|
|
|
$(INSTALL_DATA) xfonts/fonts.dir $(DESTDIR)$(pkgdatadir)/xfonts/fonts.dir ; \
|
2002-03-19 22:49:56 +00:00
|
|
|
$(INSTALL_DATA) xfonts/fonts.scale $(DESTDIR)$(pkgdatadir)/xfonts/fonts.scale
|
|
|
|
|
2002-04-08 00:07:07 +00:00
|
|
|
uninstall-xfonts:
|
|
|
|
rm -rf $(DESTDIR)$(pkgdatadir)/xfonts
|
|
|
|
|
2002-04-26 10:32:23 +00:00
|
|
|
distclean-local:
|
|
|
|
rm -rf xfonts
|
|
|
|
|
2002-03-19 22:49:56 +00:00
|
|
|
install-data-local: libinstalldirs install-xfonts
|
2002-03-25 11:15:27 +00:00
|
|
|
files=`cd $(srcdir) ; echo $(LIBINSTFILES)` ; \
|
2002-03-25 23:29:30 +00:00
|
|
|
for i in $${files} ; do \
|
2002-03-25 11:15:27 +00:00
|
|
|
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgdatadir)/$$i ; \
|
1999-10-13 21:01:03 +00:00
|
|
|
done
|
|
|
|
|
2002-03-21 19:26:18 +00:00
|
|
|
install-exec-local: libinstalldirs
|
2002-03-25 11:15:27 +00:00
|
|
|
files=`cd $(srcdir) ; echo $(LYXSCRIPTS)` ; \
|
2002-03-25 23:29:30 +00:00
|
|
|
for i in $${files} ; do \
|
2002-03-25 11:15:27 +00:00
|
|
|
$(INSTALL_SCRIPT) $(srcdir)/$$i $(DESTDIR)$(pkgdatadir)/$$i ; \
|
2001-02-02 16:48:59 +00:00
|
|
|
done
|
|
|
|
|
2002-04-08 00:07:07 +00:00
|
|
|
uninstall-local: uninstall-xfonts
|
2000-06-12 11:27:15 +00:00
|
|
|
@$(NORMAL_UNINSTALL)
|
2002-03-25 11:15:27 +00:00
|
|
|
files=`cd $(srcdir) ; echo $(LIBINSTFILES) $(LYXSCRIPTS)` ; \
|
2002-03-25 23:29:30 +00:00
|
|
|
for i in $${files} ; do \
|
2002-04-08 00:07:07 +00:00
|
|
|
rm -f $(DESTDIR)$(pkgdatadir)/$$i ; \
|
2001-03-01 15:03:52 +00:00
|
|
|
done ; \
|
2002-03-25 11:15:27 +00:00
|
|
|
dirs=`cd $(srcdir) ; echo $(LYXLIBDIRS)` ; \
|
2002-03-25 23:29:30 +00:00
|
|
|
for i in $${dirs} ; do \
|
2002-04-08 00:07:07 +00:00
|
|
|
rm -rf $(DESTDIR)$(pkgdatadir)/$$i ; \
|
2000-06-12 11:27:15 +00:00
|
|
|
done
|
|
|
|
|
1999-10-13 21:01:03 +00:00
|
|
|
dist-hook:
|
2002-03-25 11:15:27 +00:00
|
|
|
cd $(distdir) ; rm -rf `find . -name \*CVS\*` ; \
|
2001-10-30 17:05:57 +00:00
|
|
|
rm -rf doc/.cvsignore; \
|
2001-07-24 23:41:49 +00:00
|
|
|
[ -f doc/UserGuide.lyx ] || { cvs -Q export -r HEAD -d doc lyxdoc || \
|
2000-01-08 21:02:58 +00:00
|
|
|
echo "WARNING: Unable to get LyX Documentation from CVS!" ; true ; }
|