github.com/blixtra/rkt@v0.8.1-0.20160204105720-ab0d1add1a43/stage1_fly/makelib/aci_binary.mk (about) 1 # The path of this file. This file is included (or at least it should 2 # be) with a standard include directive instead of our inc-one (or 3 # inc-many), so the MK_PATH, MK_FILENAME and MK_SRCDIR are set to 4 # values specific to the parent file (that is - including this one). 5 _FAB_PATH_ := $(lastword $(MAKEFILE_LIST)) 6 # Name of a binary, deduced upon filename of a parent Makefile. 7 _FAB_NAME_ := $(patsubst %.mk,%,$(MK_FILENAME)) 8 # Path to built binary. Not the one in the ACI rootfs. 9 _FAB_BINARY_ := $(FLY_TOOLSDIR)/$(_FAB_NAME_) 10 # Path to the built binary, copied to ACI rootfs directory 11 _FAB_ACI_BINARY_ := $(FLY_ACIROOTFSDIR)/$(_FAB_NAME_) 12 13 $(call setup-stamp-file,_FAB_STAMP_,binary-build) 14 $(call generate-stamp-rule,$(_FAB_STAMP_)) 15 16 # variables for makelib/build_go_bin.mk 17 BGB_STAMP := $(_FAB_STAMP_) 18 BGB_BINARY := $(_FAB_BINARY_) 19 BGB_PKG_IN_REPO := $(call go-pkg-from-dir) 20 21 include makelib/build_go_bin.mk 22 23 $(_FAB_BINARY_): $(_FAB_PATH_) $(MK_PATH) | $(FLY_TOOLSDIR) 24 $(_FAB_STAMP_): $(_FAB_ACI_BINARY_) 25 26 CLEAN_FILES += $(_FAB_BINARY_) 27 INSTALL_FILES += $(_FAB_BINARY_):$(_FAB_ACI_BINARY_):- 28 FLY_STAMPS += $(_FAB_STAMP_) 29 30 $(call undefine-namespaces,FAB _FAB)