mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
makefile cleanup, and avoid some warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3821 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
545777433a
commit
c8089f8bf9
@ -31,7 +31,7 @@ dist-hook:
|
||||
|
||||
rpmdist: dist
|
||||
ln -s lib/images/lyx.xpm . ; \
|
||||
rpm -ta ${PACKAGE}-${VERSION}.tar.gz ; saved_status=$$?; \
|
||||
rpm -ta $(PACKAGE)-$(VERSION).tar.gz ; saved_status=$$?; \
|
||||
rm lyx.xpm; exit $$saved_status
|
||||
|
||||
|
||||
|
@ -8,3 +8,5 @@ ETAGS_ARGS = --lang=c++
|
||||
|
||||
BOOST_INCLUDES = -I$(top_srcdir)/boost
|
||||
SIGC_INCLUDES = -I$(top_srcdir) -I$(top_builddir)
|
||||
|
||||
LIBS =
|
||||
|
@ -52,37 +52,37 @@ libinstalldirs:
|
||||
|
||||
install-xfonts:
|
||||
files=`sed -e 's/^\([^ ]*\) .*$$/\1/' xfonts/fonts.dir` ; \
|
||||
for i in $${files} ; do \
|
||||
for i in $$(files) ; do \
|
||||
ln -sf `kpsewhich $$i` $(DESTDIR)$(pkgdatadir)/xfonts/$$i ; \
|
||||
done
|
||||
$(INSTALL_DATA) xfonts/fonts.dir $(DESTDIR)$(pkgdatadir)/xfonts/fonts.dir
|
||||
$(INSTALL_DATA) xfonts/fonts.scale $(DESTDIR)$(pkgdatadir)/xfonts/fonts.scale
|
||||
|
||||
install-data-local: libinstalldirs install-xfonts
|
||||
files=`cd ${srcdir} ; echo $(LIBINSTFILES)` ; \
|
||||
for i in $${files} ; do \
|
||||
$(INSTALL_DATA) ${srcdir}/$$i $(DESTDIR)$(pkgdatadir)/$$i ; \
|
||||
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 ; \
|
||||
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 \
|
||||
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 \
|
||||
dirs=`cd $(srcdir) ; echo $(LYXLIBDIRS)` ; \
|
||||
for i in $$(dirs) ; do \
|
||||
rm -rf $(pkgdatadir)/$$i ; \
|
||||
done
|
||||
|
||||
dist-hook:
|
||||
cd ${distdir} ; rm -rf `find . -name \*CVS\*` ; \
|
||||
cd $(distdir) ; rm -rf `find . -name \*CVS\*` ; \
|
||||
rm -rf doc/.cvsignore; \
|
||||
[ -f doc/UserGuide.lyx ] || { cvs -Q export -r HEAD -d doc lyxdoc || \
|
||||
echo "WARNING: Unable to get LyX Documentation from CVS!" ; true ; }
|
||||
|
@ -23,18 +23,18 @@ libinstalldirs:
|
||||
done
|
||||
|
||||
install-data-local: libinstalldirs
|
||||
files=`cd ${srcdir} ; echo $(LIBINSTFILES)` ; \
|
||||
for i in $${files} ; do \
|
||||
$(INSTALL_DATA) ${srcdir}/$$i $(DESTDIR)$(pkgdatadir)/reLyX/$$i ; \
|
||||
files=`cd $(srcdir) ; echo $(LIBINSTFILES)` ; \
|
||||
for i in $$(files) ; do \
|
||||
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(pkgdatadir)/reLyX/$$i ; \
|
||||
done
|
||||
|
||||
uninstall-local:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
files=`cd ${srcdir} ; echo $(LIBINSTFILES)` ; \
|
||||
for i in $${files} ; do \
|
||||
files=`cd $(srcdir) ; echo $(LIBINSTFILES)` ; \
|
||||
for i in $$(files) ; do \
|
||||
rm -f $(pkgdatadir)/reLyX/$$i ; \
|
||||
done ; \
|
||||
dirs=`cd ${srcdir} ; echo $(LYXDATADIRS)` ; \
|
||||
for i in $${dirs} ; do \
|
||||
dirs=`cd $(srcdir) ; echo $(LYXDATADIRS)` ; \
|
||||
for i in $$(dirs) ; do \
|
||||
rm -rf $(pkgdatadir)/$$i ; \
|
||||
done
|
||||
|
@ -400,7 +400,7 @@ int CutAndPaste::nrOfParagraphs()
|
||||
int CutAndPaste::SwitchLayoutsBetweenClasses(textclass_type c1,
|
||||
textclass_type c2,
|
||||
Paragraph * par,
|
||||
BufferParams const & bparams)
|
||||
BufferParams const & /*bparams*/)
|
||||
{
|
||||
int ret = 0;
|
||||
if (!par || c1 == c2)
|
||||
|
@ -6,6 +6,8 @@ MAINTAINERCLEANFILES += $(srcdir)/config.h.in
|
||||
|
||||
SUBDIRS = mathed insets graphics support frontends
|
||||
|
||||
LIBS += @LIBS@
|
||||
|
||||
bin_PROGRAMS = lyx
|
||||
|
||||
LYX_CONV_LIBS = mathed/libmathed.la insets/libinsets.la \
|
||||
@ -16,7 +18,9 @@ LYX_CONV_LIBS = mathed/libmathed.la insets/libinsets.la \
|
||||
#lyx_DEPENDENCIES = $(LYX_CONV_LIBS) $(INCLUDED_SIGC)
|
||||
|
||||
lyx_LDADD = $(LYX_CONV_LIBS) $(SIGC_LIBS) $(INCLUDED_SIGC) @INTLLIBS@ \
|
||||
$(PSPELL_LIBS) @AIKSAURUS_LIBS@ @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
|
||||
$(PSPELL_LIBS) @AIKSAURUS_LIBS@
|
||||
|
||||
# @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
|
||||
|
||||
#lyx_LDFLAGS=-Wl,-O1
|
||||
|
||||
|
@ -2880,7 +2880,7 @@ void reset(PAR_TAG & p1, PAR_TAG const & p2)
|
||||
p1 = static_cast<PAR_TAG>(p1 & ~p2);
|
||||
}
|
||||
|
||||
} // namespace anon
|
||||
} // anon
|
||||
|
||||
|
||||
// Handle internal paragraph parsing -- layout already processed.
|
||||
@ -3078,8 +3078,8 @@ void Buffer::simpleLinuxDocOnePar(ostream & os,
|
||||
|
||||
|
||||
// Print an error message.
|
||||
void Buffer::sgmlError(Paragraph * par, int pos,
|
||||
string const & message) const
|
||||
void Buffer::sgmlError(Paragraph * /*par*/, int /*pos*/,
|
||||
string const & /*message*/) const
|
||||
{
|
||||
#warning This is wrong we cannot insert an inset like this!!!
|
||||
// I guess this was Jose' so I explain you more or less why this
|
||||
|
@ -4,6 +4,8 @@ SUBDIRS = controllers @FRONTEND@
|
||||
|
||||
noinst_LTLIBRARIES = libfrontends.la
|
||||
|
||||
LIBS += @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
|
||||
|
||||
INCLUDES = $(FRONTEND_INCLUDES) -I$(srcdir)/.. $(SIGC_CFLAGS) $(BOOST_INCLUDES)
|
||||
|
||||
libfrontends_la_LIBADD= @FRONTEND_GUILIB@ \
|
||||
|
@ -2,9 +2,9 @@ include $(top_srcdir)/config/common.am
|
||||
|
||||
noinst_LTLIBRARIES = libcontrollers.la
|
||||
|
||||
INCLUDES = -I${top_srcdir}/src/ \
|
||||
-I${top_srcdir}/src/frontends/ \
|
||||
${SIGC_CFLAGS} $(BOOST_INCLUDES)
|
||||
INCLUDES = -I$(top_srcdir)/src/ \
|
||||
-I$(top_srcdir)/src/frontends/ \
|
||||
$(SIGC_CFLAGS) $(BOOST_INCLUDES)
|
||||
|
||||
EXTRA_DIST = ButtonController.tmpl ControlDialog.tmpl ControlInset.tmpl
|
||||
|
||||
|
@ -2,11 +2,11 @@ include $(top_srcdir)/config/common.am
|
||||
|
||||
noinst_LTLIBRARIES = libgnome.la
|
||||
|
||||
INCLUDES = ${FRONTEND_INCLUDES} -I${top_srcdir}/src/ \
|
||||
-I${top_srcdir}/src/frontends/ \
|
||||
-I${top_srcdir}/src/frontends/xforms \
|
||||
-I${top_srcdir}/src/frontends/controllers \
|
||||
${SIGC_CFLAGS} $(BOOST_INCLUDES)
|
||||
INCLUDES = $(FRONTEND_INCLUDES) -I$(top_srcdir)/src/ \
|
||||
-I$(top_srcdir)/src/frontends/ \
|
||||
-I$(top_srcdir)/src/frontends/xforms \
|
||||
-I$(top_srcdir)/src/frontends/controllers \
|
||||
$(SIGC_CFLAGS) $(BOOST_INCLUDES)
|
||||
|
||||
if USE_BASIC_IMAGE_LOADER
|
||||
else
|
||||
|
@ -4,12 +4,12 @@ DISTCLEANFILES += $(libqt2moc_la_SOURCES)
|
||||
|
||||
noinst_LTLIBRARIES = libqt2moc.la
|
||||
|
||||
INCLUDES = -I${top_srcdir}/src/ \
|
||||
-I${top_srcdir}/src/frontends/ \
|
||||
-I${top_srcdir}/src/frontends/controllers \
|
||||
-I${top_builddir}/src/frontends/qt2 \
|
||||
${SIGC_CFLAGS} \
|
||||
${FRONTEND_INCLUDES} \
|
||||
INCLUDES = -I$(top_srcdir)/src/ \
|
||||
-I$(top_srcdir)/src/frontends/ \
|
||||
-I$(top_srcdir)/src/frontends/controllers \
|
||||
-I$(top_builddir)/src/frontends/qt2 \
|
||||
$(SIGC_CFLAGS) \
|
||||
$(FRONTEND_INCLUDES) \
|
||||
$(BOOST_INCLUDES)
|
||||
|
||||
AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
|
||||
|
@ -4,11 +4,11 @@ DISTCLEANFILES += $(libqt2uimoc_la_SOURCES)
|
||||
|
||||
noinst_LTLIBRARIES = libqt2uimoc.la
|
||||
|
||||
INCLUDES = -I${top_srcdir}/src/ \
|
||||
-I${top_srcdir}/src/frontends/ \
|
||||
-I${top_srcdir}/src/frontends/controllers \
|
||||
${SIGC_CFLAGS} \
|
||||
${FRONTEND_INCLUDES} \
|
||||
INCLUDES = -I$(top_srcdir)/src/ \
|
||||
-I$(top_srcdir)/src/frontends/ \
|
||||
-I$(top_srcdir)/src/frontends/controllers \
|
||||
$(SIGC_CFLAGS) \
|
||||
$(FRONTEND_INCLUDES) \
|
||||
$(BOOST_INCLUDES)
|
||||
|
||||
AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
|
||||
@ -21,4 +21,3 @@ libqt2uimoc.la: $(libqt2uimoc_la_OBJECTS) $(libqt2uimoc_la_DEPENDENCIES)
|
||||
|
||||
%_moc.C: ../%.h
|
||||
$(MOC) -o $@ $<
|
||||
|
||||
|
@ -2,9 +2,9 @@ include $(top_srcdir)/config/common.am
|
||||
|
||||
noinst_LTLIBRARIES = libqt2xforms.la
|
||||
|
||||
INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \
|
||||
${SIGC_CFLAGS} -I$(top_srcdir)/images \
|
||||
${FRONTEND_INCLUDES} $(BOOST_INCLUDES) \
|
||||
INCLUDES = -I$(top_srcdir)/src/ -I$(top_srcdir)/src/frontends/ \
|
||||
$(SIGC_CFLAGS) -I$(top_srcdir)/images \
|
||||
$(FRONTEND_INCLUDES) $(BOOST_INCLUDES) \
|
||||
-I$(top_srcdir)/src/frontends/controllers
|
||||
|
||||
EXTRA_DIST = xformsGImage.C xformsGImage.h
|
||||
@ -92,5 +92,5 @@ libqt2xforms.la: link_files $(libqt2xforms_la_OBJECTS)
|
||||
|
||||
link_files:
|
||||
for i in $(libqt2xforms_la_SOURCES); do \
|
||||
ln -sf "${top_srcdir}/src/frontends/xforms/$$i" . ; \
|
||||
ln -sf "$(top_srcdir)/src/frontends/xforms/$$i" . ; \
|
||||
done
|
||||
|
@ -2,10 +2,10 @@ include $(top_srcdir)/config/common.am
|
||||
|
||||
noinst_LTLIBRARIES = libxforms.la
|
||||
|
||||
INCLUDES = -I${top_srcdir}/images -I${top_srcdir}/src/ \
|
||||
-I${top_srcdir}/src/frontends/ \
|
||||
-I${top_srcdir}/src/frontends/controllers \
|
||||
${SIGC_CFLAGS} $(BOOST_INCLUDES)
|
||||
INCLUDES = -I$(top_srcdir)/images -I$(top_srcdir)/src/ \
|
||||
-I$(top_srcdir)/src/frontends/ \
|
||||
-I$(top_srcdir)/src/frontends/controllers \
|
||||
$(SIGC_CFLAGS) $(BOOST_INCLUDES)
|
||||
|
||||
LYXDATADIRS = forms
|
||||
|
||||
|
@ -2,7 +2,7 @@ include $(top_srcdir)/config/common.am
|
||||
|
||||
noinst_LTLIBRARIES = libgraphics.la
|
||||
|
||||
INCLUDES = -I${srcdir}/../ $(SIGC_CFLAGS) $(BOOST_INCLUDES)
|
||||
INCLUDES = -I$(srcdir)/../ $(SIGC_CFLAGS) $(BOOST_INCLUDES)
|
||||
|
||||
EXTRA_DIST = GraphicsImageXPM.C GraphicsImageXPM.h
|
||||
|
||||
|
@ -2,7 +2,7 @@ include $(top_srcdir)/config/common.am
|
||||
|
||||
noinst_LTLIBRARIES = libinsets.la
|
||||
|
||||
INCLUDES = -I${srcdir}/../ $(SIGC_CFLAGS) $(BOOST_INCLUDES)
|
||||
INCLUDES = -I$(srcdir)/../ $(SIGC_CFLAGS) $(BOOST_INCLUDES)
|
||||
|
||||
EXTRA_DIST = \
|
||||
insetlist.C \
|
||||
|
@ -2,7 +2,7 @@ include $(top_srcdir)/config/common.am
|
||||
|
||||
noinst_LTLIBRARIES = libmathed.la
|
||||
|
||||
INCLUDES = -I${srcdir}/../ $(SIGC_CFLAGS) $(BOOST_INCLUDES)
|
||||
INCLUDES = -I$(srcdir)/../ $(SIGC_CFLAGS) $(BOOST_INCLUDES)
|
||||
|
||||
libmathed_la_SOURCES = \
|
||||
textpainter.C \
|
||||
|
@ -2,7 +2,7 @@ include $(top_srcdir)/config/common.am
|
||||
|
||||
noinst_LTLIBRARIES = libsupport.la
|
||||
|
||||
INCLUDES = -I${srcdir}/../ $(SIGC_INCLUDES) $(BOOST_INCLUDES)
|
||||
INCLUDES = -I$(srcdir)/../ $(SIGC_INCLUDES) $(BOOST_INCLUDES)
|
||||
|
||||
EXTRA_DIST = lyxstring.C lyxstring.h regex.c lyxregex.h \
|
||||
os_unix.C os_win32.C os_os2.C
|
||||
|
Loading…
Reference in New Issue
Block a user