summaryrefslogtreecommitdiff
path: root/scripts/mk
AgeCommit message (Collapse)AuthorFilesLines
2019-10-12scripts/mk: Add support for nostrip DEB_BUILD_OPTIONS when setting STRIPGuillem Jover1-1/+6
2019-01-15scripts/mk: Add support for an improved dpkg_vendor_derives_from macroGuillem Jover1-7/+31
Version the macros so that both can be used, and default the unversioned one to the version 0 macro.
2019-01-15scripts/mk: Fix dpkg_vendor_derives_from macro documentationColin Watson1-1/+1
Add a missing comma, and $(shell) make function invocation. Closes: #913816 Signed-off-by: Guillem Jover <guillem@debian.org>
2018-02-19scripts/mk: Export architecture variables by defaultJack Bates1-1/+1
The dpkg-architecture(1) man page states that these variables are exported, and that's what dpkg-buildpackage does itself when setting up the build environment. Doing this is always safe. Closes: #888964 Signed-off-by: Guillem Jover <guillem@debian.org>
2018-01-16scripts/mk: Add new buildtools variablesGuillem Jover1-0/+14
This adds support for AS, STRIP, OBJCOPY, OBJDUMP, NM, AR and RANLIB. Prompted-by: Helmut Grohne <helmut@subdivi.de>
2017-10-16scripts/mk: Add new buildtools.mk supportGuillem Jover3-1/+64
This make fragment contains setup for build tool variables for both TOOL and TOOL_FOR_BUILD. It does not get included by default from default.mk
2016-10-31dpkg-architecture: Add new DEB_*_ARCH_ABI and DEB_*_ARCH_LIBC variablesGuillem Jover1-1/+1
2016-10-29build: Use two space indentation for shell codeGuillem Jover1-3/+3
2016-07-03scripts/mk: Export SOURCE_DATE_EPOCHGuillem Jover1-0/+7
The minimally guaranteed entry point to build packages is the debian/rules file, dpkg-buildpackage and any environment it sets up cannot be relied upon. Export this variable from pkg-info.mk preset from the debian/changelog Timestamp. Closes: #824572
2015-07-30scripts/mk: Add an extra level of escaping for double evalsGuillem Jover2-5/+5
Regression introduced in commit 486241a9d3521ed093be9a02b00f4d404dc39b35. Otherwise the values are not computed lazily, many of which are quite expensive. Rename dpkg_late_eval to dpkg_lazy_eval so that the other makefiles can be intermixed with the ones needing the extra level of escaping. Closes: #793330
2015-01-28build: Use mv instead of «cp -p»Guillem Jover1-1/+2
There's no point in preserving the file metadata if we are going to overwrite it from a shell redirection.
2015-01-28build: Always pass -f to rm callsGuillem Jover1-1/+1
2014-10-12scripts/mk: Set DEB_TARGET_ variables from architecture.mkGuillem Jover1-1/+1
Missed in commit f29ed62d0c340869752c61d55a2df74159c31625.
2014-10-06scripts/mk: Pass DEB_BUILD_OPTIONS to dpkg-buildflagsGuillem Jover1-0/+1
The build flags depend on options specified in DEB_BUILD_OPTIONS, otherwise things like noopt do not work.
2014-04-21dpkg-buildflags: Add support for FCFLAGS, OBJCFLAGS and OBJCXXFLAGSGuillem Jover1-2/+6
Add default values in Debian and derivatives for these flags. Distinguish FFLAGS from FCFLAGS by mentioning that the former is for the Fortran 77 compiler and the latter for the Fortran 9x compiler. Closes: #744326
2013-07-27scripts/mk: Do not use space before dpkg-parsechangelog -S valueGuillem Jover1-3/+3
Regression introduced in commit a86454180804ee6b54732697e2105708dfce1b82. Closes: #718014
2013-06-22dpkg-buildflags: Add GCJFLAGS supportGuillem Jover1-1/+2
This adds default flags for the GNU Compiler for Java, and the supported hardened flags. We do not name the variable JFLAGS nor JAVAFLAGS, to make it very clear these are not flags for javac, they are only for GCJ; so we use the automake variable name as existing precedent. Closes: #708375
2013-04-19scripts/mk: Use new dpkg-parsechangelog -S option instead of sed or awkGuillem Jover1-3/+3
2011-10-15scripts/mk: rewrite architecture.mk with explicit loopsRaphaël Hertzog1-18/+4
Use loops and template code instead of duplicating many similar lines. This avoids copy&paste typos, is shorter and easier to modify. Based-on-patch-by: Thorsten Glaser <tg@mirbsd.de>
2011-10-10scripts/mk: fix buildflags.mk to make use of the DEB_*_MAINT_* variablesRaphaël Hertzog1-6/+18
Make does not export its own variables (even those which have been exported explicitly) to sub-shells executed with $(shell …). Since dpkg-buildflags is called that way, we have to modify the command line to embed variable initializations to ensure that we forward the variables that have been set by the maintainer in debian/rules. Since this code required to loop over all possible flags, I took the opportunity to also set the output variables within a loop construct using a single template (avoids copy&paste mistakes). Reported-by: Pierre Chifflier <pollux@debian.org>
2011-10-08scripts/mk: Fix typo by setting DEB_*_ARCH_BITS instead of DEB_*_ARCHThorsten Glaser1-2/+2
Signed-off-by: Thorsten Glaser <tg@mirbsd.org> Signed-off-by: Guillem Jover <guillem@debian.org>
2011-09-23scripts/mk: Simplify sed expression for DEB_DISTRIBUTIONGuillem Jover1-1/+1
2011-09-21scripts/mk/pkg-info.mk: DEB_DISTRIBUTION returns all listed distributionsRaphaël Hertzog1-2/+2
Update DEB_DISTRIBUTION to return all distributions listed in the current changelog entry instead of only the first one.
2011-09-21scripts/mk/pkg-info.mk: adjust variable namesRaphaël Hertzog1-8/+8
Rename DEB_VERSION_NOREV and DEB_VERSION_NOEPOCH to DEB_VERSION_EPOCH_UPSTREAM and DEB_VERSION_UPSTREAM_REVISION to define them by inclusion rather than by exclusion. Rename DEB_SOURCE_PACKAGE into the less verbose DEB_SOURCE. Suggested-by: Guillem Jover <guillem@debian.org>
2011-08-01Provide a new makefile snippet exporting basic package informationRaphaël Hertzog3-0/+19
2011-07-22dpkg-dev: add some common makefile snippets for use in rules filesRaphaël Hertzog5-0/+91
data/architecture.mk: variables related to dpkg-architecture data/buildflags.mk: variables related to dpkg-builflags data/vendor.mk: variables related to dpkg-vendor data/default.mk: all of the above