mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
cb0d89c56e
There were some build issues updating cri-o to cri-o/cri-o. Since the only thing we need cri-o for is conmon, we should just build using conmon. Signed-off-by: Peter Hunt <pehunt@redhat.com>
20 lines
618 B
Makefile
20 lines
618 B
Makefile
#!/usr/bin/make -f
|
|
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
|
|
outdir := $(CURDIR)
|
|
topdir := $(CURDIR)/rpmbuild
|
|
SHORT_COMMIT ?= $(shell git rev-parse --short=8 HEAD)
|
|
|
|
srpm:
|
|
mkdir -p $(topdir)
|
|
sh $(current_dir)/prepare.sh
|
|
rpmbuild -bs -D "dist %{nil}" -D "_sourcedir build/" -D "_srcrpmdir $(outdir)" -D "_topdir $(topdir)" --nodeps contrib/spec/podman.spec
|
|
|
|
build_binary:
|
|
mkdir -p $(topdir)
|
|
rpmbuild --rebuild -D "_rpmdir $(outdir)" -D "_topdir $(topdir)" $(outdir)/podman-*.git$(SHORT_COMMIT).src.rpm
|
|
|
|
clean:
|
|
rm -fr rpms
|
|
rm -fr conmon
|