components/Makefile
branchs11u1-sru
changeset 2889 29acd6c42d2e
parent 827 0944d8c0158b
equal deleted inserted replaced
2886:3a376cf72e70 2889:29acd6c42d2e
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 
    23 
    24 include ../make-rules/shared-macros.mk
    24 include ../make-rules/shared-macros.mk
    25 
    25 
    26 # for now, the assumption is we build any directory with a Makefile.  This may
    26 # for now, the assumption is we build any directory with a Makefile.  This may
    96 DUMMYPKG += "set org.opensolaris.consolidation=userland\n"
    96 DUMMYPKG += "set org.opensolaris.consolidation=userland\n"
    97 DUMMYPKG += "set info.classification=org.opensolaris.category.2008:System/Core"
    97 DUMMYPKG += "set info.classification=org.opensolaris.category.2008:System/Core"
    98 
    98 
    99 $(WS_LINT_CACHE):	$(WS_LOGS)
    99 $(WS_LINT_CACHE):	$(WS_LOGS)
   100 ifdef CANONICAL_REPO
   100 ifdef CANONICAL_REPO
   101 	@echo "Generating pkglint(1) cache from $(CANONICAL_REPO)..."
   101 	@echo "Generating pkglint(1) cache from CANONICAL_REPO $(CANONICAL_REPO)..."
   102 	@(echo $(DUMMYPKG) | $(PKGLINT) \
   102 	@(echo $(DUMMYPKG) | $(PKGLINT) \
   103 		-c $(WS_LINT_CACHE) -r $(CANONICAL_REPO) /dev/fd/0 \
   103 		-c $(WS_LINT_CACHE) -r $(CANONICAL_REPO) /dev/fd/0 \
   104 		>$(WS_LOGS)/naughty-canonical-repo-actions 2>&1 ; exit 0)
   104 		>$(WS_LOGS)/naughty-canonical-repo-actions 2>&1 || \
       
   105 		( echo "pkglint(1) failed, please see $(WS_LOGS)/naughty-canonical-repo-actions"; \
       
   106 		  exit 1 ) \
       
   107 	)
   105 else
   108 else
   106 	$(MKDIR) $(WS_LINT_CACHE)
   109 	$(MKDIR) $(WS_LINT_CACHE)
   107 endif
   110 endif
   108 
   111 
   109 tools:
   112 tools: