... | ... |
@@ -4,6 +4,11 @@ |
4 | 4 |
|
5 | 5 |
SRCROOT := . |
6 | 6 |
MAKEROOT=$(SRCROOT)/support/make |
7 |
+ |
|
8 |
+# do not build these targets as '%' |
|
9 |
+$(MAKEROOT)/makedefs.mk: ; |
|
10 |
+Makefile: ; |
|
11 |
+ |
|
7 | 12 |
include $(MAKEROOT)/makedefs.mk |
8 | 13 |
|
9 | 14 |
ifdef PHOTON_CACHE_PATH |
... | ... |
@@ -25,7 +30,8 @@ PHOTON_PUBLISH_RPMS := publish-rpms |
25 | 25 |
endif |
26 | 26 |
|
27 | 27 |
.PHONY : all iso clean toolchain toolchain-minimal photon-build-machine photon-vagrant-build photon-vagrant-local \ |
28 |
-check check-bison check-g++ check-gawk check-createrepo check-vagrant check-packer check-packer-ovf-plugin |
|
28 |
+check check-bison check-g++ check-gawk check-createrepo check-vagrant check-packer check-packer-ovf-plugin \ |
|
29 |
+clean-install clean-chroot |
|
29 | 30 |
|
30 | 31 |
all: iso |
31 | 32 |
|
... | ... |
@@ -129,7 +135,6 @@ $(PHOTON_STAGE): |
129 | 129 |
@echo "Building LOGS folder..." |
130 | 130 |
@test -d $(PHOTON_LOGS_DIR) || $(MKDIR) -p $(PHOTON_LOGS_DIR) |
131 | 131 |
|
132 |
- |
|
133 | 132 |
clean: clean-install clean-chroot |
134 | 133 |
@echo "Deleting Photon ISO..." |
135 | 134 |
@$(RM) -f $(PHOTON_STAGE)/photon.iso |
... | ... |
@@ -174,7 +179,6 @@ PACKER_ARGS="-only=$(VAGRANT_BUILD)" |
174 | 174 |
endif |
175 | 175 |
|
176 | 176 |
photon-vagrant-local: check-packer check-vagrant |
177 |
- |
|
178 | 177 |
@echo "Building a Photon Vagrant box with Packer..." |
179 | 178 |
@if [ -e $(PHOTON_STAGE)/photon.iso ]; then \ |
180 | 179 |
cd $(PHOTON_PACKER_TEMPLATES) && \ |
... | ... |
@@ -220,16 +224,16 @@ endif |
220 | 220 |
check-packer-ovf-plugin: |
221 | 221 |
@[[ -e ~/.packer.d/plugins/packer-post-processor-vagrant-vmware-ovf ]] || { echo "Packer OVF post processor not installed. Aborting" >&2; exit 1; } |
222 | 222 |
|
223 |
-#%: check $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) |
|
224 |
-# $(eval PKG_NAME = $@) |
|
225 |
-# @echo "Building package $(PKG_NAME) ..." |
|
226 |
-# @cd $(PHOTON_PKG_BUILDER_DIR) && \ |
|
227 |
-# $(PHOTON_PACKAGE_BUILDER) -i $(PKG_NAME)\ |
|
228 |
-# -b $(PHOTON_CHROOT_PATH) \ |
|
229 |
-# -s $(PHOTON_SPECS_DIR) \ |
|
230 |
-# -r $(PHOTON_RPMS_DIR) \ |
|
231 |
-# -x $(PHOTON_SRCS_DIR) \ |
|
232 |
-# -p $(PHOTON_PUBLISH_RPMS_DIR) \ |
|
233 |
-# -l $(PHOTON_LOGS_DIR) |
|
223 |
+%: check $(PHOTON_PUBLISH_RPMS) $(PHOTON_SOURCES) |
|
224 |
+ $(eval PKG_NAME = $@) |
|
225 |
+ @echo "Building package $(PKG_NAME) ..." |
|
226 |
+ @cd $(PHOTON_PKG_BUILDER_DIR) && \ |
|
227 |
+ $(PHOTON_PACKAGE_BUILDER) -i $(PKG_NAME)\ |
|
228 |
+ -b $(PHOTON_CHROOT_PATH) \ |
|
229 |
+ -s $(PHOTON_SPECS_DIR) \ |
|
230 |
+ -r $(PHOTON_RPMS_DIR) \ |
|
231 |
+ -x $(PHOTON_SRCS_DIR) \ |
|
232 |
+ -p $(PHOTON_PUBLISH_RPMS_DIR) \ |
|
233 |
+ -l $(PHOTON_LOGS_DIR) |
|
234 | 234 |
|
235 | 235 |
|