forked from groonga/groonga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
42 lines (33 loc) · 1011 Bytes
/
Makefile.am
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
DISTRIBUTIONS = debian ubuntu
CHROOT_BASE = /var/lib/chroot
ARCHITECTURES = amd64
CODES = squeeze wheezy unstable lucid maverick
all:
release: build update sign upload
remove-existing-packages:
for distribution in $(DISTRIBUTIONS); do \
find $${distribution}/pool -type f -delete; \
done
ensure-rsync-path:
@if test -z "$(RSYNC_PATH)"; then \
echo "--with-rsync-path configure option must be specified."; \
false; \
fi
download: ensure-rsync-path
for distribution in $(DISTRIBUTIONS); do \
rsync -avz $(RSYNC_PATH)/$${distribution}/ $${distribution}; \
done
update:
./update-repository.sh '$(PACKAGE_NAME)' '$(ARCHITECTURES)' '$(CODES)'
sign:
./sign-repository.sh '$(CODES)'
upload: ensure-rsync-path
for distribution in $(DISTRIBUTIONS); do \
(cd $${distribution}; \
rsync -avz --delete \
dists pool $(RSYNC_PATH)/$${distribution}); \
done
build:
./build-in-chroot.sh \
$(PACKAGE) $(VERSION) $(CHROOT_BASE) \
'$(ARCHITECTURES)' '$(CODES)'