TABLES = Exif \ Canon \ CanonCs \ CanonSi \ CanonCf \ CanonPi \ CanonFi \ CanonPa \ Fujifilm \ Minolta \ MinoltaCsNew \ MinoltaCs5D \ MinoltaCs7D \ Nikon1 \ Nikon2 \ Nikon3 \ NikonVr \ NikonPc \ NikonWt \ NikonIi \ NikonAf \ NikonAf2 \ NikonAFT \ NikonFi \ NikonMe \ NikonFl1 \ NikonFl2 \ NikonFl3 \ NikonSiD80 \ NikonSiD40 \ NikonSiD300a \ NikonSiD300b \ NikonSi01xx \ NikonCb1 \ NikonCb2 \ NikonCb2a \ NikonCb2b \ NikonCb3 \ NikonCb4 \ NikonLd1 \ NikonLd2 \ NikonLd3 \ Olympus \ OlympusCs \ OlympusEq \ OlympusRd \ OlympusRd2 \ OlympusIp \ OlympusFi \ OlympusFe1 \ OlympusRi \ Panasonic \ PanasonicRaw \ Pentax \ Samsung2 \ Sigma \ Sony1 \ SonyMinolta \ Sony1Cs \ Sony1Cs2 \ Sony1MltCs7D \ Sony1MltCsOld \ Sony1MltCsA100 \ Iptc SCHEMA = dc \ xmp \ xmpRights \ xmpMM \ xmpBJ \ xmpTPg \ xmpDM \ pdf \ photoshop \ crs \ tiff \ exif \ aux \ iptc \ iptcExt \ MicrosoftPhoto \ digiKam \ kipi \ plus \ mediapro \ expressionmedia \ MP \ MPRI \ MPReg \ mwg-rs all: html doc .PHONY: html doc news clean update update-intro update-sample update-changelog \ update-makernotes publish really-publish html: news @bin/gen.py master/*.in @echo "Moving files to html/ ..." -@mv -f master/*.html master/*.php html/ news: var/__whatsnew-latest__ var/__whatsnew-table__ html/rss.xml doc: html @echo "Generating API documentation ... " # Preprocessing @sed -e 's,="include/,="../include/,' \ -e 's,="whatsnew.html#,="../whatsnew.html#,' \ html/draft-exiv2-header.html > html/exiv2-header.html @sed 's,="include/,="../include/,' \ html/draft-exiv2-footer.html > html/exiv2-footer.html @bin/gen.py doxygen/mainpage.hpp.in # API doc generation doxygen-1.5.4 doxygen/Doxyfile # Postprocessing @sed 's,

Exiv2 Class Index

,

Image metadata library and tools

Exiv2 Class index

,' html/doc/classes.html > html/doc/ttt @mv -f html/doc/ttt html/doc/classes.html @sed 's,

Exiv2 Namespace List

,

Image metadata library and tools

Exiv2 Namespaces

,' html/doc/namespaces.html > html/doc/ttt @mv -f html/doc/ttt html/doc/namespaces.html @sed 's,

Exiv2 File List

,

Image metadata library and tools

Exiv2 File list

,' html/doc/files.html > html/doc/ttt @mv -f html/doc/ttt html/doc/files.html @sed 's,

Exiv2 Examples

,

Image metadata library and tools

Exiv2 Examples

,' html/doc/examples.html > html/doc/ttt @mv -f html/doc/ttt html/doc/examples.html -@cp -f doxygen/doxygen.css html/doc # Cleanup -@rm -f html/exiv2-header.html -@rm -f html/exiv2-footer.html -@rm -f html/draft-exiv2-header.html -@rm -f html/draft-exiv2-footer.html -@rm -f html/doc/namespacemembers*.html -@rm -f html/doc/functions*.html var/__whatsnew-table__: master/news.xml @echo "Generating news table ..." @xsltproc master/whatsnew-table.xsl $< > $@ var/__whatsnew-latest__: master/news.xml @echo "Generating latest news ..." @xsltproc master/whatsnew-latest.xsl $< > $@ html/rss.xml: master/news.xml @echo "Generating RSS feed ..." @xsltproc master/whatsnew-rss.xsl $< \ | awk '/pubDate/ { gsub("<[/]?pubDate>", ""); printf " "; system("bin/rssdate " $$0); printf "\n"; next } /__lastBuildDate__/ { printf " "; system("date -R"); printf " \n"; next; } {print}' > $@ # Run bin/release_info.sh to update release related variables (incl __version__) update: update-manpage update-intro update-sample update-conversion update-changelog update-tags update-makernotes update-manpage: @man -t exiv2 | ps2pdf - html/exiv2-manpage.pdf @cat ../src/exiv2.1 | sed '/^JPEG/ i\ ' | man2html -Hlinux.die.net -M/man -p | sed -e's,\(HREF=.*\)+,\1/,' -e'1,15d' -e'/NAME="index"/,$$d' \ | sed -e's/ < contact me,contact me,' \ doxygen/draft-intro.html > doxygen/intro.html @rm -f doxygen/draft-intro.html update-sample: @./bin/sample.sh update-conversion: @./bin/conversion.sh update-changelog: @cp -f ../doc/ChangeLog var/__ChangeLog__ @bin/buglinks.sh var/__ChangeLog__ update-makernotes: @cp -f ../doc/templates/__makernotes__ var/__makernotes__ $(TABLES): @cp -f ../doc/templates/__$@__ var/__$@__ $(SCHEMA): @cp -f ../doc/templates/__xmp_$@__ var/__xmp_$@__ update-tags: $(TABLES) $(SCHEMA) clean: @rm -vf html/*.html @rm -vf html/rss.xml @rm -rf html/doc @rm -vf var/__whatsnew-latest__ @rm -vf var/__whatsnew-table__ @rm -vf doxygen/mainpage.hpp publish: rsync -vlDtrz --delete --exclude='.svn' --include="exiv2-`cat var/__version__`*" --exclude='exiv2-*tar.gz' --exclude='exiv2-*.zip' -e ssh html/ `whoami`@localhost:rs really-publish: rsync -vlDtrz --delete --exclude='misc/' --exclude='.svn' --include="exiv2-`cat var/__version__`*" --exclude='exiv2-*tar.gz' --exclude='exiv2-*.zip' -e "ssh -2 -i $$HOME/.ssh/exiv2.pem" html/ exiv2@exiv2.org:/var/www/exiv2/