equal
deleted
inserted
replaced
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 |