mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-05-05 12:32:34 +02:00
Signed-off-by: SayfEddine <sayf-eddine.hammemi@scality.com> Signed-off-by: SayfEddine <sayf-eddine.hammemi@scality.com>
This commit is contained in:
parent
5740a1f4b1
commit
1846238a3d
5 changed files with 104 additions and 0 deletions
14
Makefile
14
Makefile
|
@ -2,6 +2,9 @@
|
|||
|
||||
# ARCH can be and default to amd64 is not set.
|
||||
ARCH := amd64 armhf arm64
|
||||
redhat-packages-dist := $(patsubst %.centos,%,$(shell rpm --eval "%{dist}"))
|
||||
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||
mkfile_dir := $(dir $(mkfile_path))
|
||||
|
||||
ifeq ($(ARCH),)
|
||||
ARCH:=amd64
|
||||
|
@ -15,3 +18,14 @@ debian:
|
|||
|
||||
debian-clean:
|
||||
rm *.tgz
|
||||
|
||||
.PHONY: redhat
|
||||
redhat:
|
||||
rpmbuild --undefine=_disable_source_fetch -ba \
|
||||
--verbose $(mkfile_dir)/redhat/SPECS/coredns.spec \
|
||||
--define "_topdir $(mkfile_dir)/redhat" --define "dist $(redhat-packages-dist)"
|
||||
|
||||
redhat-clean:
|
||||
rm -r $(mkfile_dir)/redhat/RPMS/*
|
||||
rm -r $(mkfile_dir)/redhat/SRPMS/*
|
||||
rm -r $(mkfile_dir)/redhat/BUILD/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue