source: libcaca/trunk/Makefile.am @ 4330

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

Improve changelog generation.

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Makefile.am 4330 2010-02-07 22:37:18Z sam $
2
3SUBDIRS = kernel caca src examples tools \
4          cxx caca-sharp python ruby java \
5          doc test
6DIST_SUBDIRS = $(SUBDIRS) win32
7
8EXTRA_DIST = NOTES COPYING.GPL COPYING.ISC COPYING.LGPL bootstrap build-dos build-kernel build-win32 caca-config.in libcaca.spec libcaca.sln
9AUTOMAKE_OPTIONS = dist-bzip2
10
11bin_SCRIPTS = caca-config
12
13webhost = poulet.zoy.org
14webdir = /srv/caca.zoy.org/var/www/
15doxdir = /srv/caca.zoy.org/var/cache/doxygen/libcaca
16
17upload: upload-source upload-doc
18
19upload-source: FORCE
20        scp $(distdir).tar.gz $(webhost):$(webdir)/files/
21
22upload-doc: doc/html FORCE
23        ssh $(webhost) rm -f '$(doxdir)/*' || true
24        scp -r doc/html/* $(webhost):$(doxdir)/
25
26update-changelog: FORCE
27        git --help >/dev/null 2>&1 \
28          && test -d .git \
29          && 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
30
31update-fonts: tools/makefont
32        tools/makefont mono9 "Monospace 9" 96 4 >| $(srcdir)/caca/mono9.data
33        tools/makefont monobold12 "Monospace Bold 12" 96 4 >| $(srcdir)/caca/monobold12.data
34
35FORCE:
Note: See TracBrowser for help on using the repository browser.