mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +00:00
ba61c3aa4c
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2859 a592a061-630c-0410-9148-cb99ea01b6c8
82 lines
2.4 KiB
Makefile
82 lines
2.4 KiB
Makefile
AUTOMAKE_OPTIONS = foreign
|
|
DISTCLEANFILES = *.orig *.rej *~ *.bak core textclass.lst packages.lst \
|
|
lyxrc.defaults doc/LyXConfig.lyx
|
|
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in listerrors
|
|
SUBDIRS = reLyX
|
|
bin_SCRIPTS = listerrors
|
|
|
|
M4=m4
|
|
CHMOD=chmod
|
|
|
|
BIND = bind/*.bind
|
|
CLIPART = clipart/*.eps
|
|
DOCDIST = doc/LyXConfig.lyx*
|
|
DOCINST = doc/*.lyx doc/*.eps doc/*.lyx.in
|
|
EXAMPLES = examples/*.lyx
|
|
HELP = help/*.hlp
|
|
IMAGES = images/*.xpm
|
|
KBD = kbd/*.kmap kbd/*.cdef
|
|
LAYOUT = layouts/*.layout layouts/*.inc
|
|
LYXSCRIPTS = configure configure.cmd scripts/*
|
|
TEMPL = templates/*.lyx
|
|
TEXSUPPORT = tex/*.cls
|
|
UI = ui/*.ui
|
|
|
|
configure: configure.m4
|
|
$(M4) $< > $@
|
|
$(CHMOD) 755 $@
|
|
|
|
LIBINSTFILES = $(BIND) $(CLIPART) $(DOCINST) $(EXAMPLES) $(HELP) $(IMAGES) \
|
|
$(KBD) $(LAYOUT) $(TEMPL) $(TEXSUPPORT) $(UI)
|
|
|
|
LIBDISTFILES = $(BIND) $(CLIPART) $(DOCDIST) $(EXAMPLES) $(HELP) $(IMAGES) \
|
|
$(KBD) $(LAYOUT) $(TEMPL) $(UI) $(TEXSUPPORT) $(LYXSCRIPTS)
|
|
|
|
pkgdata_DATA = lyxrc.example CREDITS chkconfig.ltx lyxrc.defaults \
|
|
textclass.lst packages.lst external_templates \
|
|
encodings languages symbols
|
|
|
|
LYXLIBDIRS = bind clipart doc examples help images kbd layouts scripts \
|
|
templates tex ui
|
|
|
|
EXTRA_DIST = CREDITS chkconfig.ltx configure.cmd lyxrc.example \
|
|
external_templates $(LYXLIBDIRS) build-listerrors \
|
|
encodings languages symbols
|
|
|
|
libinstalldirs:
|
|
for dir in $(LYXLIBDIRS) ; do \
|
|
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$$dir ; \
|
|
done
|
|
|
|
install-data-local: libinstalldirs
|
|
files=`cd ${srcdir} ; echo $(LIBINSTFILES)` ; \
|
|
for i in $${files} ; do \
|
|
$(INSTALL_DATA) ${srcdir}/$$i $(DESTDIR)$(pkgdatadir)/$$i ; \
|
|
done
|
|
|
|
install-exec-local: libinstalldirs
|
|
files=`cd ${srcdir} ; echo $(LYXSCRIPTS)` ; \
|
|
for i in $${files} ; do \
|
|
$(INSTALL_SCRIPT) ${srcdir}/$$i $(DESTDIR)$(pkgdatadir)/$$i ; \
|
|
done
|
|
|
|
uninstall-local:
|
|
@$(NORMAL_UNINSTALL)
|
|
files=`cd ${srcdir} ; echo $(LIBINSTFILES) $(LYXSCRIPTS)` ; \
|
|
for i in $${files} ; do \
|
|
rm -f $(pkgdatadir)/$$i ; \
|
|
done ; \
|
|
dirs=`cd ${srcdir} ; echo $(LYXLIBDIRS)` ; \
|
|
for i in $${dirs} ; do \
|
|
rm -rf $(pkgdatadir)/$$i ; \
|
|
done
|
|
|
|
dist-hook:
|
|
cd ${distdir} ; rm -rf `find . -name \*CVS\*` ; \
|
|
rm -rf doc/BUGS.lyx doc/.cvsignore; \
|
|
[ -f doc/UserGuide.lyx ] || { cvs -Q export -r HEAD -d doc lyxdoc || \
|
|
echo "WARNING: Unable to get LyX Documentation from CVS!" ; true ; }
|
|
|
|
listerrors: examples/Literate.lyx
|
|
${srcdir}/build-listerrors ${srcdir}
|