Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / service / protocol-plugin / lib / cpluff / doc / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2
3 # Copyright 2007 Johannes Lehtinen
4 # This Makefile is free software; Johannes Lehtinen gives unlimited
5 # permission to copy, distribute and modify it.
6
7 SUBDIRS = img
8
9 EXTRA_DIST = index.en.html copyright.en.html cpluff_style.css common_style.css
10
11 htmldocdir = $(docdir)/html
12 htmldoc_DATA = index.en.html copyright.en.html cpluff_style.css common_style.css
13
14 examplesdir = $(docdir)/examples
15
16 install-data-local: install-reference-doc install-examples-source
17
18 install-reference-doc:
19         { test ! -d '$(DESTDIR)$(htmldocdir)/reference' || \
20                 { chmod -R u+w '$(DESTDIR)$(htmldocdir)/reference' && \
21                         rm -rf '$(DESTDIR)$(htmldocdir)/reference'; }; } && \
22         $(MKDIR_P) '$(DESTDIR)$(htmldocdir)' && \
23         if test -d '$(srcdir)/reference'; then \
24                 cp -r '$(srcdir)/reference' '$(DESTDIR)$(htmldocdir)'; \
25         else \
26                 cd .. && \
27                 $(MAKE) $(AM_MAKEFLAGS) doc && \
28                 cp -r libcpluff/doc/reference '$(DESTDIR)$(htmldocdir)' && \
29                 cd doc; \
30         fi && \
31         find '$(DESTDIR)$(htmldocdir)/reference' -type f -exec chmod 644 '{}' \; && \
32         cd '$(DESTDIR)$(htmldocdir)' && \
33         rm -f index.html && \
34         $(LN_S) index.en.html index.html
35
36 install-examples-source:
37         { test ! -d '$(DESTDIR)$(examplesdir)' || \
38                 { chmod -R u+w '$(DESTDIR)$(examplesdir)' && \
39                         rm -rf '$(DESTDIR)$(examplesdir)'; }; } && \
40         for d in \
41                 cpfile/plugins/cext \
42                 cpfile/plugins/core \
43                 cpfile/plugins/extension \
44                 cpfile/plugins/special; do \
45                 $(MKDIR_P) "$(DESTDIR)$(examplesdir)/$$d"; \
46         done && \
47         cd '$(srcdir)/..' && \
48         find examples -type f \( -name 'autogen.sh' \
49                 -or -name 'configure.ac' \
50                 -or -name 'Makefile.am' \
51                 -or -name 'cpfile.in' \
52                 -or -name '*.nmake' \
53                 -or -name '*.bat' \
54                 -or -name '*.txt' \
55                 -or -name '*.xml' \
56                 -or -name '*.xsd' \
57                 -or -name '*.c' \
58                 -or -name '*.h' \) \
59                 -exec $(INSTALL_DATA) '{}' '$(DESTDIR)$(docdir)/{}' \; && \
60         chmod 755 '$(DESTDIR)$(examplesdir)/autogen.sh'
61
62 uninstall-local:
63         chmod -R u+w '$(DESTDIR)$(docdir)'
64         rm -rf '$(DESTDIR)$(docdir)'
65
66 .PHONY: install-reference-doc install-examples-source