[view] Add resource-equivalent switch to 'balance sheet' (bug #26)
[abstract.git] / app / Makefile.am
blobbea90cdd8c368be03efa8d25ff48d68c340e8ca1
1 ## Makefile.am -- Process this file with automake to produce Makefile.in
2 ## Copyright (C) 2006-2007 Sergey Yanovich
3 ##
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
7 ## any later version.
8 ##
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 include $(top_srcdir)/config/config.mk
20 if AA_ENABLE_TESTS
21 UNITTESTPREFS = debug.js
22 UNITTESTCHROME = fileMap.rdf
24 UNITTESTSCRIPTS = aaTestVC.js aaTestAccountViews.js
25 UNITTESTMODULES = aaTestVC.jsm
26 UNITTESTLIBS = libaatest.la
27 libaatest_la_SOURCES = aaAbstractTest.cpp \
28                          aaTestModule.cpp
30 libaatest_la_LIBADD = -lxpcom -lxpcomglue_s
31 endif
33 pkglib_DATA=application.ini
34 prefs_DATA = \
35              $(UNITTESTPREFS) \
36              prefs.js
38 bin_SCRIPTS = abstract
39 abstract: Makefile $(srcdir)/abstract.in
40         sed -e "s|%AA_RUNNER_BIN%|$(AA_RUNNER_BIN)|" \
41     -e "s|%AA_MOZ_BIN%|$(AA_MOZ_BIN)|" \
42     -e "s|%AA_RUNNER_PARAM%|$(AA_RUNNER_PARAM)|" $(srcdir)/abstract.in > $@
44 chrome_DATA = chrome/abstract.manifest
45 chrome_content_DATA = \
46                       $(UNITTESTCHROME) \
47                       chrome/content/viewer.xml \
48                       chrome/content/xbl.css \
49                       chrome/content/page1.xul \
50                       chrome/content/page1.js \
51                       chrome/content/entity.xul \
52                       chrome/content/entity.js \
53                       chrome/content/resource.xul \
54                       chrome/content/resource.js \
55                       chrome/content/flow.xul \
56                       chrome/content/flow.js \
57                       chrome/content/balances.xul \
58                       chrome/content/balances.js \
59                       chrome/content/transcript.xul \
60                       chrome/content/transcript.js \
61                       chrome/content/transfer.xul \
62                       chrome/content/transfer.js \
63                       chrome/content/abstract.css \
64                       chrome/content/abstract.js \
65                       chrome/content/abstract.xul
67 chrome_enUS_DATA = \
68                    chrome/locale/en-US/page1.dtd \
69                    chrome/locale/en-US/viewer.dtd \
70                    chrome/locale/en-US/entity.dtd \
71                    chrome/locale/en-US/resource.dtd \
72                    chrome/locale/en-US/flow.dtd \
73                    chrome/locale/en-US/report.dtd \
74                    chrome/locale/en-US/balances.dtd \
75                    chrome/locale/en-US/transcript.dtd \
76                    chrome/locale/en-US/transfer.dtd \
77                    chrome/locale/en-US/abstract.properties \
78                    chrome/locale/en-US/abstract.dtd
80 component_SCRIPTS = \
81                     $(UNITTESTSCRIPTS)
83 module_SCRIPTS = \
84                  $(UNITTESTMODULES)
86 component_LTLIBRARIES = \
87                         $(UNITTESTLIBS)
89 install-data-hook:
90         test -d $(pkglibdir) || install -m755 -d $(DESTDIR)$(pkglibdir)
91         cd $(DESTDIR)$(pkglibdir) && \
92         rm -f abstract chrome defaults && \
93         cp $(XULSTUB) abstract && \
94         $(LN_S) $(DESTDIR)$(chromedir) chrome && \
95         $(LN_S) $(DESTDIR)$(defsdir) defaults
97 uninstall-hook:
98         rm -rf $(DESTDIR)$(pkglibdir)/abstract
99         rm -rf $(DESTDIR)$(pkglibdir)/chrome
100         rm -rf $(DESTDIR)$(pkglibdir)/defaults
102 CLEANFILES = $(bin_SCRIPTS)