summaryrefslogtreecommitdiff
path: root/src/examples/eina_cxx.mk
blob: 060e1ed3c48fc30ba7d6f618bbf968f8e23b5fc5 (plain)
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
EINA_CXX_SRCS = \
eina_cxx/eina_cxx_list_01.cc \
eina_cxx/eina_cxx_thread_01.cc

if HAVE_CXX

EXTRA_PROGRAMS += \
eina_cxx/eina_cxx_list_01 \
eina_cxx/eina_cxx_thread_01

eina_cxx_eina_cxx_list_01_SOURCES = \
eina_cxx/eina_cxx_list_01.cc

eina_cxx_eina_cxx_thread_01_SOURCES = \
eina_cxx/eina_cxx_thread_01.cc

endif

install-examples-einacxx:
	$(MKDIR_P) $(DESTDIR)$(datadir)/eina_cxx/examples
	cd $(srcdir) && $(install_sh_DATA) -c $(EINA_CXX_SRCS) $(DESTDIR)$(datadir)/eina_cxx/examples

uninstall-local-einacxx:
	for f in $(EINA_CXX_SRCS); do \
	  rm -f $(DESTDIR)$(datadir)/eina_cxx/examples/$$f ; \
	done

INSTALL_EXAMPLES += install-examples-einacxx
UNINSTALL_EXAMPLES += uninstall-local-einacxx