Codebase list apt-listchanges / 6cb7660d-c556-4f52-837a-8f1bb8366c0c/main common.mk
6cb7660d-c556-4f52-837a-8f1bb8366c0c/main

Tree @6cb7660d-c556-4f52-837a-8f1bb8366c0c/main (Download .tar.gz)

common.mk @6cb7660d-c556-4f52-837a-8f1bb8366c0c/mainraw · history · blame

# vim:ts=2:et
# common Makefile includes for apt-listchanges
#
override TOPDIR   := $(dir $(CURDIR)/$(lastword $(MAKEFILE_LIST)))
override PACKAGE  := apt-listchanges

ifndef VERSION
  CHANGELOGFILE   := $(TOPDIR)/debian/changelog
  VERSION         := $(shell LC_ALL=C dpkg-parsechangelog -l$(CHANGELOGFILE) -SVersion | sed -e 's/~$$//')
  SHELL           := $(SHELL) -e

  export VERSION SHELL
  unexport CDPATH
endif

XGETTEXT_COMMON_OPTIONS  := --msgid-bugs-address $(PACKAGE)@packages.debian.org  \
                            --package-name $(PACKAGE)                            \
                            --package-version $(VERSION)