blob: 3aa8cf83539096633f64a4143fc6403a97375a15 [file] [log] [blame]
Matthew Barth71222442016-10-04 16:10:01 -05001sbin_PROGRAMS = mapper
2
3mapper_SOURCES = libmapper/app.c
4mapper_LDFLAGS = $(SYSTEMD_LIBS)
5mapper_CFLAGS = $(SYSTEMD_CFLAGS)
6mapper_LDADD = libmapper.la
7
8libmapperdir = ${libdir}
9libmapper_LTLIBRARIES = libmapper.la
10libmapper_la_SOURCES = libmapper/mapper.c
11libmapper_la_LDFLAGS = $(SYSTEMD_LIBS) -version-info 1:0:0 -shared
12libmapper_la_CFLAGS = $(SYSTEMD_CFLAGS)
13
14oldinclude_HEADERS = libmapper/mapper.h
15
16if HAVE_PYTHON
17
18all-local:
19 $(AM_V_at)$(PYTHON) ${top_builddir}/setup.py build
20
21clean-local:
22 rm -rfv ${top_builddir}/build
23
24install-exec-hook:
25 $(AM_V_at)$(PYTHON) ${top_builddir}/setup.py install \
26 --prefix=$(DESTDIR)${prefix} \
27 --install-data=$(DESTDIR)${datadir} \
28 --install-lib=$(DESTDIR)$(PYTHONDIR) \
29 --install-scripts=$(DESTDIR)${sbindir} \
30 --record=${top_builddir}/python_install.log
31
32uninstall-hook:
33 cat ${top_builddir}/python_install.log \
34 | awk '{print "$(DESTDIR)"$$1}' | xargs rm -fv
35
36endif