blob: 94b2d55a2b286a1aec88806c4106932a9d0bfb3b (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
#
# Project Home:
# ============
# http://www.epicsol.org
#
# Downloads:
# =========
# ftp://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION
#
url = http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION
help_url = http://ftp.epicsol.org/pub/epic/help
pkgname = epic5
old_versions = 1.1.6 1.1.9 1.1.10 1.1.11
old_suffix = tar.bz2
old_tarballs = $(addsuffix .$(old_suffix), $(addprefix $(pkgname)-, $(old_versions)))
old_sha1s = $(addsuffix .sha1sum, $(old_tarballs))
new_versions = 1.4 1.6 1.8 2.1.1 2.1.2 2.1.12
new_suffix = tar.xz
new_tarballs = $(addsuffix .$(new_suffix), $(addprefix $(pkgname)-, $(new_versions)))
new_sha1s = $(addsuffix .sha1sum, $(new_tarballs))
help = epic-help-current.tar.gz
help_sha1s += epic-help-current.tar.gz.sha1sum
tarballs = $(new_tarballs) $(old_tarballs)
all: $(tarballs) $(old_sha1s) $(new_sha1s) $(help) $(help_sha1s)
.PHONY: downloads_clean
$(tarballs):
@echo -e "\n======= Downloading source tarballs =======\n"
@for tarball in $(tarballs) ; do \
wget -N $(url)/$$tarball ; \
done
$(old_sha1s): %.$(old_suffix).sha1sum : %.$(old_suffix)
@for tarball in $< ; do \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
$(new_sha1s): %.$(new_suffix).sha1sum : %.$(new_suffix)
@for tarball in $< ; do \
echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
$(help): $(tarballs)
@echo -e "\n======= Downloading help tarball =======\n"
@wget -N --retr-symlinks $(help_url)/$(help)
@rm -f index.html
$(help_sha1s): $(help)
@echo -e "\n======= Calculation the '$(help)' sha1sum =======\n"
@sha1sum --binary $(help) > $(help_sha1s)
downloads_clean:
@rm -rf $(tarballs) $(old_sha1s) $(new_sha1s) $(help) $(help_sha1s)
|