Commit | Line | Data |
---|---|---|
7e86542e P |
1 | VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p') |
2 | DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p') | |
3 | ||
4 | REDMINE = https://redmine.auf.org | |
5 | PROJECT = modeles-openoffice | |
6 | HEADERS = | |
7 | #HEADERS = --header='Pragma: no-cache' | |
8 | ||
9 | all: build | |
10 | ||
11 | .download_stamp: | |
12 | mkdir -p downloads | |
13 | cd downloads ; \ | |
14 | wget -O- $(HEADERS) $(REDMINE)/projects/$(PROJECT)/files \ | |
15 | | sed -n '/class="filename"/s/^.*href="\([^"]*\)".*$$/\1/p' \ | |
16 | | while read path ; do wget -N $(HEADERS) $(REDMINE)$$path ; done | |
17 | touch .download_stamp | |
18 | ||
19 | build: .download_stamp | |
20 | ||
21 | install: | |
22 | cd downloads ; for file in * ; do \ | |
23 | install -m 0644 $$file $(DESTDIR)/usr/share/modeles-openoffice/AuF/ \ | |
24 | ; done | |
25 | ||
26 | clean: | |
27 | ||
28 | mrproper: | |
29 | rm -rf .download_stamp downloads | |
30 | ||
2ce09ebe | 31 | deb: |
7e86542e P |
32 | debuild -I.git -I*.ex -b -us -uc && sudo debi |
33 | ||
34 | release: | |
35 | debuild -I.git -I*.ex -tc && debrelease --dput $(DIST)-test | |
36 |