The Origin CI tool will be interacting with this repository
solely though Makefile targets, so it is necessary to write
targets to build the Origin RPMs from current source.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
| ... | ... |
@@ -234,3 +234,18 @@ install-travis: |
| 234 | 234 |
hack/install-tools.sh |
| 235 | 235 |
.PHONY: install-travis |
| 236 | 236 |
|
| 237 |
+# Build RPMs only for the Linux AMD64 target |
|
| 238 |
+# |
|
| 239 |
+# Example: |
|
| 240 |
+# make build-rpms |
|
| 241 |
+build-rpms: |
|
| 242 |
+ OS_ONLY_BUILD_PLATFORMS='linux/amd64' tito build --test --rpm --no-cleanup --rpmbuild-options='--define "make_redistributable 0"' |
|
| 243 |
+.PHONY: build-rpms |
|
| 244 |
+ |
|
| 245 |
+# Build RPMs for all architectures |
|
| 246 |
+# |
|
| 247 |
+# Example: |
|
| 248 |
+# make build-rpms-redistributable |
|
| 249 |
+build-rpms-redistributable: |
|
| 250 |
+ tito build --test --rpm --no-cleanup --rpmbuild-options='--define "make_redistributable 1"' |
|
| 251 |
+.PHONY: build-rpms-redistributable |