| [2] | 1 | DESTDIR= |
|---|
| [98] | 2 | |
|---|
| [2] | 3 | BINDIR=/usr/sbin |
|---|
| 4 | MANDIR=/usr/share/man/man1 |
|---|
| [91] | 5 | SHAREDIR=/usr/share/klask |
|---|
| 6 | LIBDIR=/usr/lib/klask |
|---|
| [2] | 7 | CRONDIR=/etc/cron.d |
|---|
| [93] | 8 | ETCDIR=/etc/klask |
|---|
| [234] | 9 | COMPDIR=/etc/bash_completion.d |
|---|
| [2] | 10 | |
|---|
| [401] | 11 | .PHONY: all install update sync upload stat help pkg |
|---|
| [98] | 12 | |
|---|
| [2] | 13 | all: |
|---|
| 14 | pod2man klask | gzip > klask.1.gz |
|---|
| [191] | 15 | pod2html klask > klask.html |
|---|
| [2] | 16 | |
|---|
| [98] | 17 | install: update |
|---|
| [99] | 18 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(CRONDIR) |
|---|
| [98] | 19 | install -m 0644 -o root -g root klask.cron $(DESTDIR)/$(CRONDIR)/klask |
|---|
| 20 | |
|---|
| 21 | update: |
|---|
| [99] | 22 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(BINDIR) |
|---|
| [2] | 23 | install -m 0755 -o root -g root klask $(DESTDIR)/$(BINDIR) |
|---|
| 24 | |
|---|
| [99] | 25 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(LIBDIR) |
|---|
| [94] | 26 | install -m 0755 -o root -g root push-web $(DESTDIR)/$(LIBDIR) |
|---|
| 27 | install -m 0755 -o root -g root klask-wrapper $(DESTDIR)/$(LIBDIR) |
|---|
| [91] | 28 | |
|---|
| [99] | 29 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(MANDIR) |
|---|
| [2] | 30 | install -m 0644 -o root -g root klask.1.gz $(DESTDIR)/$(MANDIR) |
|---|
| 31 | |
|---|
| [99] | 32 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR) |
|---|
| [91] | 33 | install -m 0644 -o root -g root sorttable-klask.js $(DESTDIR)/$(SHAREDIR) |
|---|
| [315] | 34 | install -m 0644 -o root -g root style-klask.css $(DESTDIR)/$(SHAREDIR) |
|---|
| [91] | 35 | |
|---|
| [99] | 36 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(ETCDIR) |
|---|
| [93] | 37 | install -m 0644 -o root -g root klask-sample.conf $(DESTDIR)/$(ETCDIR) |
|---|
| 38 | install -m 0644 -o root -g root push-web-sample.conf $(DESTDIR)/$(ETCDIR) |
|---|
| [99] | 39 | |
|---|
| [234] | 40 | @install -d -m 0755 -o root -g root $(DESTDIR)/$(COMPDIR) |
|---|
| 41 | install -m 0644 -o root -g root klask.bash_completion $(DESTDIR)/$(COMPDIR)/klask |
|---|
| 42 | |
|---|
| [99] | 43 | sync: |
|---|
| 44 | svn update |
|---|
| 45 | |
|---|
| [191] | 46 | upload: |
|---|
| 47 | cadaver --rcfile=cadaverrc |
|---|
| 48 | |
|---|
| [401] | 49 | pkg: all |
|---|
| 50 | ./make-package-debian |
|---|
| 51 | |
|---|
| [371] | 52 | stat: |
|---|
| 53 | 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"' |
|---|
| 54 | (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"' |
|---|
| 55 | |
|---|
| [99] | 56 | help: |
|---|
| [371] | 57 | @echo "Possibles targets:" |
|---|
| 58 | @echo " * all : make manual" |
|---|
| 59 | @echo " * install : complete install" |
|---|
| 60 | @echo " * update : update install (do not update cron file)" |
|---|
| 61 | @echo " * sync : sync with official repository" |
|---|
| [191] | 62 | @echo " * upload : upload on public dav forge space" |
|---|
| [401] | 63 | @echo " * pkg : build Debian package" |
|---|
| [371] | 64 | @echo " * stat : svn stat with gnuplot graph" |
|---|