4fc6dd8b97
For the regular hack/build/test cycles, creating a new deployment each time becomes overkill. We add a new `make vmoverlay` target which directly overlays the newly built binaries on an unlocked system. We also make rsync smarter so that we can afford to not `make clean` everytime while still allowing the host's repo to be fully configured. Closes: #360 Approved by: cgwalters
33 lines
952 B
Makefile
33 lines
952 B
Makefile
all:
|
|
echo "Targets: buildimg build install"
|
|
|
|
BUILDER_ARGS = sudo /usr/bin/docker run --rm -ti --privileged -v /var/roothome:/root
|
|
BUILDER_IMG = rpm-ostree-builder
|
|
|
|
BUILDER_RUN = $(BUILDER_ARGS) $(BUILDER_IMG)
|
|
|
|
buildimg:
|
|
sudo docker build -t $(BUILDER_IMG) -f Dockerfile.builder .
|
|
|
|
build:
|
|
if ! test -f ../configure; then \
|
|
$(BUILDER_RUN) env NOCONFIGURE=1 ./autogen.sh; \
|
|
fi
|
|
if ! test -f ../Makefile; then \
|
|
$(BUILDER_RUN) ./configure --prefix=/usr --libdir=/usr/lib64; \
|
|
fi
|
|
$(BUILDER_RUN) sh -c make -j 4
|
|
|
|
install: build
|
|
sudo sh checkout.sh
|
|
$(BUILDER_ARGS) -v /etc:/host/etc \
|
|
-v /ostree/repo/tmp/vmcheck.ro/usr:/host/usr \
|
|
$(BUILDER_IMG) sudo make install DESTDIR=/host
|
|
sudo VERSION=$(VERSION) sh commit_and_deploy.sh
|
|
|
|
ofsinstall: build
|
|
ostree admin unlock || :
|
|
$(BUILDER_ARGS) -v /etc:/host/etc \
|
|
-v /usr:/host/usr \
|
|
$(BUILDER_IMG) sudo make install DESTDIR=/host
|