]> git.lyx.org Git - lyx.git/commitdiff
makefile cleanup, and avoid some warnings
authorLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 25 Mar 2002 11:15:27 +0000 (11:15 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 25 Mar 2002 11:15:27 +0000 (11:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3821 a592a061-630c-0410-9148-cb99ea01b6c8

18 files changed:
Makefile.am
config/common.am
lib/Makefile.am
lib/reLyX/Makefile.am
src/CutAndPaste.C
src/Makefile.am
src/buffer.C
src/frontends/Makefile.am
src/frontends/controllers/Makefile.am
src/frontends/gnome/Makefile.am
src/frontends/qt2/moc/Makefile.am
src/frontends/qt2/ui/moc/Makefile.am
src/frontends/qt2/xforms/Makefile.am
src/frontends/xforms/Makefile.am
src/graphics/Makefile.am
src/insets/Makefile.am
src/mathed/Makefile.am
src/support/Makefile.am

index c31c76ceeb9db516b3543719b7960e430ae10058..7a24214553ab33bc772de030640cb0d7b5ebc8b6 100644 (file)
@@ -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
 
 
index 0f14f70ad6770a2f62c3f052019bc5b456f1d304..f7eb781203888fdb2b29217b3d49256d03449d86 100644 (file)
@@ -8,3 +8,5 @@ ETAGS_ARGS = --lang=c++
 
 BOOST_INCLUDES = -I$(top_srcdir)/boost
 SIGC_INCLUDES = -I$(top_srcdir) -I$(top_builddir)
+
+LIBS =
index bf7c43122c8bbbeec518a34ff41d92fcc6713238..a72ff9c144cc0e8c0e8b092bffd5dffe5ac38c93 100644 (file)
@@ -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 ; }
index d69ce56769d9f28e4a3f54f4c861c38256d9640b..9171176874e2bd2079cb220291b81ea09bc6f704 100644 (file)
@@ -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
index 4fd63631557655ed072922df7af4c5acb5ebd250..c6eec1d8b6d811425c08e833f1d395ce9b3fd798 100644 (file)
@@ -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)
index d42470bcb35daca060a692db33a7ddcb0c81bf81..cecc43e101bbe36d785c411efb91edb23cfdfef7 100644 (file)
@@ -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
 
index 77a16b31c7d10a547cfc26089c1483527fa818cb..67ddc7672e3990fc07672b5c4c44491a1a8254db 100644 (file)
@@ -2880,13 +2880,13 @@ 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.
 void Buffer::simpleLinuxDocOnePar(ostream & os,
-                                 Paragraph * par,
-                                 Paragraph::depth_type /*depth*/)
+       Paragraph * par,
+       Paragraph::depth_type /*depth*/)
 {
        LyXLayout const & style =
                textclasslist[params.textclass][par->layout()];
@@ -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
index a237643990c646e2054da744b70d77e1901cca89..734dcaf7fffc869a309f644ffd7cc128229b5096 100644 (file)
@@ -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@ \
index 38e84dd7f944e8d9b2fce7bc947853be9b579a00..72cf929f7d6641d056c518059e2a29cf25e431b9 100644 (file)
@@ -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
 
index 8cf377138081440628b186c0b8615fad97f26659..6c7a11a75102e9f25244d023a5cd1405236ed506 100644 (file)
@@ -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
@@ -41,7 +41,7 @@ xforms_objects = \
        ../xforms/Tooltips.lo \
        ../xforms/xforms_helpers.lo \
        ../xforms/xformsBC.lo \
-       $(XFORMSGIMAGE) 
+       $(XFORMSGIMAGE)
 
 libgnome.la: xforms.lo $(libgnome_la_OBJECTS) $(libgnome_la_DEPENDENCIES)
 
@@ -53,7 +53,7 @@ xforms.lo: $(xforms_objects)
 ###
 
 #LDFLAGS= $(libgnome_la_OBJADD)
-LYXDATADIRS = 
+LYXDATADIRS =
 
 libgnome_la_SOURCES = \
        Dialogs.C \
index 5a5f682cace0a6395b4eb72a3fdd4d13783723e8..62a21a667e64f31d0594f40c62b31bee075311c6 100644 (file)
@@ -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
index 26da688932e3baa965ce322441d38236677c2f93..20d1143eab68fbc20f2b35496f91b6531e5b6684 100644 (file)
@@ -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 $@ $<
-
index 10672a7caf9bc4f23977fb3e0f5dcb6a2f910832..a834e9ccdccc8df058c7944c84ccc1b472e4173a 100644 (file)
@@ -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" . ; \
-       done
+               ln -sf "$(top_srcdir)/src/frontends/xforms/$$i" . ; \
+        done
index 9da6c59fee67f48956fc322de785097dc3a1fafa..0a292488c22c9a283bd124ad7a7bad65dfe1213f 100644 (file)
@@ -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
 
@@ -16,7 +16,7 @@ else
 XFORMSGIMAGE = xformsGImage.C xformsGImage.h
 endif
 
-# Alphabetical order please.  It makes it easier to figure out what's missing. 
+# Alphabetical order please.  It makes it easier to figure out what's missing.
 libxforms_la_SOURCES = \
        Alert_pimpl.C \
        bmtable.c \
@@ -225,7 +225,7 @@ libxforms.la: $(libxforms_la_OBJECTS) $(libxforms_la_DEPENDENCIES)
 # for convenience only
 updatesrc:
        $(MAKE) -C forms updatesrc
+
 # just copied from old lyx repository
 dist-hook:
        for subdir in $(LYXDATADIRS) ; do \
index 51e9c966ff48d8ef5e7fd382077ba19c180c383b..2d68913eb5d2c1cb996bd062b293249d9c7a358e 100644 (file)
@@ -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
 
index 615dad63aff4c55cdd360c017ff556ec0ac4a60f..8817b75e0621e0de168f9904b4b8bc1cdad22597 100644 (file)
@@ -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 \
index aa7664df5e04059afe0254154e72ff401c6478d8..20137977556ef19e8fcd7af3f79d3d89d1c55700 100644 (file)
@@ -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 \
index 247976880c54e747b1d9cf28d536e5fc3ca6d606..5633ecfaa45d58ec1e05e7f56d779fdd208cebc5 100644 (file)
@@ -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