github.com/blixtra/rkt@v0.8.1-0.20160204105720-ab0d1add1a43/rkt/rkt.mk (about)

     1  LOCAL_NAME := $(patsubst %.mk,%,$(MK_FILENAME))
     2  
     3  $(call setup-stamp-file,RKT_STAMP)
     4  
     5  RKT_BINARY := $(BINDIR)/$(LOCAL_NAME)
     6  
     7  # variables for makelib/build_go_bin.mk
     8  BGB_STAMP := $(RKT_STAMP)
     9  BGB_BINARY := $(RKT_BINARY)
    10  BGB_PKG_IN_REPO := $(call go-pkg-from-dir)
    11  BGB_GO_FLAGS := $(strip \
    12  	-ldflags " \
    13  		   $(RKT_STAGE1_DEFAULT_NAME_LDFLAGS) \
    14  		   $(RKT_STAGE1_DEFAULT_VERSION_LDFLAGS) \
    15  		   $(RKT_STAGE1_DEFAULT_LOCATION_LDFLAGS) \
    16  		   $(RKT_VERSION_LDFLAGS) \
    17  		   $(RKT_FEATURES_LDFLAGS) \
    18  		   $(RKT_STAGE1_DEFAULT_IMAGE_FILENAME_LDFLAGS) \
    19  		   $(RKT_STAGE1_DEFAULT_IMAGES_DIRECTORY_LDFLAGS) \
    20  		 " \
    21  	$(RKT_TAGS))
    22  
    23  CLEAN_FILES += $(BGB_BINARY)
    24  TOPLEVEL_STAMPS += $(RKT_STAMP)
    25  
    26  $(call generate-stamp-rule,$(RKT_STAMP))
    27  
    28  $(BGB_BINARY): $(MK_PATH) | $(BINDIR)
    29  
    30  include makelib/build_go_bin.mk
    31  
    32  $(call undefine-namespaces,LOCAL)
    33  # RKT_STAMP deliberately not cleared
    34  # RKT_BINARY deliberately not cleared