Matthew Barth | 7122244 | 2016-10-04 16:10:01 -0500 | [diff] [blame^] | 1 | sbin_PROGRAMS = mapper |
| 2 | |
| 3 | mapper_SOURCES = libmapper/app.c |
| 4 | mapper_LDFLAGS = $(SYSTEMD_LIBS) |
| 5 | mapper_CFLAGS = $(SYSTEMD_CFLAGS) |
| 6 | mapper_LDADD = libmapper.la |
| 7 | |
| 8 | libmapperdir = ${libdir} |
| 9 | libmapper_LTLIBRARIES = libmapper.la |
| 10 | libmapper_la_SOURCES = libmapper/mapper.c |
| 11 | libmapper_la_LDFLAGS = $(SYSTEMD_LIBS) -version-info 1:0:0 -shared |
| 12 | libmapper_la_CFLAGS = $(SYSTEMD_CFLAGS) |
| 13 | |
| 14 | oldinclude_HEADERS = libmapper/mapper.h |
| 15 | |
| 16 | if HAVE_PYTHON |
| 17 | |
| 18 | all-local: |
| 19 | $(AM_V_at)$(PYTHON) ${top_builddir}/setup.py build |
| 20 | |
| 21 | clean-local: |
| 22 | rm -rfv ${top_builddir}/build |
| 23 | |
| 24 | install-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 | |
| 32 | uninstall-hook: |
| 33 | cat ${top_builddir}/python_install.log \ |
| 34 | | awk '{print "$(DESTDIR)"$$1}' | xargs rm -fv |
| 35 | |
| 36 | endif |