DOXYGEN = CONFIG_DOXYGEN_PATH DOXYGEN_CONFIG = CONFIG_DOXYGEN_CONFIG TOPDIR=CONFIG_TOPDIR SUBDIR := images HTML_FILES = index.html \ qtchat-contact.html \ qtchat-development.html \ qtchat-development-designmethodology.html \ qtchat-development-gettingstarted.html \ qtchat-development-wishlist.html \ qtchat-download.html \ qtchat-faq.html \ qtchat-news.html DISTFILES = Makefile.in qtchat2.dox.in $(HTML_FILES:%=%.template) \ snapshots.html # Action targets all: $(HTML_FILES) ChangeLog $(DOXYGEN) $(DOXYGEN_CONFIG) install: all mkdir -p "CONFIG_PREFIX/doc" for i in $${dummy}$(SUBDIR); do \ (cd $$i && $(MAKE) install PREFIX="CONFIG_PREFIX"); \ done cp -R ChangeLog $(HTML_FILES) "CONFIG_PREFIX/doc" clean: rm -f ChangeLog distclean: clean rm -rf html man rtf latex $(HTML_FILES) Makefile qtchat2.dox for i in $${dummy}$(SUBDIR); do \ (cd $$i && $(MAKE) $@ DISTPREFIX="$(DISTPREFIX)/doc";) \ done dist: $(DISTFILES) mkdir -p $(DISTPREFIX)/doc cp $(DISTFILES) $(DISTPREFIX)/doc for i in $${dummy}$(SUBDIR); do \ (cd $$i && $(MAKE) $@ DISTPREFIX="$(DISTPREFIX)/doc";) \ done publish: all scp -r -P 25 images *.html html ChangeLog ajenkins@10.0.0.1:project/qtchat2/doc/ rm -f $(HTML_FILES) # File targets index.html: index.html.template cat index.html.template | sed -e "s/updated: ....-...-../updated: `date '+%Y-%b-%d'`/" > $@ qtchat-contact.html: qtchat-contact.html.template cat qtchat-contact.html.template | sed -e "s/updated: ....-...-../updated: `date '+%Y-%b-%d'`/" > $@ qtchat-development.html: qtchat-development.html.template cat qtchat-development.html.template | sed -e "s/updated: ....-...-../updated: `date '+%Y-%b-%d'`/" > $@ qtchat-development-designmethodology.html: qtchat-development-designmethodology.html.template cat qtchat-development-designmethodology.html.template | sed -e "s/updated: ....-...-../updated: `date '+%Y-%b-%d'`/" > $@ qtchat-development-gettingstarted.html: qtchat-development-gettingstarted.html.template cat qtchat-development-gettingstarted.html.template | sed -e "s/updated: ....-...-../updated: `date '+%Y-%b-%d'`/" > $@ qtchat-development-wishlist.html: qtchat-development-wishlist.html.template cat qtchat-development-wishlist.html.template | sed -e "s/updated: ....-...-../updated: `date '+%Y-%b-%d'`/" > $@ qtchat-download.html: qtchat-download.html.template cat qtchat-download.html.template | sed -e "s/updated: ....-...-../updated: `date '+%Y-%b-%d'`/" | m4 >$@ qtchat-faq.html: qtchat-faq.html.template cat qtchat-faq.html.template | sed -e "s/updated: ....-...-../updated: `date '+%Y-%b-%d'`/" > $@ qtchat-news.html: qtchat-news.html.template cat qtchat-news.html.template | sed -e "s/updated: ....-...-../updated: `date '+%Y-%b-%d'`/" > $@ ChangeLog: if which cvs2cl 1>/dev/null 2>&1; then \ cd "$(TOPDIR)" && cvs2cl -f doc/ChangeLog; \ else \ touch ChangeLog; \ fi .PHONY: ChangeLog $(HTML_FILES)