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:
Sebastiaan van Stijn 2021-10-22 17:35:22 +02:00
Родитель 94f2818458
Коммит da818ea1ff
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 76698F39D527CE8C
1 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -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