source: neercs/trunk/Makefile.am @ 4359

Last change on this file since 4359 was 4359, checked in by Sam Hocevar, 10 years ago

Add ChangeLog? generation rule.

File size: 894 bytes
Line 
1
2SUBDIRS = src doc test
3DIST_SUBDIRS = $(SUBDIRS) data
4
5EXTRA_DIST = bootstrap
6AUTOMAKE_OPTIONS = foreign dist-bzip2
7
8webhost = poulet.zoy.org
9webdir = /srv/caca.zoy.org/var/www/
10doxdir = /srv/caca.zoy.org/var/cache/doxygen/neercs
11
12upload: upload-source upload-doc
13
14upload-source: FORCE
15        scp $(distdir).tar.gz $(webhost):$(webdir)/files/
16
17upload-doc: doc/html FORCE
18        ssh $(webhost) rm -f '$(doxdir)/*' || true
19        scp -r doc/html/* $(webhost):$(doxdir)/
20
21update-changelog: FORCE
22        git --help >/dev/null 2>&1 \
23          && test -d .git \
24          && git log --stat | awk 'function flush() { if (m != "") { print "Commit: " v "\nAuthor: " a m } m=""; v="UNSUBMITTED" } { if ($$1 == "commit") flush(); else if ($$1 == "Author:") { a = $$2 } else if ($$1 == "git-svn-id:") { split($$2,tmp,"@"); v=tmp[2] } else if ($$_ != "    ") { m=m "\n" $$_ } } END { flush() }' > ChangeLog
25
26echo-dirs: ; echo src test
27
28FORCE:
Note: See TracBrowser for help on using the repository browser.