File: Makefile.am

package info (click to toggle)
owfs 3.2p3+dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 8,688 kB
  • sloc: ansic: 65,085; pascal: 5,957; tcl: 2,688; makefile: 1,357; python: 1,114; sh: 891; cs: 623; php: 600; perl: 587; java: 404; ruby: 289; cpp: 105; asm: 102; xml: 53
file content (33 lines) | stat: -rw-r--r-- 1,518 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
30
31
32
33
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)
# build is done at install time, for all supported python versions
	echo skipping \
	CFLAGS="@LIBUSB_CFLAGS@ @LIBAVAHI_CFLAGS@" $(PYTHON) setup.py build

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 \
			$$(py3versions -r ../../../debian/control) \
			$$(pyversions -r ../../../debian/control) ; do \
		LDFLAGS="$$($$p-config --ldflags)" \
		CFLAGS="$$($$p-config --cflags) @LIBUSB_CFLAGS@ @LIBAVAHI_CFLAGS@" $$p setup.py build ; \
		$$p setup.py install --install-layout=deb --root=$(DESTDIR) ; \
		$$p setup.py clean ; \
	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