Makefile.am 3.15 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SUBDIRS = runtime behavioural_properties

AADL_COMMON_PROPERTIES = $(srcdir)/ocarina_config.aadl \
	$(srcdir)/assert_properties_extended.aadl \
	$(srcdir)/data_model.aadl \
	$(srcdir)/deployment.aadl

AADL_V1_PROPERTIES = $(srcdir)/AADLv1/aadl_properties.aadl \
	$(srcdir)/AADLv1/assert_types.aadl \
	$(srcdir)/AADLv1/assert_properties.aadl \
	$(srcdir)/AADLv1/Cheddar_Properties.aadl \
	$(srcdir)/AADLv1/aadl_project.aadl \
	$(srcdir)/AADLv1/base_types.aadl

AADL_V2_PROPERTIES = $(srcdir)/AADLv2/aadl_project.aadl \
yoogx's avatar
yoogx committed
16
	$(srcdir)/AADLv2/arinc653.aadl \
17
18
19
20
21
22
23
24
	$(srcdir)/AADLv2/arinc653_properties.aadl \
	$(srcdir)/AADLv2/assert_types.aadl \
	$(srcdir)/AADLv2/assert_properties.aadl \
	$(srcdir)/AADLv2/deployment_properties.aadl \
	$(srcdir)/AADLv2/Cheddar_Properties.aadl \
	$(srcdir)/AADLv2/thread_properties.aadl \
	$(srcdir)/AADLv2/communication_properties.aadl \
	$(srcdir)/AADLv2/memory_properties.aadl \
25
	$(srcdir)/AADLv2/modeling_properties.aadl \
26
27
28
29
	$(srcdir)/AADLv2/timing_properties.aadl \
	$(srcdir)/AADLv2/pok_properties.aadl \
	$(srcdir)/AADLv2/programming_properties.aadl \
	$(srcdir)/AADLv2/base_types.aadl \
30
	$(srcdir)/AADLv2/taste_properties.aadl \
31
32
	$(srcdir)/AADLv2/transformations.aadl

33
34
35
AADL_V2_COMPONENTS = $(srcdir)/AADLv2/components/*.aadl \
                     $(srcdir)/AADLv2/components/devices/*.aadl \
                     $(srcdir)/AADLv2/components/processors/*.aadl
36
37


38
39
40
41
42
43
44
MODE_FILES = $(srcdir)/emacs/aadl-mode.el \
	$(srcdir)/vim/indent/aadl.vim \
	$(srcdir)/vim/syntax/aadl.vim

EXTRA_DIST = $(AADL_COMMON_PROPERTIES) \
	$(AADL_V1_PROPERTIES) \
	$(AADL_V2_PROPERTIES) \
45
	$(AADL_V2_COMPONENTS) \
46
47
48
49
50
51
52
53
54
55
	$(MODE_FILES)

install-data-local:
	$(INSTALL) -d $(DESTDIR)$(datadir)/ocarina
	$(INSTALL) -d $(DESTDIR)$(datadir)/ocarina/AADLv1
	$(INSTALL) -d $(DESTDIR)$(datadir)/ocarina/AADLv2
	for file in $(AADL_COMMON_PROPERTIES); do \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(datadir)/ocarina/AADLv1 || exit 1; \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(datadir)/ocarina/AADLv2 || exit 1; \
	done
56
57
58
	for file in $(AADL_V2_PROPERTIES); do \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(datadir)/ocarina/AADLv2 || exit 1; \
	done
59
60
61
	for file in $(AADL_V1_PROPERTIES); do \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(datadir)/ocarina/AADLv1 || exit 1; \
	done
62
	rm -f $(DESTDIR)$(datadir)/ocarina/AADLv2/ocarina_components.aadl
63
	for file in $(srcdir)/AADLv2/components/*.aadl; do \
64
65
66
67
68
69
70
	  cat $$file >> $(DESTDIR)$(datadir)/ocarina/AADLv2/ocarina_components.aadl || exit 1; \
	done
	for file in $(srcdir)/AADLv2/components/devices/*.aadl; do \
	  cat $$file >> $(DESTDIR)$(datadir)/ocarina/AADLv2/ocarina_components.aadl || exit 1; \
	done
	for file in $(srcdir)/AADLv2/components/processors/*.aadl; do \
	  cat $$file >> $(DESTDIR)$(datadir)/ocarina/AADLv2/ocarina_components.aadl || exit 1; \
71
	done
jdelange's avatar
jdelange committed
72
	echo "s/OCARINA_INCLUDE_PATH/"$(shell echo $(DESTDIR)$(includedir)|$(SED) -e 's/\//\\\\\//g')"/g" > sedscript
73
	$(SED) -f sedscript $(DESTDIR)$(datadir)/ocarina/AADLv2/ocarina_components.aadl > tmp.aadl
74
	mv -f tmp.aadl $(DESTDIR)$(datadir)/ocarina/AADLv2/ocarina_components.aadl
75
76
77
78
79
80
	for file in $(MODE_FILES); do \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(datadir)/ocarina || exit 1; \
	done

uninstall-local:
	rm -rf $(DESTDIR)$(datadir)/ocarina