]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - Makefile.am
python: Do not use any GNU-style initialisers for structs
[people/ms/libloc.git] / Makefile.am
index c97f76b1519166494b5964037260e1954f068289..fc6f3135bb82f56ca69874a76bb123db5c57b94e 100644 (file)
@@ -3,6 +3,8 @@ CLEANFILES =
 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 AM_MAKEFLAGS = --no-print-directory
 
+SUBDIRS = . po
+
 AM_CPPFLAGS = \
        -include $(top_builddir)/config.h \
        -DSYSCONFDIR=\""$(sysconfdir)"\" \
@@ -27,13 +29,21 @@ SED_PROCESS = \
        -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
@@ -112,6 +122,15 @@ src_python_location_la_LIBADD = \
        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
@@ -123,6 +142,9 @@ TESTS = \
        src/test-as \
        src/test-network
 
+CLEANFILES += \
+       test.db
+
 check_PROGRAMS = \
        src/test-libloc \
        src/test-stringpool \