Subversion Repositories Scribus

Rev

Rev 10659 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

SUBDIRS = $(TOPSUBDIRS)

$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
        cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;

$(top_srcdir)/subdirs:
        cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs

$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
        @cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4

MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files 

package-messages:
        cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common package-messages
        $(MAKE) -C po merge

# Prevent the KDE build system from piling stuff we don't want into the
# toplevel dir of the "make dist" tarballs.
KDE_OPTIONS = noautodist

# We have to list everything we want to go into the root level of the tarball
# in EXTRA_DIST, except dirs listed in SUBDIRS.
#
# We have to include configure.in and friends because the auto-generated make
# rules to re-generate configure if its .in files are modified cause the build
# to fail if those files are absent.
#
# We also have to list anything we want included from the admin dir that the
# build magic doesn't know to include in dist tarballs automatically. In this
# case, we include enough to handle the auto-regeneration of configure after
# configure.in, aclocal.m4, or acinclude.m4 are changed, since that's done
# using rules defined here and not in the admin magic.
# DO NOT INCLUDE THE "admin" DIR, ONLY FILES WITHIN IT. Otherwise you'll get
# *everything* in admin, including the CVS dirs etc.
#
# Remember to add install rules for files you add here if you want them
# installed.

EXTRA_DIST = AUTHORS \
                         BUILDING \
                         ChangeLog \
                         ChangeLogSVN \
                         COPYING \
                         INSTALL \
                         NEWS \
                         PACKAGING \
                         README \
                         README.MacOSX \
                         README.OS2 \
                         TODO \
                         scribus.xml \
                         scribus.lsm scribus.desktop Scribus.pot \
                         configure config.h.in configure.in \
                         configure.in.in configure.in.bot Makefile.svn \
                         stamp-h1 subdirs configure.files \
                         admin/acinclude.m4.in \
                         admin/libtool.m4.in admin/Makefile.common \
                         admin/cvs.sh admin/am_edit admin/detect-autoconf.sh \
                         CMakeLists.txt ConfigureChecks.cmake config.h.cmake cmake_uninstall.cmake.in

dist-hook:
        cd $(top_distdir) && perl admin/am_edit -padmin
        cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs

AM_CPPFLAGS = \
    -DDOCDIR=\"$(datadir)/doc/scribus-$(VERSION)/\" \
    -DICONDIR=\"$(datadir)/scribus/icons/\" \
    -DSAMPLESDIR=\"$(datadir)/scribus/samples/\" \
    -DSCRIPTSDIR=\"$(datadir)/scribus/scripts/\" \
    -DTEMPLATEDIR=\"$(datadir)/scribus/templates/\" \
    -DLIBDIR=\"$(libdir)/scribus/\" \
    -DPLUGINDIR=\"$(libdir)/scribus/plugins/\"

#
# Files here MUST appear in EXTRA_DIST above. Kindly keep this
# list sorted the same as the matching part of EXTRA_DIST to
# ease future maintainance.
#
install-data-local:
        $(mkinstalldirs) $(prefix)/share
        $(mkinstalldirs) $(prefix)/share/mime
        $(mkinstalldirs) $(prefix)/share/mime/packages
        $(mkinstalldirs) $(prefix)/share/scribus
        $(mkinstalldirs) $(prefix)/share/doc/scribus-$(VERSION)
        $(INSTALL_DATA) $(top_srcdir)/AUTHORS $(prefix)/share/doc/scribus-$(VERSION)/AUTHORS
        $(INSTALL_DATA) $(top_srcdir)/BUILDING $(prefix)/share/doc/scribus-$(VERSION)/BUILDING
        $(INSTALL_DATA) $(top_srcdir)/ChangeLogSVN $(prefix)/share/doc/scribus-$(VERSION)/ChangeLogSVN
        $(INSTALL_DATA) $(top_srcdir)/ChangeLog $(prefix)/share/doc/scribus-$(VERSION)/ChangeLog
        $(INSTALL_DATA) $(top_srcdir)/COPYING $(prefix)/share/doc/scribus-$(VERSION)/COPYING
        $(INSTALL_DATA) $(top_srcdir)/INSTALL $(prefix)/share/doc/scribus-$(VERSION)/INSTALL
        $(INSTALL_DATA) $(top_srcdir)/NEWS $(prefix)/share/doc/scribus-$(VERSION)/NEWS
        $(INSTALL_DATA) $(top_srcdir)/PACKAGING $(prefix)/share/doc/scribus-$(VERSION)/PACKAGING
        $(INSTALL_DATA) $(top_srcdir)/README.MacOSX $(prefix)/share/doc/scribus-$(VERSION)/README.MacOSX
        $(INSTALL_DATA) $(top_srcdir)/README $(prefix)/share/doc/scribus-$(VERSION)/README
        $(INSTALL_DATA) $(top_srcdir)/TODO $(prefix)/share/doc/scribus-$(VERSION)/TODO
        $(INSTALL_DATA) $(top_srcdir)/scribus.xml $(prefix)/share/mime/packages/scribus.xml