mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Remove unnecessary/not-needed release.txt target
Previously this was needed for an automated release process. That automation has long since been removed. Simplify the Makefile by removing the target and references. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
35
Makefile
35
Makefile
@ -260,7 +260,7 @@ run-docker-py-tests:
|
|||||||
$(eval testLogs=$(shell mktemp))
|
$(eval testLogs=$(shell mktemp))
|
||||||
./bin/podman run --rm --security-opt label=disable --privileged -v $(testLogs):/testLogs --net=host -e DOCKER_HOST=tcp://localhost:8080 $(DOCKERPY_IMAGE) sh -c "pytest $(DOCKERPY_TEST) "
|
./bin/podman run --rm --security-opt label=disable --privileged -v $(testLogs):/testLogs --net=host -e DOCKER_HOST=tcp://localhost:8080 $(DOCKERPY_IMAGE) sh -c "pytest $(DOCKERPY_TEST) "
|
||||||
|
|
||||||
pkg/api/swagger.yaml: .gopathok release.txt
|
pkg/api/swagger.yaml: .gopathok
|
||||||
make -C pkg/api
|
make -C pkg/api
|
||||||
|
|
||||||
.PHONY: swagger
|
.PHONY: swagger
|
||||||
@ -271,7 +271,6 @@ clean: ## Clean artifacts
|
|||||||
rm -rf \
|
rm -rf \
|
||||||
.gopathok \
|
.gopathok \
|
||||||
_output \
|
_output \
|
||||||
release.txt \
|
|
||||||
$(wildcard podman-remote*.zip) \
|
$(wildcard podman-remote*.zip) \
|
||||||
$(wildcard podman*.tar.gz) \
|
$(wildcard podman*.tar.gz) \
|
||||||
bin \
|
bin \
|
||||||
@ -425,54 +424,30 @@ tests-included:
|
|||||||
codespell:
|
codespell:
|
||||||
codespell -S bin,vendor,.git,go.sum,changelog.txt,.cirrus.yml,"RELEASE_NOTES.md,*.xz,*.gz,*.tar,*.tgz,bin2img,*ico,*.png,*.1,*.5,copyimg,*.orig,apidoc.go" -L uint,iff,od,seeked,splitted,marge,ERRO,hist -w
|
codespell -S bin,vendor,.git,go.sum,changelog.txt,.cirrus.yml,"RELEASE_NOTES.md,*.xz,*.gz,*.tar,*.tgz,bin2img,*ico,*.png,*.1,*.5,copyimg,*.orig,apidoc.go" -L uint,iff,od,seeked,splitted,marge,ERRO,hist -w
|
||||||
|
|
||||||
# When publishing releases include critical build-time details
|
podman-release.tar.gz: binaries docs
|
||||||
.PHONY: release.txt
|
|
||||||
release.txt:
|
|
||||||
# X-RELEASE-INFO format depended upon by automated tooling
|
|
||||||
echo -n "X-RELEASE-INFO:" > "$@"
|
|
||||||
for field in "$(RELEASE_BASENAME)" "$(RELEASE_VERSION)" \
|
|
||||||
"$(RELEASE_DIST)" "$(RELEASE_DIST_VER)" "$(RELEASE_ARCH)"; do \
|
|
||||||
echo -n " $$field"; done >> "$@"
|
|
||||||
echo "" >> "$@"
|
|
||||||
|
|
||||||
podman-release.tar.gz: binaries docs release.txt
|
|
||||||
$(eval TMPDIR := $(shell mktemp -d -p '' podman_XXXX))
|
$(eval TMPDIR := $(shell mktemp -d -p '' podman_XXXX))
|
||||||
$(eval SUBDIR := podman-v$(RELEASE_NUMBER))
|
$(eval SUBDIR := podman-v$(RELEASE_NUMBER))
|
||||||
mkdir -p "$(TMPDIR)/$(SUBDIR)"
|
mkdir -p "$(TMPDIR)/$(SUBDIR)"
|
||||||
$(MAKE) install.bin install.man install.cni install.systemd "DESTDIR=$(TMPDIR)/$(SUBDIR)" "PREFIX=/usr"
|
$(MAKE) install.bin install.man install.cni install.systemd "DESTDIR=$(TMPDIR)/$(SUBDIR)" "PREFIX=/usr"
|
||||||
# release.txt location and content depended upon by automated tooling
|
tar -czvf $@ --xattrs -C "$(TMPDIR)" "./$(SUBDIR)"
|
||||||
cp release.txt "$(TMPDIR)/"
|
|
||||||
tar -czvf $@ --xattrs -C "$(TMPDIR)" "./release.txt" "./$(SUBDIR)"
|
|
||||||
-rm -rf "$(TMPDIR)"
|
-rm -rf "$(TMPDIR)"
|
||||||
|
|
||||||
# Must call make in-line: Dependency-spec. w/ wild-card.
|
# Must call make in-line: Dependency-spec. w/ wild-card.
|
||||||
podman-remote-release-%.zip:
|
podman-remote-release-%.zip:
|
||||||
$(MAKE) podman-remote-$* install-podman-remote-$*-docs release.txt \
|
$(MAKE) podman-remote-$* install-podman-remote-$*-docs \
|
||||||
RELEASE_BASENAME=$(shell hack/get_release_info.sh REMOTENAME) \
|
RELEASE_BASENAME=$(shell hack/get_release_info.sh REMOTENAME) \
|
||||||
RELEASE_DIST=$* RELEASE_DIST_VER="-"
|
RELEASE_DIST=$* RELEASE_DIST_VER="-"
|
||||||
$(eval TMPDIR := $(shell mktemp -d -p '' $podman_remote_XXXX))
|
$(eval TMPDIR := $(shell mktemp -d -p '' $podman_remote_XXXX))
|
||||||
$(eval SUBDIR := podman-$(RELEASE_VERSION))
|
$(eval SUBDIR := podman-$(RELEASE_VERSION))
|
||||||
$(eval BINSFX := $(shell test "$*" != "windows" || echo ".exe"))
|
$(eval BINSFX := $(shell test "$*" != "windows" || echo ".exe"))
|
||||||
mkdir -p "$(TMPDIR)/$(SUBDIR)"
|
mkdir -p "$(TMPDIR)/$(SUBDIR)"
|
||||||
# release.txt location and content depended upon by automated tooling
|
|
||||||
cp release.txt "$(TMPDIR)/"
|
|
||||||
cp ./bin/podman-remote-$*$(BINSFX) "$(TMPDIR)/$(SUBDIR)/podman$(BINSFX)"
|
cp ./bin/podman-remote-$*$(BINSFX) "$(TMPDIR)/$(SUBDIR)/podman$(BINSFX)"
|
||||||
cp -r ./docs/build/remote/$* "$(TMPDIR)/$(SUBDIR)/docs/"
|
cp -r ./docs/build/remote/$* "$(TMPDIR)/$(SUBDIR)/docs/"
|
||||||
cp ./contrib/remote/containers.conf "$(TMPDIR)/$(SUBDIR)/"
|
cp ./contrib/remote/containers.conf "$(TMPDIR)/$(SUBDIR)/"
|
||||||
cd "$(TMPDIR)/$(SUBDIR)" && \
|
cd "$(TMPDIR)/$(SUBDIR)" && \
|
||||||
zip --recurse-paths "$(CURDIR)/$@" "./release.txt" "./"
|
zip --recurse-paths "$(CURDIR)/$@" "./"
|
||||||
-rm -rf "$(TMPDIR)"
|
-rm -rf "$(TMPDIR)"
|
||||||
|
|
||||||
.PHONY: podman-release
|
|
||||||
podman-release:
|
|
||||||
rm -f release.txt
|
|
||||||
$(MAKE) podman-release.tar.gz
|
|
||||||
|
|
||||||
.PHONY: podman-remote-%-release
|
|
||||||
podman-remote-%-release:
|
|
||||||
rm -f release.txt
|
|
||||||
$(MAKE) podman-remote-release-$*.zip
|
|
||||||
|
|
||||||
.PHONY: generate-bindings
|
.PHONY: generate-bindings
|
||||||
generate-bindings:
|
generate-bindings:
|
||||||
ifneq ($(shell uname -s), Darwin)
|
ifneq ($(shell uname -s), Darwin)
|
||||||
|
Reference in New Issue
Block a user