LIBLOC_REVISION=0
LIBLOC_AGE=0
+pythondir = $(prefix)/lib/python3/dist-packages
+pyexecdir = $(prefix)/lib/python$(PYTHON_VERSION)/lib-dynload
+
DISTCHECK_CONFIGURE_FLAGS = \
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
databasedir = $(localstatedir)/lib/location
pkgconfigdir = $(libdir)/pkgconfig
-# XXX hardcode path for Debian
-pythondir = $(prefix)/lib/python3/dist-packages
-pyexecdir = $(prefix)/lib/python$(PYTHON_VERSION)/lib-dynload
-
# Overwrite Python path
pkgpythondir = $(pythondir)/location
# ------------------------------------------------------------------------------
.PHONY: update-po
-update-po:
+update-po: po/POTFILES.in
$(MAKE) -C po update-po
+po/POTFILES.in: Makefile
+ find $(abs_srcdir)/src | \
+ grep -E "\.(in|py)$$" | sed -e "s@$(abs_srcdir)/@@g" | sort > $@
+
EXTRA_DIST += \
examples/private-key.pem \
examples/public-key.pem \
dist_pkgpython_PYTHON = \
src/python/__init__.py \
src/python/database.py \
+ src/python/downloader.py \
+ src/python/export.py \
src/python/i18n.py \
src/python/importer.py \
src/python/logger.py
$(DESTDIR)/$(prefix)/man/man3/Location.3pm
bin_SCRIPTS = \
- src/python/location-downloader \
- src/python/location-exporter \
- src/python/location-importer \
- src/python/location-query
+ src/python/location \
+ src/python/location-importer
EXTRA_DIST += \
- src/python/location-downloader.in \
- src/python/location-exporter.in \
- src/python/location-importer.in \
- src/python/location-query.in
+ src/python/location.in \
+ src/python/location-importer.in
CLEANFILES += \
- src/python/location-downloader \
- src/python/location-exporter \
- src/python/location-importer \
- src/python/location-query
+ src/python/location \
+ src/python/location-importer
# ------------------------------------------------------------------------------
if HAVE_SYSTEMD
systemdsystemunit_DATA = \
- src/systemd/location-downloader.service \
- src/systemd/location-downloader.timer
+ src/systemd/location-update.service \
+ src/systemd/location-update.timer
CLEANFILES += \
$(systemdsystemunit_DATA)
endif
EXTRA_DIST += \
- src/systemd/location-downloader.service.in \
- src/systemd/location-downloader.timer.in
+ src/systemd/location-update.service.in \
+ src/systemd/location-update.timer.in
# ------------------------------------------------------------------------------
src/test-signature
CLEANFILES += \
- test.db \
testdata.db
testdata.db: examples/python/create-database.py
# ------------------------------------------------------------------------------
MANPAGES = \
- man/location-downloader.8 \
- man/location-query.8
+ man/location.8
MANPAGES_TXT = $(patsubst %.8,%.txt,$(MANPAGES))
MANPAGES_HTML = $(patsubst %.txt,%.html,$(MANPAGES_TXT))
debian/libloc.install \
debian/libloc.lintian-overrides \
debian/libloc.manpages \
+ debian/libloc-perl.install \
debian/rules \
debian/source/format