-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
61 lines (46 loc) · 1.43 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Makefile.am
SUBDIRS = provision
containerfile = Containerfile
gvg_version = $(top_srcdir)/.version
pkg_name = $(top_srcdir)/.package-name
pkg_release = $(PACKAGE)-release
vagrantfile = Vagrantfile
ACLOCAL_AMFLAGS = -I m4 -I .quickhatch/m4
BUILT_SOURCES = $(gvg_version) \
$(pkg_name)
pkgbox_DATA = $(pkg_release) \
$(vagrantfile)
CLEANFILES = $(gvg_version) \
$(pkg_name) \
$(pkg_release)
EXTRA_DIST = $(gvg_version) \
m4/gnulib-cache.m4 \
$(pkg_name) \
README.md
$(gvg_version):
$(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
$(pkg_name):
$(AM_V_GEN)echo $(PACKAGE_NAME) > $@-t && mv $@-t $@
$(pkg_release): $(gvg_version)
$(AM_V_GEN)echo "$(PACKAGE) release $(VERSION)" > $@-t && mv $@-t $@
if HAVE_BUILDAH
build-toolbox-image-local: $(containerfile) Makefile
$(AM_V_GEN)$(BUILDAH) bud --format oci --tag $(TOOLBOX_REPO):$(TOOLBOX_TAG)
endif
if HAVE_PODMAN
push-toolbox-image:
$(AM_V_GEN)$(PODMAN) push \
$(TOOLBOX_REPO):$(TOOLBOX_TAG) \
$(TOOLBOX_REGISTRY)/$(REGISTRY_ACCOUNT)/$(TOOLBOX_REPO):$(TOOLBOX_TAG)
endif
.PHONY: gen-ChangeLog
gen-ChangeLog:
$(AM_V_GEN)if test -d .git; then \
$(top_srcdir)/build-aux/gitlog-to-changelog > $(distdir)/cl-t;\
rm -f $(distdir)/ChangeLog; \
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
fi
.PHONY: gen-tarball-version
gen-tarball-version:
$(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
dist-hook: gen-ChangeLog gen-tarball-version