* Tweak around problem with unexpanded GINAC_DECLARE_REGISTER_CLASS macros.
[ginac.git] / doc / reference / Makefile.am
index db541b8bb3204fcef645ccbc75e9914870dc67bf..cbcb2e4af585d1b99e17a223e98aa6e616b77924 100644 (file)
@@ -5,7 +5,8 @@
 index.html:
        @if [ "${DOXYGEN}" ]; then \
          echo "Running ${DOXYGEN} DoxyfileHTML..."; \
-         ${DOXYGEN} DoxyfileHTML; \
+         (cd ${srcdir}; \
+         ${DOXYGEN} DoxyfileHTML); \
        else \
          echo "warning: target reference_html disabled by configuration"; \
        fi
@@ -16,7 +17,8 @@ latex::
 latex/reference.tex:
        @if [ "${DOXYGEN}" ]; then \
          echo "Running ${DOXYGEN} DoxyfileTEX..."; \
-         ${DOXYGEN} DoxyfileTEX; \
+         (cd ${srcdir}; \
+         ${DOXYGEN} DoxyfileTEX); \
          mv ${srcdir}/latex/refman.tex ${srcdir}/latex/reference.tex; \
        else \
          echo "warning: target reference.tex disabled by configuration"; \
@@ -55,26 +57,16 @@ install-data-local:
          echo " $(INSTALL_DATA) $(srcdir)/doxygen.css $(DESTDIR)$(ginacreferencedir)/doxygen.css"; \
          $(INSTALL_DATA) $(srcdir)/doxygen.css $(DESTDIR)$(ginacreferencedir)/doxygen.css; \
        fi
-       @for p in *.html; do \
-         if [ -f $(srcdir)/$$p ]; then \
-           echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
-           $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
-         fi; \
+       @for p in `echo $(srcdir)/*.html | sed -e 's,[^ ]*/,,g' -e 's,\*\.html,,'`; do \
+         echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
+         $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
        done
-       @for p in *.gif; do \
-         if [ -f $(srcdir)/$$p ]; then \
-           echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
-           $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
-         fi; \
+       @for p in `echo $(srcdir)/*.gif | sed -e 's,[^ ]*/,,g' -e 's,\*\.gif,,'`; do \
+         echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p"; \
+         $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(ginacreferencedir)/$$p; \
        done
 
 uninstall-local:
        rm -f $(DESTDIR)$(ginacreferencedir)/doxygen.css
-       @for p in *.html; do \
-         echo " rm -f $(DESTDIR)$(ginacreferencedir)/$$p"; \
-         rm -f $(DESTDIR)$(ginacreferencedir)/$$p; \
-       done
-       @for p in *.gif; do \
-         echo " rm -f $(DESTDIR)$(ginacreferencedir)/$$p"; \
-         rm -f $(DESTDIR)$(ginacreferencedir)/$$p; \
-       done
+       rm -f $(DESTDIR)$(ginacreferencedir)/*.html
+       rm -f $(DESTDIR)$(ginacreferencedir)/*.gif