summaryrefslogtreecommitdiff
path: root/packaging/debs/apt-repository/Makefile
blob: ce4347bcb4a2fa33a39370d4af8bf6c9ed43e29f (plain)
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
SIGNING_USER_EMAIL=info@rabbitmq.com

ifeq "$(UNOFFICIAL_RELEASE)" ""
HOME_ARG=HOME=$(GNUPG_PATH)
endif

all: debian_apt_repository

clean:
	rm -rf debian

CAN_HAS_REPREPRO=$(shell [ -f /usr/bin/reprepro ] && echo true)
ifeq ($(CAN_HAS_REPREPRO), true)
debian_apt_repository: clean
	mkdir -p debian/conf
	cp -a distributions debian/conf
ifeq "$(UNOFFICIAL_RELEASE)" ""
	echo SignWith: $(SIGNING_USER_EMAIL) >> debian/conf/distributions
endif
	for FILE in ../Debian/*.changes ; do \
		$(HOME_ARG) reprepro --ignore=wrongdistribution \
			-Vb debian include kitten $${FILE} ; \
	done
	reprepro -Vb debian createsymlinks
else
debian_apt_repository:
	@echo Not building APT repository as reprepro could not be found
endif