source: trunk/project-meta/Makefile @ 327

Last change on this file since 327 was 215, checked in by g7moreau, 7 years ago
  • Add ignore target for svn
File size: 2.6 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 ignore install update sync upload stat help pkg
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)/license.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        @install -d -m 0755 -o root -g root $(DESTDIR)/$(COMPDIR)
23
24        install    -m 0755 -o root -g root project-meta $(DESTDIR)/$(BINDIR)
25
26        install    -m 0644 -o root -g root project-meta.1.gz $(DESTDIR)/$(MANDIR)
27
28        install    -m 0644 -o root -g root PROJECT-META.sample.yml $(DESTDIR)/$(SHAREDIR)
29        install    -m 0644 -o root -g root license.d/*.txt $(DESTDIR)/$(SHAREDIR)/license.d
30        install    -m 0644 -o root -g root template.d/*.tt $(DESTDIR)/$(SHAREDIR)/template.d
31
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
40pkg: all
41        ./make-package-debian
42
43stat:
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
47help:
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"
55        @echo " * pkg     : build Debian package"
56        @echo "ignore - svn rules to ignore some files"
57
58ignore: svnignore.txt
59        svn propset svn:ignore -F svnignore.txt .
Note: See TracBrowser for help on using the repository browser.