Makefile.am 747 Bytes
Newer Older
yoogx's avatar
yoogx committed
1 2
AUTOMAKE_OPTIONS = no-dependencies

yoogx's avatar
yoogx committed
3
PYTHON_FILES = $(srcdir)/ocarina/ocarina.py				\
yoogx's avatar
yoogx committed
4
	$(srcdir)/ocarina/__init__.py					\
5 6
	$(srcdir)/ocarina/ocarina_common_tools.py $(srcdir)/setup.py \
	$(srcdir)/ocarina/lmp.py
yoogx's avatar
yoogx committed
7 8

if INSTALL_PYTHON
yoogx's avatar
yoogx committed
9
PYTHON_FILES += \
10 11
	 $(top_builddir)/src/python/ocarina_me_aadl_aadl_instances_nodes.py \
	 $(top_builddir)/src/python/ocarina_me_aadl_aadl_tree_nodes.py
yoogx's avatar
yoogx committed
12
endif
yoogx's avatar
yoogx committed
13 14 15 16 17 18 19

EXTRA_DIST = $(PYTHON_FILES)

ocarina_python = ${shell $(CYGPATH_U) '$(includedir)/ocarina/runtime/python'}

install-data-local:
	$(INSTALL) -d $(DESTDIR)$(ocarina_python)
yoogx's avatar
yoogx committed
20 21 22 23 24
	for f in $(PYTHON_FILES); do $(INSTALL) -m 444 $$f $(DESTDIR)$(ocarina_python) ; done


# The following does not appear to work, to be investigated ...
#pip install --user $(srcdir)
yoogx's avatar
yoogx committed
25