File: Makefile.am

package info (click to toggle)
presage 0.9.1-2.7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,896 kB
  • sloc: cpp: 86,289; sh: 11,775; ansic: 4,043; python: 1,218; makefile: 1,026; cs: 1,009; xml: 57
file content (118 lines) | stat: -rw-r--r-- 3,394 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118

###########
#  Presage, an extensible predictive text entry system
#  ------------------------------------------------------
#
#  Copyright (C) 2008  Matteo Vescovi <matteo.vescovi@yahoo.co.uk>
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write to the Free Software Foundation, Inc.,
#  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

## Process this file with automake to produce Makefile.in

if HAVE_SWIG
if HAVE_PYTHON
if ENABLE_PYTHON_BINDING


if ENABLE_PYPRESAGEMATE
# pypresagemate uses autotools
dist_bin_SCRIPTS = \
	pypresagemate

presagematedir = $(pythondir)/presagemate
presagemate_PYTHON = \
	presagemate/__init__.py \
	presagemate/presagemate.py 

endif
#     ENABLE_PYPRESAGEMATE

if ENABLE_PYPROMPTER
# pyprompter delegates to setup.py
EXTRA_DIST =	pyprompter \
		prompter/__init__.py \
		prompter/prompter.py

all-local:	$(EXTRA_DIST)
	@case "`uname`" in \
	  MINGW*) \
		$(PYTHON) setup.py build --compiler=mingw32 \
	  ;; \
	  *) \
		$(PYTHON) setup.py build \
	  ;; \
	esac;

# python on MinGW/MSYS requires pure Windows style paths
# Using following (cd $dir && pwd -W) hack to get a nearly
# native Windows path, then translating the forward slash
# to a backward slash to make python distutils jolly.
# P.S. the backslash has to be escaped thrice, hence a single
# backslash turns into a sequence of eight (neat, huh?)
#
install-exec-local:
	@case "`uname`" in \
	  MINGW*) \
		NATIVE_WINDOWS_PREFIX="`cd $(DESTDIR)$(prefix) && pwd -W`"; \
		NATIVE_WINDOWS_PREFIX="`echo $$NATIVE_WINDOWS_PREFIX | sed -e 's|/|\\\\\\\\|g'`"; \
		$(PYTHON) setup.py install --prefix="$$NATIVE_WINDOWS_PREFIX" \
	  ;; \
	  *) \
		$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) \
	  ;; \
	esac;

# This rule cleans up stuff installed by Python's setup.py
# Unfortunately, Python's distutils do not provide an uninstall
# command, so we have to make up for it here in uninstall-local
# hook. This might break if distutils' behaviour changes as automake
# has no control over what distutils install command does.
#
uninstall-local:
	rm -rf $(DESTDIR)$(libdir)/python*/site-packages/prompter
	rm -f $(DESTDIR)$(libdir)/python*/site-packages/pyprompter-*.egg-info
	rm -f $(DESTDIR)$(bindir)/pyprompter

clean-local:
	rm -rf build


if HAVE_HELP2MAN

pyprompter.1:	pyprompter.in $(top_srcdir)/configure.ac
	chmod u+x ./pyprompter
	help2man --output=$@ --no-info --name="the intelligent predictive wxPython text editor" "$(PYTHON) ./pyprompter"

dist_man_MANS =	pyprompter.1

DISTCLEANFILES= pyprompter.1

endif

desktopdir = $(datadir)/applications
dist_desktop_DATA = pyprompter.desktop

svgicondir = $(datadir)/icons/hicolor/scalable/apps
dist_svgicon_DATA = pyprompter.svg

pixmapsdir = $(datadir)/pixmaps
dist_pixmaps_DATA = pyprompter.png pyprompter.xpm

endif
#     ENABLE_PYPROMPTER

endif
endif
endif