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

     1  FLY_ACIDIR := $(BUILDDIR)/aci-for-fly-flavor
     2  FLY_ACIROOTFSDIR := $(FLY_ACIDIR)/rootfs
     3  FLY_TOOLSDIR := $(TOOLSDIR)/fly
     4  FLY_STAMPS :=
     5  FLY_SUBDIRS := run gc enter aci
     6  FLY_STAGE1 := $(BINDIR)/stage1-fly.aci
     7  
     8  $(call setup-stamp-file,FLY_STAMP,aci-build)
     9  
    10  $(call inc-many,$(foreach sd,$(FLY_SUBDIRS),$(sd)/$(sd).mk))
    11  
    12  $(call generate-stamp-rule,$(FLY_STAMP),$(FLY_STAMPS) $(ACTOOL_STAMP),, \
    13  	$(call vb,vt,ACTOOL,$(call vsp,$(FLY_STAGE1))) \
    14  	"$(ACTOOL)" build --overwrite --owner-root "$(FLY_ACIDIR)" "$(FLY_STAGE1)")
    15  
    16  INSTALL_DIRS += \
    17  	$(FLY_TOOLSDIR):- \
    18  	$(FLY_ACIDIR):- \
    19  	$(FLY_ACIROOTFSDIR):-
    20  
    21  FLY_FLAVORS := $(call commas-to-spaces,$(RKT_STAGE1_FLAVORS))
    22  
    23  CLEAN_FILES += $(FLY_STAGE1)
    24  
    25  ifneq ($(filter fly,$(FLY_FLAVORS)),)
    26  
    27  # actually build the fly stage1 only if requested
    28  
    29  TOPLEVEL_STAMPS += $(FLY_STAMP)
    30  
    31  endif
    32  
    33  $(call undefine-namespaces,FLY _FLY)