"Fossies" - the Fresh Open Source Software Archive

Member "dpkg-1.19.7/scripts/mk/architecture.mk" (19 Apr 2019, 621 Bytes) of package /linux/misc/dpkg_1.19.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # This Makefile snippet defines all the DEB_HOST_* / DEB_BUILD_* variables
    2 # that dpkg-architecture can return. Existing values of those variables
    3 # are preserved as per policy.
    4 
    5 dpkg_lazy_eval ?= $$(or $$(value DPKG_CACHE_$(1)),$$(eval DPKG_CACHE_$(1) := $$(shell $(2)))$$(value DPKG_CACHE_$(1)))
    6 
    7 dpkg_architecture_setvar = export $(1) ?= $(call dpkg_lazy_eval,$(1),dpkg-architecture -q$(1))
    8 
    9 $(foreach machine,BUILD HOST TARGET,\
   10   $(foreach var,ARCH ARCH_ABI ARCH_LIBC ARCH_OS ARCH_CPU ARCH_BITS ARCH_ENDIAN GNU_CPU GNU_SYSTEM GNU_TYPE MULTIARCH,\
   11     $(eval $(call dpkg_architecture_setvar,DEB_$(machine)_$(var)))))