[151] | 1 | DESTDIR= |
---|
| 2 | |
---|
[152] | 3 | BINDIR=/usr/bin |
---|
[151] | 4 | MANDIR=/usr/share/man/man1 |
---|
| 5 | SHAREDIR=/usr/share/project-meta |
---|
| 6 | ETCDIR=/etc/project-meta |
---|
| 7 | COMPDIR=/etc/bash_completion.d |
---|
| 8 | |
---|
[215] | 9 | .PHONY: all ignore install update sync upload stat help pkg |
---|
[151] | 10 | |
---|
| 11 | all: |
---|
| 12 | pod2man project-meta | gzip > project-meta.1.gz |
---|
| 13 | pod2html project-meta > project-meta.html |
---|
| 14 | |
---|
| 15 | install: update |
---|
| 16 | |
---|
| 17 | update: |
---|
| 18 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR) |
---|
[201] | 19 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)/license.d |
---|
[154] | 20 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)/template.d |
---|
[165] | 21 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(MANDIR) |
---|
[185] | 22 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(COMPDIR) |
---|
[151] | 23 | |
---|
| 24 | install -m 0755 -o root -g root project-meta $(DESTDIR)/$(BINDIR) |
---|
| 25 | |
---|
[165] | 26 | install -m 0644 -o root -g root project-meta.1.gz $(DESTDIR)/$(MANDIR) |
---|
[151] | 27 | |
---|
| 28 | install -m 0644 -o root -g root PROJECT-META.sample.yml $(DESTDIR)/$(SHAREDIR) |
---|
[201] | 29 | install -m 0644 -o root -g root license.d/*.txt $(DESTDIR)/$(SHAREDIR)/license.d |
---|
[155] | 30 | install -m 0644 -o root -g root template.d/*.tt $(DESTDIR)/$(SHAREDIR)/template.d |
---|
[151] | 31 | |
---|
[185] | 32 | install -m 0644 -o root -g root project-meta.bash_completion $(DESTDIR)/$(COMPDIR)/project-meta |
---|
[151] | 33 | |
---|
| 34 | sync: |
---|
| 35 | svn update |
---|
| 36 | |
---|
| 37 | upload: |
---|
| 38 | cadaver --rcfile=cadaverrc |
---|
| 39 | |
---|
[207] | 40 | pkg: all |
---|
| 41 | ./make-package-debian |
---|
| 42 | |
---|
[151] | 43 | stat: |
---|
| 44 | svn log|egrep '^r[[:digit:]]'|egrep -v '^r1[[:space:]]'|awk '{print $$3}'|sort|uniq -c |gnuplot -p -e 'set style fill solid 1.00 border 0; set style histogram; set style data histogram; set xtics rotate by 0; set style line 7 linetype 0 linecolor rgb "#222222"; set grid ytics linestyle 7; set xlabel "User contributor" font "bold"; set ylabel "Number of commit" font "bold"; plot "/dev/stdin" using 1:xticlabels(2) title "commit" linecolor rgb "#666666"' |
---|
| 45 | (echo '0 2015'; svn log|egrep '^r[[:digit:]]'|awk '{print $$5}'|cut -f 1 -d '-'|sort|uniq -c)|sort -k 2|gnuplot -p -e 'set style fill solid 1.00 border 0; set style histogram; set style data histogram; set xtics rotate by 0; set style line 7 linetype 0 linecolor rgb "#222222"; set grid ytics linestyle 7; set xlabel "Year" font "bold"; set ylabel "Number of commit" font "bold"; plot "/dev/stdin" using 1:xticlabels(2) title "commit" linecolor rgb "#666666"' |
---|
| 46 | |
---|
| 47 | help: |
---|
| 48 | @echo "Possibles targets:" |
---|
| 49 | @echo " * all : make manual" |
---|
| 50 | @echo " * install : complete install" |
---|
| 51 | @echo " * update : update install (do not update cron file)" |
---|
| 52 | @echo " * sync : sync with official repository" |
---|
| 53 | @echo " * upload : upload on public dav forge space" |
---|
| 54 | @echo " * stat : svn stat with gnuplot graph" |
---|
[207] | 55 | @echo " * pkg : build Debian package" |
---|
[215] | 56 | @echo "ignore - svn rules to ignore some files" |
---|
| 57 | |
---|
| 58 | ignore: svnignore.txt |
---|
| 59 | svn propset svn:ignore -F svnignore.txt . |
---|