2008-05-22 22:40:19 -05:00
|
|
|
AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
|
2006-11-26 01:08:56 -06:00
|
|
|
|
2008-08-16 01:05:22 -05:00
|
|
|
EXTRA_DIST += \
|
2006-04-30 21:24:35 -05:00
|
|
|
mingw-configure \
|
2007-06-24 13:01:13 -05:00
|
|
|
COPYING.GPL \
|
2007-09-22 20:06:43 -05:00
|
|
|
COPYING \
|
2007-06-16 02:13:08 -05:00
|
|
|
LICENSE \
|
2008-09-16 10:10:42 -05:00
|
|
|
THANKS \
|
|
|
|
intltool-extract.in \
|
|
|
|
intltool-merge.in \
|
|
|
|
intltool-update.in
|
2005-06-22 18:20:32 +00:00
|
|
|
|
2007-02-03 09:41:57 -06:00
|
|
|
@MOO_PO_SUBDIRS_RULE@
|
2007-06-18 05:18:02 -05:00
|
|
|
@MOO_PO_SUBDIRS_RULE2@
|
2008-08-16 01:05:22 -05:00
|
|
|
BUILT_SOURCES += po-subdirs-stamp po-subdirs-stamp-2
|
2006-08-13 06:47:59 -05:00
|
|
|
|
2008-09-14 03:09:52 -05:00
|
|
|
DIST_SUBDIRS = moo medit po po-gsv doc
|
2007-02-03 09:41:57 -06:00
|
|
|
|
2007-09-28 18:04:33 -05:00
|
|
|
if MOO_ENABLE_NLS
|
2008-01-10 13:30:38 -06:00
|
|
|
po_subdirs = po po-gsv
|
2007-09-28 18:04:33 -05:00
|
|
|
endif
|
|
|
|
|
2008-01-10 13:30:38 -06:00
|
|
|
if MOO_BUILD_MEDIT
|
2008-02-07 11:05:35 -06:00
|
|
|
SUBDIRS = . $(po_subdirs) doc moo medit
|
2008-01-10 13:30:38 -06:00
|
|
|
else
|
2008-02-07 11:05:35 -06:00
|
|
|
SUBDIRS = . $(po_subdirs) doc moo
|
2008-01-10 13:30:38 -06:00
|
|
|
endif
|
|
|
|
|
2008-05-22 22:40:19 -05:00
|
|
|
moo-config-dirs.h: moo-config-dirs.h.stamp
|
|
|
|
moo-config-dirs.h.stamp: Makefile
|
|
|
|
{ echo '#define MOO_DATA_DIR "$(MOO_DATA_DIR)"'; \
|
|
|
|
echo '#define MOO_LIB_DIR "$(MOO_LIB_DIR)"'; \
|
|
|
|
echo '#define MOO_LOCALE_DIR "$(MOO_LOCALE_DIR)"'; \
|
|
|
|
echo '#define MOO_HELP_DIR "$(MOO_HELP_DIR)"'; \
|
|
|
|
} | sed '/""/d' > moo-config-dirs.h.tmp || exit 1
|
|
|
|
cmp -s moo-config-dirs.h moo-config-dirs.h.tmp || \
|
|
|
|
mv moo-config-dirs.h.tmp moo-config-dirs.h || exit 1
|
|
|
|
rm -f moo-config-dirs.h.tmp
|
|
|
|
echo stamp > moo-config-dirs.h.stamp
|
|
|
|
BUILT_SOURCES += moo-config-dirs.h.stamp
|
2008-08-16 01:05:22 -05:00
|
|
|
CLEANFILES += moo-config-dirs.h.stamp moo-config-dirs.h
|
2008-05-22 22:40:19 -05:00
|
|
|
|
2008-08-16 01:05:22 -05:00
|
|
|
ACLOCAL_AMFLAGS = -I m4 -I ugly/m4
|
2006-08-03 00:39:06 -05:00
|
|
|
|
2008-08-16 01:05:22 -05:00
|
|
|
DISTCLEANFILES += \
|
2006-11-26 01:08:56 -06:00
|
|
|
configargs.h \
|
2006-08-13 06:05:50 -05:00
|
|
|
intltool-extract \
|
|
|
|
intltool-merge \
|
2007-02-03 09:41:57 -06:00
|
|
|
intltool-update \
|
2007-06-18 15:30:47 -05:00
|
|
|
po-subdirs-stamp-2 \
|
2007-02-03 09:41:57 -06:00
|
|
|
po-subdirs-stamp
|
2007-01-05 18:10:54 -06:00
|
|
|
|
2008-02-10 12:53:42 -06:00
|
|
|
# DISTCHECK_CONFIGURE_FLAGS = --enable-unit-tests
|
2007-01-05 18:10:54 -06:00
|
|
|
distuninstallcheck_listfiles = find . -type f -print | grep -v share/mime/ | grep -v share/icons/hicolor
|
2007-08-06 13:17:25 -05:00
|
|
|
|
2008-09-13 13:00:42 -05:00
|
|
|
snapshot:
|
|
|
|
if [ -d $(top_srcdir)/.hg ]; then \
|
|
|
|
suffix=r`hg tip --template '{rev}'`; \
|
|
|
|
else \
|
|
|
|
suffix=`date +%F-%H-%M`; \
|
|
|
|
fi; \
|
|
|
|
$(MAKE) dist && mv $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-"$$suffix".tar.bz2
|
|
|
|
|
2008-02-10 12:53:42 -06:00
|
|
|
win-test-stuff:
|
2008-08-28 22:50:13 -05:00
|
|
|
$(MAKE) all
|
|
|
|
mkdir -p test-stuff/test-data
|
|
|
|
cp moo/.libs/libmoo.dll test-stuff/
|
2008-09-14 03:09:52 -05:00
|
|
|
cp -r $(srcdir)/medit/data/* test-stuff/test-data/
|
|
|
|
cp medit/.libs/medit.exe test-stuff/
|
2008-08-25 04:52:00 -05:00
|
|
|
|
2008-08-25 04:59:57 -05:00
|
|
|
include dist/win32/Makefile.incl
|
2008-08-29 04:39:42 -05:00
|
|
|
include dist/mac/Makefile.incl
|