Makefile: add "distro-xxx" aliases for rpm and deb
This allows easier building without having to specify if an "rpm" or "deb" needs to be built. Before this patch: make -C rpm centos-8 make -C deb ubuntu-focal With this patch applied: make centos-8 make ubuntu-focal Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Родитель
94f2818458
Коммит
da818ea1ff
16
Makefile
16
Makefile
|
@ -63,13 +63,17 @@ clean: clean-src ## remove build artifacts
|
|||
$(MAKE) -C deb clean
|
||||
$(MAKE) -C static clean
|
||||
|
||||
.PHONY: rpm
|
||||
rpm: checkout ## build rpm packages
|
||||
$(MAKE) -C $@ VERSION=$(VERSION) GO_VERSION=$(GO_VERSION) rpm
|
||||
.PHONY: deb rpm
|
||||
deb rpm: checkout ## build rpm/deb packages
|
||||
$(MAKE) -C $@ VERSION=$(VERSION) GO_VERSION=$(GO_VERSION) $@
|
||||
|
||||
.PHONY: deb
|
||||
deb: checkout ## build deb packages
|
||||
$(MAKE) -C $@ VERSION=$(VERSION) GO_VERSION=$(GO_VERSION) deb
|
||||
.PHONY: centos-% fedora-% rhel-%
|
||||
centos-% fedora-% rhel-%: checkout ## build rpm packages for the specified distro
|
||||
$(MAKE) -C rpm VERSION=$(VERSION) GO_VERSION=$(GO_VERSION) $@
|
||||
|
||||
.PHONY: debian-% raspbian-% ubuntu-%
|
||||
debian-% raspbian-% ubuntu-%: checkout ## build deb packages for the specified distro
|
||||
$(MAKE) -C deb VERSION=$(VERSION) GO_VERSION=$(GO_VERSION) $@
|
||||
|
||||
.PHONY: static
|
||||
static: DOCKER_BUILD_PKGS:=static-linux cross-mac cross-win cross-arm
|
||||
|
|
Загрузка…
Ссылка в новой задаче