1 | ## Process this file with automake to produce Makefile.in |
---|
2 | ## |
---|
3 | ## $Id: Makefile.am 784 2009-04-09 20:18:54Z jari $ |
---|
4 | |
---|
5 | # Copyright (C) 2005 Jari Häkkinen |
---|
6 | # Copyright (C) 2006 Jari Häkkinen, Peter Johansson |
---|
7 | # Copyright (C) 2007, 2008 Peter Johansson |
---|
8 | # Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
---|
9 | # Copyright (C) 2009 Peter Johansson |
---|
10 | # |
---|
11 | # This file is part of svndigest, http://dev.thep.lu.se/svndigest |
---|
12 | # |
---|
13 | # svndigest is free software; you can redistribute it and/or modify it |
---|
14 | # under the terms of the GNU General Public License as published by |
---|
15 | # the Free Software Foundation; either version 3 of the License, or |
---|
16 | # (at your option) any later version. |
---|
17 | # |
---|
18 | # svndigest is distributed in the hope that it will be useful, but |
---|
19 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
21 | # General Public License for more details. |
---|
22 | # |
---|
23 | # You should have received a copy of the GNU General Public License |
---|
24 | # along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
---|
25 | |
---|
26 | AM_CPPFLAGS = $(SVNDIGEST_CPPFLAGS) |
---|
27 | AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS) |
---|
28 | |
---|
29 | noinst_LIBRARIES = libsvndigest.a |
---|
30 | |
---|
31 | noinst_HEADERS = AddStats.h Alias.h BlameStats.h ClassicStats.h ColumnStream.h \ |
---|
32 | CommandLine.h Commitment.h Configuration.h copyright_year.h css.h\ |
---|
33 | Date.h Directory.h Exception.h File.h first_page.h Functor.h \ |
---|
34 | Gnuplot.h GnuplotFE.h \ |
---|
35 | HtmlBuf.h HtmlStream.h html_utility.h LineTypeParser.h \ |
---|
36 | Node.h Option.h OptionArg.h OptionHelp.h OptionSwitch.h \ |
---|
37 | OptionVersion.h rmdirhier.h \ |
---|
38 | Stats.h StatsCollection.h subversion_info.h SVN.h SVNblame.h \ |
---|
39 | SVNinfo.h SVNlog.h SVNproperty.h Trac.h utility.h |
---|
40 | |
---|
41 | libsvndigest_a_SOURCES = AddStats.cc Alias.cc BlameStats.cc \ |
---|
42 | ClassicStats.cc ColumnStream.cc \ |
---|
43 | CommandLine.cc Commitment.cc Configuration.cc copyright_year.cc \ |
---|
44 | css.cc Date.cc Directory.cc File.cc first_page.cc\ |
---|
45 | Functor.cc Gnuplot.cc GnuplotFE.cc HtmlBuf.cc HtmlStream.cc \ |
---|
46 | html_utility.cc LineTypeParser.cc Node.cc \ |
---|
47 | Option.cc OptionHelp.cc OptionSwitch.cc OptionVersion.cc \ |
---|
48 | rmdirhier.cc Stats.cc StatsCollection.cc subversion_info.cc SVN.cc \ |
---|
49 | SVNblame.cc SVNinfo.cc SVNlog.cc SVNproperty.cc Trac.cc utility.cc |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | clean-local: |
---|
55 | rm -rf *~ |
---|
56 | |
---|
57 | all-local: |
---|
58 | |
---|
59 | if HAVE_SVN_WC |
---|
60 | $(srcdir)/subversion_info.cc: subversion_info.cc.tmp |
---|
61 | @$(SHELL) $(top_srcdir)/build_support/move-if-change subversion_info.cc.tmp \ |
---|
62 | $(srcdir)/subversion_info.cc |
---|
63 | |
---|
64 | subversion_info.cc.tmp: FORCE |
---|
65 | @echo '// subversion_info.cc generated from subversion_info.cc.in.' > $@ ;\ |
---|
66 | revision=`$(SVNVERSION) $(top_srcdir)` ;\ |
---|
67 | $(SED) -e 's/sub_2_svn_revision/r'$$revision'/g' \ |
---|
68 | $(srcdir)/subversion_info.cc.in >> $@ ; |
---|
69 | |
---|
70 | # update copyright year automatically (if we build from svn wc) |
---|
71 | $(srcdir)/copyright_year.cc: copyright_year.cc.tmp |
---|
72 | @$(SHELL) $(top_srcdir)/build_support/move-if-change $< $@ |
---|
73 | |
---|
74 | copyright_year.cc.tmp: FORCE |
---|
75 | @year=`svn info $(top_srcdir)|$(SED) -n 's/.*Date: \(.*\)-..-.*/\1/p'`;\ |
---|
76 | $(SED) -e 's/"20[0-9][0-9]"/'\"$$year\"'/g' $(srcdir)/copyright_year.cc > $@ ; |
---|
77 | |
---|
78 | else |
---|
79 | # this is needed in 'svn export' build |
---|
80 | $(srcdir)/subversion_info.cc: |
---|
81 | $(SED) -e 's/sub_2_svn_revision//g' \ |
---|
82 | $(srcdir)/subversion_info.cc.in >> $@ ; |
---|
83 | |
---|
84 | endif |
---|
85 | |
---|
86 | FORCE: |
---|