File: Makefile.am

package info (click to toggle)
hocr 0.8.2-6
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,004 kB
  • ctags: 430
  • sloc: sh: 8,885; ansic: 7,481; makefile: 246; cpp: 242; python: 72; perl: 11; java: 1
file content (25 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (3)
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

EXTRA_DIST = hocr.i

if WITH_PYTHON

DEPS= $(top_builddir)/src/libhocr.la

CLEANFILES = *.o *.cxx *.so *wrap* *.py

all-am: _hocr.so
	

_hocr.so: hocr_wrap.cxx
	g++ -fpic -c hocr_wrap.cxx $(PY_CFLAGS) -I$(top_srcdir)/src
	g++ -shared ../../src/.libs/libhocr.so hocr_wrap.o -o _hocr.so

hocr_wrap.cxx: hocr.i
	swig -python -c++ hocr.i

install-data-local: _hocr.so
	$(mkinstalldirs) $(DESTDIR)$(PY_MODULES_PATH)
	$(INSTALL_DATA) _hocr.so $(DESTDIR)$(PY_MODULES_PATH)/_hocr.so
	$(INSTALL_DATA) hocr.py $(DESTDIR)$(PY_MODULES_PATH)/hocr.py

endif