ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
+SUBDIRS = . po
+
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-e 's,@exec_prefix\@,$(exec_prefix),g' \
-e 's,@libdir\@,$(libdir),g' \
-e 's,@includedir\@,$(includedir),g' \
+ -e 's,@databasedir\@,$(databasedir),g' \
< $< > $@ || rm $@
+databasedir = $(datadir)/location
pkgconfigdir = $(libdir)/pkgconfig
-%.pc: %.pc.in Makefile
+%: %.in Makefile
$(SED_PROCESS)
+@INTLTOOL_POLICY_RULE@
+
+.PHONY: update-po
+update-po:
+ $(MAKE) -C po update-po
+
EXTRA_DIST += \
examples/python/create-database.py \
examples/python/read-database.py
src/libloc.la \
$(PYTHON_LIBS)
+bin_SCRIPTS = \
+ src/python/location-query
+
+EXTRA_DIST += \
+ src/python/location-query.in
+
+CLEANFILES += \
+ src/python/location-query
+
TESTS_CFLAGS = \
$(AM_CFLAGS) \
-DLIBLOC_PRIVATE