File: Makefile.am

package info (click to toggle)
owfs 3.1p5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,004 kB
  • ctags: 10,355
  • sloc: ansic: 63,596; sh: 4,927; tcl: 1,962; makefile: 1,308; python: 1,114; php: 600; perl: 401; cpp: 105
file content (29 lines) | stat: -rw-r--r-- 1,352 bytes parent folder | download
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
SUBDIRS = ow
EXTRA_DIST = python.m4 \
	examples/check_ow.py examples/errormessages.py examples/raw_access.py examples/temperature.py examples/tree.py examples/xmlrpc_client.py examples/xmlrpc_server.py \
	unittest/Readme.txt unittest/ds1420.py unittest/ds2408.py unittest/ds2409.py unittest/owload.py unittest/owsensors.py unittest/owtest.py unittest/owtest_sample.ini unittest/owtest_think.ini unittest/util.py
noinst_DATA = OW.py
LIBOW = ../../owlib/src/c/libow.la

ow_wrap.c: ../ow.i ${LIBOW}
	$(SWIG) -python -o $@ ../ow.i

OW.py: ow_wrap.c setup.py $(LIBOW)
	set -e ; set -x ; for p in $$(pyversions -r ../../../debian/control) ; do \
		LDFLAGS="$$($$p-config --ldflags)" \
		CFLAGS="$$($$p-config --cflags) @LIBUSB_CFLAGS@" $$p setup.py build ; \
	done

install-data-local:
#	OpenSUSE is buggy and install libraries at /usr/local.
#	Need to add call "install_lib --install-dir" or call "install --install-lib"
#	$(PYTHON) setup.py install_lib --install-dir="/$(DESTDIR)$(PYSITEDIR)"
	set -e ; set -x ; for p in $$(pyversions -r ../../../debian/control) ; do \
		$$p setup.py install --install-layout=deb --root=$(DESTDIR) ; \
	done
# Other options are (but not needed): --install-data="/$(DESTDIR)$(PYSITEDIR)" --install-script="/$(DESTDIR)$(PYSITEDIR)" --install-header=

clean-local:
	@RM@ -f configuration.log
	@RM@ -rf build OW.py ow_wrap.c