source: trunk/project-meta/Makefile @ 151

Last change on this file since 151 was 151, checked in by g7moreau, 6 years ago
  • First version of Makefile
File size: 2.3 KB
Line 
1DESTDIR=
2
3BINDIR=/usr/sbin
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)/$(MANDIR)
21
22        install    -m 0755 -o root -g root project-meta $(DESTDIR)/$(BINDIR)
23
24        #install    -m 0644 -o root -g root project-meta.1.gz $(DESTDIR)/$(MANDIR)
25
26        install    -m 0644 -o root -g root PROJECT-META.sample.yml $(DESTDIR)/$(SHAREDIR)
27        install    -m 0644 -o root -g root licence.d/*.txt $(DESTDIR)/$(SHAREDIR)/licence.d
28
29        #@install -d -m 0755 -o root -g root $(DESTDIR)/$(COMPDIR)
30        #install    -m 0644 -o root -g root project-meta.bash_completion $(DESTDIR)/$(COMPDIR)/project-meta
31
32sync:
33        svn update
34
35upload:
36        cadaver --rcfile=cadaverrc
37
38stat:
39        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"'
40        (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"'
41
42help:
43        @echo "Possibles targets:"
44        @echo " * all     : make manual"
45        @echo " * install : complete install"
46        @echo " * update  : update install (do not update cron file)"
47        @echo " * sync    : sync with official repository"
48        @echo " * upload  : upload on public dav forge space"
49        @echo " * stat    : svn stat with gnuplot graph"
Note: See TracBrowser for help on using the repository browser.