Subversion Repositories Scribus

Rev

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

Rev Author Line No. Line
779 fschmid 1
SUBDIRS = $(TOPSUBDIRS)
3 paul 2
 
779 fschmid 3
$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
4
	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
3 paul 5
 
6
$(top_srcdir)/subdirs:
7
	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
8
 
9
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
10
	@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
11
 
12
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files 
13
 
14
package-messages:
779 fschmid 15
	cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common package-messages
3 paul 16
	$(MAKE) -C po merge
17
 
1960 craig 18
# Prevent the KDE build system from piling stuff we don't want into the
19
# toplevel dir of the "make dist" tarballs.
20
KDE_OPTIONS = noautodist
628 cbradney 21
 
1960 craig 22
# We have to list everything we want to go into the root level of the tarball
23
# in EXTRA_DIST, except dirs listed in SUBDIRS.
24
#
25
# We have to include configure.in and friends because the auto-generated make
26
# rules to re-generate configure if its .in files are modified cause the build
27
# to fail if those files are absent.
28
#
29
# We also have to list anything we want included from the admin dir that the
30
# build magic doesn't know to include in dist tarballs automatically. In this
31
# case, we include enough to handle the auto-regeneration of configure after
32
# configure.in, aclocal.m4, or acinclude.m4 are changed, since that's done
33
# using rules defined here and not in the admin magic.
34
# DO NOT INCLUDE THE "admin" DIR, ONLY FILES WITHIN IT. Otherwise you'll get
35
# *everything* in admin, including the CVS dirs etc.
36
#
4457 craig 37
# Remember to add install rules for files you add here if you want them
38
# installed.
1960 craig 39
 
4457 craig 40
EXTRA_DIST = AUTHORS \
41
			 BUILDING \
42
			 ChangeLog \
10659 mrdocs 43
			 ChangeLogSVN \
4457 craig 44
			 COPYING \
45
			 INSTALL \
46
			 NEWS \
47
			 PACKAGING \
48
			 README \
49
			 README.MacOSX \
7812 mrdocs 50
			 README.OS2 \
4457 craig 51
			 TODO \
52
			 scribus.xml \
3979 mrdocs 53
			 scribus.lsm scribus.desktop Scribus.pot \
4457 craig 54
			 configure config.h.in configure.in \
11369 mrdocs 55
			 configure.in.in configure.in.bot Makefile.svn \
1960 craig 56
			 stamp-h1 subdirs configure.files \
4457 craig 57
			 admin/acinclude.m4.in \
58
			 admin/libtool.m4.in admin/Makefile.common \
7320 cbradney 59
			 admin/cvs.sh admin/am_edit admin/detect-autoconf.sh \
60
                         CMakeLists.txt ConfigureChecks.cmake config.h.cmake cmake_uninstall.cmake.in
1960 craig 61
 
3 paul 62
dist-hook:
63
	cd $(top_distdir) && perl admin/am_edit -padmin
64
	cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
872 cbradney 65
 
66
AM_CPPFLAGS = \
5054 cbradney 67
    -DDOCDIR=\"$(datadir)/doc/scribus-$(VERSION)/\" \
872 cbradney 68
    -DICONDIR=\"$(datadir)/scribus/icons/\" \
69
    -DSAMPLESDIR=\"$(datadir)/scribus/samples/\" \
70
    -DSCRIPTSDIR=\"$(datadir)/scribus/scripts/\" \
71
    -DTEMPLATEDIR=\"$(datadir)/scribus/templates/\" \
72
    -DLIBDIR=\"$(libdir)/scribus/\" \
73
    -DPLUGINDIR=\"$(libdir)/scribus/plugins/\"
4457 craig 74
 
75
#
76
# Files here MUST appear in EXTRA_DIST above. Kindly keep this
77
# list sorted the same as the matching part of EXTRA_DIST to
78
# ease future maintainance.
79
#
80
install-data-local:
81
	$(mkinstalldirs) $(prefix)/share
6343 cbradney 82
	$(mkinstalldirs) $(prefix)/share/mime
83
	$(mkinstalldirs) $(prefix)/share/mime/packages
4457 craig 84
	$(mkinstalldirs) $(prefix)/share/scribus
5054 cbradney 85
	$(mkinstalldirs) $(prefix)/share/doc/scribus-$(VERSION)
86
	$(INSTALL_DATA) $(top_srcdir)/AUTHORS $(prefix)/share/doc/scribus-$(VERSION)/AUTHORS
87
	$(INSTALL_DATA) $(top_srcdir)/BUILDING $(prefix)/share/doc/scribus-$(VERSION)/BUILDING
10659 mrdocs 88
	$(INSTALL_DATA) $(top_srcdir)/ChangeLogSVN $(prefix)/share/doc/scribus-$(VERSION)/ChangeLogSVN
5054 cbradney 89
	$(INSTALL_DATA) $(top_srcdir)/ChangeLog $(prefix)/share/doc/scribus-$(VERSION)/ChangeLog
90
	$(INSTALL_DATA) $(top_srcdir)/COPYING $(prefix)/share/doc/scribus-$(VERSION)/COPYING
91
	$(INSTALL_DATA) $(top_srcdir)/INSTALL $(prefix)/share/doc/scribus-$(VERSION)/INSTALL
92
	$(INSTALL_DATA) $(top_srcdir)/NEWS $(prefix)/share/doc/scribus-$(VERSION)/NEWS
93
	$(INSTALL_DATA) $(top_srcdir)/PACKAGING $(prefix)/share/doc/scribus-$(VERSION)/PACKAGING
94
	$(INSTALL_DATA) $(top_srcdir)/README.MacOSX $(prefix)/share/doc/scribus-$(VERSION)/README.MacOSX
95
	$(INSTALL_DATA) $(top_srcdir)/README $(prefix)/share/doc/scribus-$(VERSION)/README
96
	$(INSTALL_DATA) $(top_srcdir)/TODO $(prefix)/share/doc/scribus-$(VERSION)/TODO
6343 cbradney 97
	$(INSTALL_DATA) $(top_srcdir)/scribus.xml $(prefix)/share/mime/packages/scribus.xml