medit/Makefile.ug

75 lines
1.8 KiB
Makefile
Raw Normal View History

2008-05-22 22:40:19 -05:00
AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
2008-08-16 01:05:22 -05:00
EXTRA_DIST += \
autogen.sh \
mingw-configure \
2006-06-12 12:54:13 -05:00
makewin \
2007-06-24 13:01:13 -05:00
COPYING.GPL \
COPYING \
2007-06-16 02:13:08 -05:00
LICENSE \
2006-08-03 00:39:06 -05:00
THANKS \
intltool-extract.in \
intltool-merge.in \
2008-05-27 11:01:38 -05:00
intltool-update.in \
2008-08-18 04:47:51 -05:00
mk/ini-desktop.mk
2005-06-22 18:20:32 +00: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
2007-09-07 23:59:37 -05:00
DIST_SUBDIRS = moo medit tests po po-gsv doc
if MOO_ENABLE_NLS
2008-01-10 13:30:38 -06:00
po_subdirs = po po-gsv
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
if MOO_ENABLE_TESTS
SUBDIRS += tests
else
if MOO_ENABLE_UNIT_TESTS
SUBDIRS += tests
endif
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 += \
configargs.h \
2006-08-13 06:05:50 -05:00
intltool-extract \
intltool-merge \
intltool-update \
po-subdirs-stamp-2 \
po-subdirs-stamp
# DISTCHECK_CONFIGURE_FLAGS = --enable-unit-tests
distuninstallcheck_listfiles = find . -type f -print | grep -v share/mime/ | grep -v share/icons/hicolor
2007-08-06 13:17:25 -05:00
snapshot:
$(MAKE) dist && mv $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-`date +%F-%H-%M`.tar.bz2
win-test-stuff:
$(MAKE) all && mkdir -p test-stuff/test-data && \
cp moo/.libs/libmoo.dll test-stuff/ && \
cp -r $(srcdir)/tests/data/* test-stuff/test-data/ && \
cp tests/.libs/run-tests.exe test-stuff/