common.mk 643 B

12345678910111213141516171819
  1. # vim:ts=2:et
  2. # common Makefile includes for apt-listchanges
  3. #
  4. override TOPDIR := $(dir $(CURDIR)/$(lastword $(MAKEFILE_LIST)))
  5. override PACKAGE := apt-listchanges
  6. ifndef VERSION
  7. CHANGELOGFILE := $(TOPDIR)/debian/changelog
  8. VERSION := $(shell LC_ALL=C dpkg-parsechangelog -l$(CHANGELOGFILE) -SVersion | sed -e 's/~$$//')
  9. SHELL := $(SHELL) -e
  10. export VERSION SHELL
  11. unexport CDPATH
  12. endif
  13. XGETTEXT_COMMON_OPTIONS := --msgid-bugs-address $(PACKAGE)@packages.debian.org \
  14. --package-name $(PACKAGE) \
  15. --package-version $(VERSION)