Remove arg-highlight on calculate
[reinteract.git] / Makefile.am
blobdefdce97f3f519fd50e6914c4f363883913e3438
1 LIST_END =
3 SUBDIRS = data dialogs
5 bin_SCRIPTS = bin/reinteract
6 dist_noinst_SCRIPTS =                           \
7         bin/uninst.py                           \
8         bin/Reinteract.pyw
10 reinteractpkgdir = $(REINTERACT_PACKAGE_DIR)
11 reinteractpkg_PYTHON =                                                        \
12                     lib/reinteract/__init__.py                                \
13                     lib/reinteract/about_dialog.py                            \
14                     lib/reinteract/application.py                             \
15                     lib/reinteract/application_state.py                       \
16                     lib/reinteract/base_window.py                             \
17                     lib/reinteract/base_notebook_window.py                    \
18                     lib/reinteract/change_range.py                            \
19                     lib/reinteract/chunks.py                                  \
20                     lib/reinteract/completion_popup.py                        \
21                     lib/reinteract/config_file.py                             \
22                     lib/reinteract/custom_result.py                           \
23                     lib/reinteract/data_format.py                             \
24                     lib/reinteract/destroyable.py                             \
25                     lib/reinteract/doc_format.py                              \
26                     lib/reinteract/doc_popup.py                               \
27                     lib/reinteract/editor.py                                  \
28                     lib/reinteract/editor_window.py                           \
29                     lib/reinteract/file_list.py                               \
30                     lib/reinteract/format_escaped.py                          \
31                     lib/reinteract/gc_utils.py                                \
32                     lib/reinteract/global_settings.py                         \
33                     lib/reinteract/iter_copy_from.py                          \
34                     lib/reinteract/library_editor.py                          \
35                     lib/reinteract/main.py                                    \
36                     lib/reinteract/main_menu.py                               \
37                     lib/reinteract/mini_window.py                             \
38                     lib/reinteract/new_notebook.py                            \
39                     lib/reinteract/notebook.py                                \
40                     lib/reinteract/notebook_info.py                           \
41                     lib/reinteract/notebook_window.py                         \
42                     lib/reinteract/open_notebook.py                           \
43                     lib/reinteract/popup.py                                   \
44                     lib/reinteract/preferences_dialog.py                      \
45                     lib/reinteract/recorded_object.py                         \
46                     lib/reinteract/retokenize.py                              \
47                     lib/reinteract/rewrite.py                                 \
48                     lib/reinteract/sanitize_textview_ipc.py                   \
49                     lib/reinteract/save_file.py                               \
50                     lib/reinteract/shell_buffer.py                            \
51                     lib/reinteract/shell_view.py                              \
52                     lib/reinteract/sidebar.py                                 \
53                     lib/reinteract/statement.py                               \
54                     lib/reinteract/stdout_capture.py                          \
55                     lib/reinteract/style.py                                   \
56                     lib/reinteract/test_utils.py                              \
57                     lib/reinteract/thread_executor.py                         \
58                     lib/reinteract/tokenized_statement.py                     \
59                     lib/reinteract/undo_stack.py                              \
60                     lib/reinteract/reunicode.py                               \
61                     lib/reinteract/view_sidebar_layout.py                     \
62                     lib/reinteract/window_builder.py                          \
63                     lib/reinteract/worksheet.py                               \
64                     lib/reinteract/worksheet_editor.py                        \
65                     lib/reinteract/worksheet_print.py                         \
66                     $(LIST_END)
68 replaydir = $(pythondir)
69 replay_PYTHON = lib/replay.py
71 replotdir = $(pythondir)
72 replot_PYTHON = lib/replot.py
74 examplesdir = $(pkgdatadir)/examples
75 examples_DATA =                                 \
76              examples/basics.rws                \
77              examples/build.rws                 \
78              examples/imshow.rws                \
79              examples/index.rnb                 \
80              examples/play.rws                  \
81              examples/plot.rws                  \
82              examples/plot2.rws                 \
83              $(LIST_END)
85 TOOLS_EXTRA =                                   \
86         tools/common/__init__.py                \
87         tools/common/am_parser.py               \
88         tools/common/builder.py                 \
89         tools/common/utils.py
91 # Input files for the WiX-based Windows installer
92 WIX_FILES =                                     \
93         tools/build_msi/AlreadyInstalledPage.wxs \
94         tools/build_msi/BrowsePage.wxs          \
95         tools/build_msi/BrowsePage2.wxs         \
96         tools/build_msi/CancelPage.wxs          \
97         tools/build_msi/FatalErrorPage.wxs      \
98         tools/build_msi/FeaturesPage.wxs        \
99         tools/build_msi/ProgressPage.wxs        \
100         tools/build_msi/ReinteractUI.wxs        \
101         tools/build_msi/SuccessPage.wxs         \
102         tools/build_msi/WelcomePage.wxs         \
103         tools/build_msi/Overrides.wxl           \
104         tools/build_msi/reinteractBanner.bmp
106 # Scripts and other files used for Windows installer
107 WIX_EXTRA =                                     \
108         tools/build_msi/README                  \
109         tools/build_msi/build_msi.py            \
110         tools/build_msi/wrapper.c               \
111         tools/compiledir.py
113 # Scripts and other files used for OS X installer
114 BUNDLE_EXTRA =                                                  \
115         tools/build_bundle/README                               \
116         tools/build_bundle/build_bundle.py                      \
117         tools/build_bundle/build_bundle.sh                      \
118         tools/build_bundle/reinteract-dmg-background.png        \
119         tools/build_bundle/reinteract-dmg-background.svg        \
120         tools/build_bundle/reinteract.dsstore
122 BUILD_DEPS_OSX_EXTRA =                                                  \
123         tools/build_deps_osx/Python-2.6.7-build-fixes.patch             \
124         tools/build_deps_osx/Python-2.6.7-framework-arch.patch          \
125         tools/build_deps_osx/README                                     \
126         tools/build_deps_osx/build.sh                                   \
127         tools/build_deps_osx/i386.cache                                 \
128         tools/build_deps_osx/jhbuildrc-reinteract                       \
129         tools/build_deps_osx/glib-2.28.8-zlib-macosx.patch              \
130         tools/build_deps_osx/gtk+-2.24.0-poll-error.patch               \
131         tools/build_deps_osx/matplotlib-1.1.0-freetype-build.patch      \
132         tools/build_deps_osx/pango-relocate.patch                       \
133         tools/build_deps_osx/ppc.cache                                  \
134         tools/build_deps_osx/reinteract-bootstrap.modules               \
135         tools/build_deps_osx/reinteract.modules
137 # Wrapper binary for OS X that sets the paths and loads the main menu
138 noinst_PROGRAMS =
140 if PLATFORM_OSX
141 noinst_PROGRAMS += ReinteractWrapper
143 build-local-app: ReinteractWrapper
144         rm -rf Reinteract.app
145         mkdir -p Reinteract.app/Contents/MacOS
146         cp -p ReinteractWrapper Reinteract.app/Contents/MacOS/Reinteract
147         mkdir -p Reinteract.app/Contents/Resources
148         cp -p $(top_srcdir)/data/Info.plist Reinteract.app/Contents
149         cp -pr $(top_srcdir)/data/MainMenu.nib Reinteract.app/Contents/Resources
150         cp -p $(top_srcdir)/data/Reinteract.icns Reinteract.app/Contents/Resources
151         touch Reinteract.app/Contents/Resources/UNINSTALLED
153 all-local: build-local-app
155 if INSTALL_APP
156 install-exec-hook: build-local-app
157         for f in `find Reinteract.app -type f` ; do             \
158             b=`basename $$f` ;                                  \
159             d=`dirname $$f` ;                                   \
160             if test $$b = Reinteract ; then                     \
161                 $(MKDIR_P) $(DESTDIR)$(APPDIR)/$$d ;            \
162                 $(INSTALL_PROGRAM) $$f $(DESTDIR)$(APPDIR)/$$f ;\
163             elif test $$b = UNINSTALLED ; then                  \
164                 : ;                                             \
165             else                                                \
166                 $(MKDIR_P) $(DESTDIR)$(APPDIR)/$$d ;            \
167                 $(INSTALL_DATA) $$f $(DESTDIR)$(APPDIR)/$$f ;   \
168             fi                                                  \
169         done
170 endif
172 endif
174 ReinteractWrapper_SOURCES  =                                    \
175              src/reinteract_wrapper_osx/main.m                  \
176              src/reinteract_wrapper_osx/MenuController.m        \
177              src/reinteract_wrapper_osx/MenuController.h        \
178              src/reinteract_wrapper_osx/pyNativeMainMenu.m      \
179              src/reinteract_wrapper_osx/pyNativeMainMenu.h
181 if USE_PYTHON_THUNKS
182 ReinteractWrapper_SOURCES  +=                                   \
183              src/reinteract_wrapper_osx/ThunkPython.c           \
184              src/reinteract_wrapper_osx/ThunkPython.h
185 endif
187 INCLUDES =                                      \
188         $(PYTHON_INCLUDES)                      \
189         $(WRAPPER_CFLAGS)                       \
190         -DEXAMPLESDIR=\"$(examplesdir)\"        \
191         -DDIALOGSDIR=\"$(pkgdatadir)/dialogs\"  \
192         -DICONDIR=\"$(pkgdatadir)\"
194 ReinteractWrapper_LDFLAGS = -framework Cocoa $(PYTHON_LIBS)
196 TESTS=tools/run_tests.sh
198 EXTRA_DIST =                                    \
199              ChangeLog                          \
200              autogen.sh                         \
201              epydoc.conf                        \
202              bin/reinteract.in                  \
203              $(examples_DATA)                   \
204              README                             \
205              $(TOOLS_EXTRA)                     \
206              $(WIX_FILES)                       \
207              $(WIX_EXTRA)                       \
208              $(BUNDLE_EXTRA)                    \
209              $(BUILD_DEPS_OSX_EXTRA)            \
210              src/reinteract_wrapper_osx/README  \
211              tools/run_tests.sh                 \
212              tools/check-for-missing.py         \
213              $(LIST_END)
215 DISTCLEANFILES =                                                              \
216                  $(LIST_END)
218 MAINTAINERCLEANFILES =                                                        \
219                        aclocal.m4                                             \
220                        ChangeLog                                              \
221                        config/install-sh                                      \
222                        config/missing                                         \
223                        config/py-compile                                      \
224                        configure                                              \
225                        Makefile.in                                            \
226                        NEWS                                                   \
227                        $(LIST_END)
229 api-docs:
230         @conf=`cd $(top_srcdir) && pwd`/epydoc.conf ;                                                                   \
231         out=`pwd`/api-docs ;                                                                                            \
232         modules="" ;                                                                                                    \
233         for pkg in $(reinteractpkg_PYTHON) ; do                                                                         \
234                 modules="$$modules `echo $$pkg | sed s@^lib/@@`" ;                                                      \
235         done;                                                                                                           \
236         cd $(top_srcdir)/lib && PYTHONPATH="$PYTHONPATH:reinteract" epydoc -v --config=$$conf --output=$$out $$modules
238 # These are files checked into Git that we don't want to distribute
239 DIST_EXCLUDE =                                  \
240         *.gitignore
242 distcheck-hook:
243         @echo "Checking disted files against files in git"
244         @$(srcdir)/tools/check-for-missing.py $(srcdir) $(distdir) $(DIST_EXCLUDE)