mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 20:11:42 +01:00
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
REPOSITORIES_PATH = repositories
|
|
DISTRIBUTIONS = centos
|
|
ARCHITECTURES = i386 x86_64
|
|
MYSQL_VARIANTS = mysql55 mysql56-community mariadb percona-server-56
|
|
SPEC_DIR = $(builddir)/../rpm/centos
|
|
|
|
all:
|
|
|
|
release: download build sign-packages update-repository upload
|
|
|
|
remove-existing-packages:
|
|
for distribution in $(DISTRIBUTIONS); do \
|
|
find $${distribution} -name "*.rpm" -delete; \
|
|
done
|
|
|
|
ensure-rsync-path:
|
|
@if test -z "$(RSYNC_PATH)"; then \
|
|
echo "--with-rsync-path configure option must be specified."; \
|
|
false; \
|
|
fi
|
|
|
|
sign-packages:
|
|
./sign-rpm.sh '$(GPG_UID)' '$(REPOSITORIES_PATH)/' '$(DISTRIBUTIONS)'
|
|
|
|
update-repository:
|
|
./update-repository.sh '$(REPOSITORIES_PATH)/' '$(DISTRIBUTIONS)'
|
|
|
|
upload: ensure-rsync-path
|
|
for distribution in $(DISTRIBUTIONS); do \
|
|
rsync -avz --progress --delete --exclude .gitignore \
|
|
$(REPOSITORIES_PATH)/$${distribution}/ \
|
|
$(RSYNC_PATH)/$${distribution}; \
|
|
done
|
|
|
|
download: ensure-rsync-path
|
|
mkdir -p $(REPOSITORIES_PATH)
|
|
for distribution in $(DISTRIBUTIONS); do \
|
|
rsync -avz --progress --delete \
|
|
$(RSYNC_PATH)/$${distribution}/ \
|
|
$(REPOSITORIES_PATH)/$${distribution}; \
|
|
done
|
|
|
|
build: build-in-vm
|
|
|
|
build-in-vm: source specs env.sh
|
|
./build-in-vm.sh \
|
|
"$(PACKAGE)" \
|
|
"$(SPEC_DIR)" \
|
|
"$(MYSQL_VARIANTS)" \
|
|
"$(ARCHITECTURES)"
|
|
|
|
source: tmp/$(PACKAGE)-$(VERSION).tar.gz
|
|
|
|
tmp/$(PACKAGE)-$(VERSION).tar.gz: $(abs_top_builddir)/$(PACKAGE)-$(VERSION).tar.gz
|
|
mkdir -p tmp/
|
|
cp $(abs_top_builddir)/$(PACKAGE)-$(VERSION).tar.gz tmp/
|
|
|
|
$(abs_top_builddir)/$(PACKAGE)-$(VERSION).tar.gz:
|
|
cd $(abs_top_builddir) && $(MAKE) dist
|
|
|
|
specs: $(SPEC_DIR)/mysql55-$(PACKAGE).spec
|
|
specs: $(SPEC_DIR)/mysql56-community-$(PACKAGE).spec
|
|
specs: $(SPEC_DIR)/mariadb-$(PACKAGE).spec
|
|
specs: $(SPEC_DIR)/percona-server-56-$(PACKAGE).spec
|