4 # Part of Debian ‘lojban-common’ package.
6 # Copyright © 2005–2016 Ben Finney <ben+debian@benfinney.id.au>
7 # This is free software; you may copy, modify, and/or distribute this work
8 # under the terms of the GNU General Public License, version 3 or later.
9 # No warranty expressed or implied.
10 # See the file ‘/usr/share/common-licenses/GPL-3’ for details.
12 # Packaging variables.
13 PACKAGE_NAME
= lojban-common
14 SHA1SUMS_FILE
= debian
/upstream.sha1sums
18 build
: build-arch build-indep
30 .PHONY
: get-packaged-orig-source
31 get-packaged-orig-source
:
32 $(uscan-download-source
) --download-current-version
34 # Policy §4.9 strongly recommends the ‘get-orig-source’ target:
35 # “This target is optional, but providing it if possible is a good idea.”
37 # This target is an anomaly: per Policy §4.9, it fetches the *latest*
38 # upstream source, regardless of this package's version. To fetch the
39 # upstream source corresponding to this package's *declared* version
40 # in ‘debian/changelog’, use ‘get-packaged-orig-source’ instead.
41 .PHONY
: get-orig-source
43 $(uscan-download-source
)
45 get-orig-source get-packaged-orig-source
: http_proxy
=
46 get-orig-source get-packaged-orig-source
: makefile_dir
= $(abspath
$(dir $(firstword ${MAKEFILE_LIST})))
47 get-orig-source get-packaged-orig-source
: package_dir
= $(abspath
$(dir ${makefile_dir}))
49 define uscan-download-source
50 uscan
--noconf
--verbose \
54 --check-dirname-level
=0 ${package_dir}
55 endef # uscan-download-source
64 cut
-d
' ' -f
3 ${SHA1SUMS_FILE} \
65 | sed
-e
's_$$_\tusr/share/lojban_' \
66 > debian
/${PACKAGE_NAME}.
install
70 binary-indep
: build
install
78 binary
: binary-indep binary-arch
85 # vim: fileencoding=utf-8 filetype=make :