1 ## Process this file with automake to produce Makefile.in.
3 # Copyright 2007 Johannes Lehtinen
4 # This Makefile is free software; Johannes Lehtinen gives unlimited
5 # permission to copy, distribute and modify it.
9 EXTRA_DIST = index.en.html copyright.en.html cpluff_style.css common_style.css
11 htmldocdir = $(docdir)/html
12 htmldoc_DATA = index.en.html copyright.en.html cpluff_style.css common_style.css
14 examplesdir = $(docdir)/examples
16 install-data-local: install-reference-doc install-examples-source
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)'; \
27 $(MAKE) $(AM_MAKEFLAGS) doc && \
28 cp -r libcpluff/doc/reference '$(DESTDIR)$(htmldocdir)' && \
31 find '$(DESTDIR)$(htmldocdir)/reference' -type f -exec chmod 644 '{}' \; && \
32 cd '$(DESTDIR)$(htmldocdir)' && \
34 $(LN_S) index.en.html index.html
36 install-examples-source:
37 { test ! -d '$(DESTDIR)$(examplesdir)' || \
38 { chmod -R u+w '$(DESTDIR)$(examplesdir)' && \
39 rm -rf '$(DESTDIR)$(examplesdir)'; }; } && \
43 cpfile/plugins/extension \
44 cpfile/plugins/special; do \
45 $(MKDIR_P) "$(DESTDIR)$(examplesdir)/$$d"; \
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' \
59 -exec $(INSTALL_DATA) '{}' '$(DESTDIR)$(docdir)/{}' \; && \
60 chmod 755 '$(DESTDIR)$(examplesdir)/autogen.sh'
63 chmod -R u+w '$(DESTDIR)$(docdir)'
64 rm -rf '$(DESTDIR)$(docdir)'
66 .PHONY: install-reference-doc install-examples-source