source: trunk/project-meta/Makefile @ 154

Last change on this file since 154 was 154, checked in by g7moreau, 6 years ago
  • Begin make-author implementation
File size: 2.4 KB
Line 
1DESTDIR=
2
3BINDIR=/usr/bin
4MANDIR=/usr/share/man/man1
5SHAREDIR=/usr/share/project-meta
6ETCDIR=/etc/project-meta
7COMPDIR=/etc/bash_completion.d
8
9.PHONY: all install update sync upload stat help
10
11all:
12        pod2man project-meta | gzip > project-meta.1.gz
13        pod2html project-meta > project-meta.html
14
15install: update
16
17update:
18        @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)
19        @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)/licence.d
20        @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)/template.d
21        #@install -d -m 0755 -o root -g root $(DESTDIR)/$(MANDIR)
22
23        install    -m 0755 -o root -g root project-meta $(DESTDIR)/$(BINDIR)
24
25        #install    -m 0644 -o root -g root project-meta.1.gz $(DESTDIR)/$(MANDIR)
26
27        install    -m 0644 -o root -g root PROJECT-META.sample.yml $(DESTDIR)/$(SHAREDIR)
28        install    -m 0644 -o root -g root licence.d/*.txt $(DESTDIR)/$(SHAREDIR)/licence.d
29        install    -m 0644 -o root -g root licence.d/*.tt  $(DESTDIR)/$(SHAREDIR)/template.d
30
31        #@install -d -m 0755 -o root -g root $(DESTDIR)/$(COMPDIR)
32        #install    -m 0644 -o root -g root project-meta.bash_completion $(DESTDIR)/$(COMPDIR)/project-meta
33
34sync:
35        svn update
36
37upload:
38        cadaver --rcfile=cadaverrc
39
40stat:
41        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"'
42        (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"'
43
44help:
45        @echo "Possibles targets:"
46        @echo " * all     : make manual"
47        @echo " * install : complete install"
48        @echo " * update  : update install (do not update cron file)"
49        @echo " * sync    : sync with official repository"
50        @echo " * upload  : upload on public dav forge space"
51        @echo " * stat    : svn stat with gnuplot graph"
Note: See TracBrowser for help on using the repository browser.