5 TARGET_DIR=@XMLSEC_DOCDIR@
15 docs: api-docs-create docs-format
20 echo "Cleaning up result files"; \
21 perl ../../scripts/remove-gtkdoclink.pl `find . -name "*.html" -print` \
25 @(cd api; $(MAKE) clean)
28 @(echo "Formatting html documents"; \
29 for i in `find . -name "*.html" -print`; \
31 top_folder=`echo $$i | sed 's#/[^/]*$$#/#' | sed 's#\./##' | \
32 sed 's#[^/]*/#../#g'`; \
33 echo "Processing $$i ($$top_folder)"; \
34 xsltproc --html --stringparam topfolder "$$top_folder" \
35 --output $$i.tmp ./xmlsec.xsl $$i; \
38 echo "ERROR: processing file $$i"; \
45 @$(CP) -p $(srcdir)/*.html $(distdir)
48 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
49 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/images
50 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/api
51 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/api/images
52 -@INSTALL@ -m 0644 $(srcdir)/*.html $(DESTDIR)$(TARGET_DIR)
53 -@INSTALL@ -m 0644 $(srcdir)/images/*.gif $(srcdir)/images/*.png $(DESTDIR)$(TARGET_DIR)/images
54 -@INSTALL@ -m 0644 $(srcdir)/api/*.html $(srcdir)/api/*.png $(srcdir)/api/*.sgml $(DESTDIR)$(TARGET_DIR)/api
55 -@INSTALL@ -m 0644 $(srcdir)/api/images/*.png $(DESTDIR)$(TARGET_DIR)/api/images
58 @rm -rf $(DESTDIR)$(TARGET_DIR)