releasing version 1.0
[modeles-openoffice.git] / auf-modeles-openoffice / Makefile
CommitLineData
7e86542e
P
1VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
2DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p')
3
4REDMINE = https://redmine.auf.org
5PROJECT = modeles-openoffice
6HEADERS =
7#HEADERS = --header='Pragma: no-cache'
8
9all: 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
19build: .download_stamp
20
21install:
22 cd downloads ; for file in * ; do \
23 install -m 0644 $$file $(DESTDIR)/usr/share/modeles-openoffice/AuF/ \
24 ; done
25
26clean:
27
28mrproper:
29 rm -rf .download_stamp downloads
30
31test:
32 debuild -I.git -I*.ex -b -us -uc && sudo debi
33
34release:
35 debuild -I.git -I*.ex -tc && debrelease --dput $(DIST)-test
36