components/Makefile
changeset 623 15f87c23a86e
parent 528 db21abcd4c91
child 774 d0cbca26a17c
equal deleted inserted replaced
622:fd8f0e501744 623:15f87c23a86e
    59 test:			TARGET = test
    59 test:			TARGET = test
    60 prep build install publish test:	TEMPLATE_ZONE=$(ZONE)
    60 prep build install publish test:	TEMPLATE_ZONE=$(ZONE)
    61 prep build install publish test:	LOG = >$(WS_LOGS)/$(@F).$(TARGET).log 2>&1
    61 prep build install publish test:	LOG = >$(WS_LOGS)/$(@F).$(TARGET).log 2>&1
    62 
    62 
    63 # turn off pkglint for the individual component builds.
    63 # turn off pkglint for the individual component builds.
       
    64 ifeq   ($(strip $(PKGLINT_COMPONENT)),)
    64 publish:		MAKEFLAGS += PKGLINT=/bin/true
    65 publish:		MAKEFLAGS += PKGLINT=/bin/true
       
    66 endif
    65 
    67 
    66 .DEFAULT:	publish
    68 .DEFAULT:	publish
    67 
    69 
    68 build install publish test: $(COMPONENT_DIRS)
    70 build install publish test: $(COMPONENT_DIRS)
    69 
    71 
    84 
    86 
    85 $(WS_REPO):
    87 $(WS_REPO):
    86 	$(PKGREPO) create $(PKG_REPO)
    88 	$(PKGREPO) create $(PKG_REPO)
    87 	$(PKGREPO) add-publisher -s $(PKG_REPO) $(PUBLISHER)
    89 	$(PKGREPO) add-publisher -s $(PKG_REPO) $(PUBLISHER)
    88 
    90 
       
    91 DUMMYPKG =  "set name=fmri value=pkg:/dummy@0,$(BUILD_VERSION)\n"
       
    92 DUMMYPKG += "set pkg.summary=dummy\n"
       
    93 DUMMYPKG += "set org.opensolaris.consolidation=userland\n"
       
    94 DUMMYPKG += "set info.classification=org.opensolaris.category.2008:System/Core"
       
    95 
    89 $(WS_LINT_CACHE):	$(WS_LOGS)
    96 $(WS_LINT_CACHE):	$(WS_LOGS)
    90 ifdef CANONICAL_REPO
    97 ifdef CANONICAL_REPO
    91 	@echo "Generating pkglint(1) cache from $(CANONICAL_REPO)..."
    98 	@echo "Generating pkglint(1) cache from $(CANONICAL_REPO)..."
    92 	@(echo "set name=fmri value=pkg:/dummy@0,$(BUILD_VERSION)" | $(PKGLINT) \
    99 	@(echo $(DUMMYPKG) | $(PKGLINT) \
    93 		-c $(WS_LINT_CACHE) -r $(CANONICAL_REPO) /dev/fd/0 \
   100 		-c $(WS_LINT_CACHE) -r $(CANONICAL_REPO) /dev/fd/0 \
    94 		>$(WS_LOGS)/naughty-canonical-repo-actions 2>&1 ; exit 0)
   101 		>$(WS_LOGS)/naughty-canonical-repo-actions 2>&1 ; exit 0)
    95 else
   102 else
    96 	$(MKDIR) $(WS_LINT_CACHE)
   103 	$(MKDIR) $(WS_LINT_CACHE)
    97 endif
   104 endif