| 1 |
# ************************************************************* -*- Makefile -*- |
| 2 |
# |
| 3 |
# Copyright (C) 2004-2017 Andreas Huggel <[email protected]> |
| 4 |
# |
| 5 |
# This Makefile is part of the Exiv2 distribution. |
| 6 |
# |
| 7 |
# Redistribution and use in source and binary forms, with or without |
| 8 |
# modification, are permitted provided that the following conditions |
| 9 |
# are met: |
| 10 |
# |
| 11 |
# 1. Redistributions of source code must retain the above copyright |
| 12 |
# notice, this list of conditions and the following disclaimer. |
| 13 |
# 2. Redistributions in binary form must reproduce the above |
| 14 |
# copyright notice, this list of conditions and the following |
| 15 |
# disclaimer in the documentation and/or other materials provided |
| 16 |
# with the distribution. |
| 17 |
# 3. The name of the author may not be used to endorse or promote |
| 18 |
# products derived from this software without specific prior |
| 19 |
# written permission. |
| 20 |
# |
| 21 |
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| 22 |
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 23 |
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 24 |
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
| 25 |
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 26 |
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE |
| 27 |
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 28 |
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER |
| 29 |
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 30 |
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 31 |
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 |
# |
| 33 |
# File: Makefile |
| 34 |
# Author(s): Andreas Huggel (ahu) <[email protected]> |
| 35 |
# History: 28-May-05, ahu: created |
| 36 |
# |
| 37 |
# Description: |
| 38 |
# Simple Makefile to create html documentation from templates. Requires |
| 39 |
# some special tools (python3, xsltproc) but really only needs to |
| 40 |
# be used to update the documentation after changing Exiv2 tags in the |
| 41 |
# source code. |
| 42 |
# |
| 43 |
# Restrictions: |
| 44 |
# Only tested with GNU make. |
| 45 |
# |
| 46 |
|
| 47 |
TABLES = Exif \ |
| 48 |
Canon \ |
| 49 |
CanonCs \ |
| 50 |
CanonSi \ |
| 51 |
CanonCf \ |
| 52 |
CanonPi \ |
| 53 |
CanonTi \ |
| 54 |
CanonFi \ |
| 55 |
CanonPa \ |
| 56 |
CanonPr \ |
| 57 |
CanonMe \ |
| 58 |
CanonHdr \ |
| 59 |
CanonVigCor2 \ |
| 60 |
CanonLiOp \ |
| 61 |
CanonAfMiAdj \ |
| 62 |
CanonLe \ |
| 63 |
CanonAm \ |
| 64 |
CanonFil \ |
| 65 |
CanonAfC \ |
| 66 |
CanonRawB \ |
| 67 |
Casio \ |
| 68 |
Casio2 \ |
| 69 |
Fujifilm \ |
| 70 |
Minolta \ |
| 71 |
MinoltaCsNew \ |
| 72 |
MinoltaCs5D \ |
| 73 |
MinoltaCs7D \ |
| 74 |
Nikon1 \ |
| 75 |
Nikon2 \ |
| 76 |
Nikon3 \ |
| 77 |
NikonVr \ |
| 78 |
NikonPc \ |
| 79 |
NikonWt \ |
| 80 |
NikonIi \ |
| 81 |
NikonAf \ |
| 82 |
NikonAf2 \ |
| 83 |
NikonAf22 \ |
| 84 |
NikonAFT \ |
| 85 |
NikonFi \ |
| 86 |
NikonMe \ |
| 87 |
NikonFl1 \ |
| 88 |
NikonFl2 \ |
| 89 |
NikonFl3 \ |
| 90 |
NikonFl6 \ |
| 91 |
NikonFl7 \ |
| 92 |
NikonSiD80 \ |
| 93 |
NikonSiD40 \ |
| 94 |
NikonSiD300a \ |
| 95 |
NikonSiD300b \ |
| 96 |
NikonSi01xx \ |
| 97 |
NikonCb1 \ |
| 98 |
NikonCb2 \ |
| 99 |
NikonCb2a \ |
| 100 |
NikonCb2b \ |
| 101 |
NikonCb3 \ |
| 102 |
NikonCb4 \ |
| 103 |
NikonLd1 \ |
| 104 |
NikonLd2 \ |
| 105 |
NikonLd3 \ |
| 106 |
NikonLd4 \ |
| 107 |
Olympus \ |
| 108 |
OlympusCs \ |
| 109 |
OlympusEq \ |
| 110 |
OlympusRd \ |
| 111 |
OlympusRd2 \ |
| 112 |
OlympusIp \ |
| 113 |
OlympusFi \ |
| 114 |
OlympusFe1 \ |
| 115 |
OlympusRi \ |
| 116 |
Panasonic \ |
| 117 |
PanasonicRaw \ |
| 118 |
Pentax \ |
| 119 |
Samsung2 \ |
| 120 |
SamsungPictureWizard \ |
| 121 |
Sigma \ |
| 122 |
Sony1 \ |
| 123 |
SonyMinolta \ |
| 124 |
Sony1Cs \ |
| 125 |
Sony1Cs2 \ |
| 126 |
Sony2010e \ |
| 127 |
Sony1MltCs7D \ |
| 128 |
Sony1MltCsOld \ |
| 129 |
Sony1MltCsA100 \ |
| 130 |
Sony2Fp \ |
| 131 |
SonyMisc1 \ |
| 132 |
SonyMisc2b \ |
| 133 |
SonyMisc3c \ |
| 134 |
SonySInfo1 |
| 135 |
|
| 136 |
SCHEMA = xmp_dc \ |
| 137 |
xmp_dwc \ |
| 138 |
xmp_dcterms \ |
| 139 |
xmp_xmp \ |
| 140 |
xmp_xmpRights \ |
| 141 |
xmp_xmpMM \ |
| 142 |
xmp_xmpBJ \ |
| 143 |
xmp_xmpTPg \ |
| 144 |
xmp_xmpDM \ |
| 145 |
xmp_pdf \ |
| 146 |
xmp_photoshop \ |
| 147 |
xmp_lr \ |
| 148 |
xmp_crs \ |
| 149 |
xmp_crss \ |
| 150 |
xmp_tiff \ |
| 151 |
xmp_exif \ |
| 152 |
xmp_exifEX \ |
| 153 |
xmp_aux \ |
| 154 |
xmp_iptc \ |
| 155 |
xmp_MicrosoftPhoto \ |
| 156 |
xmp_acdsee \ |
| 157 |
xmp_digiKam \ |
| 158 |
xmp_kipi \ |
| 159 |
xmp_iptcExt \ |
| 160 |
xmp_plus \ |
| 161 |
xmp_mediapro \ |
| 162 |
xmp_expressionmedia \ |
| 163 |
xmp_GPano \ |
| 164 |
xmp_MP \ |
| 165 |
xmp_MPRI \ |
| 166 |
xmp_MPReg \ |
| 167 |
xmp_mwg-rs \ |
| 168 |
xmp_mwg-kw |
| 169 |
|
| 170 |
TAGLIST = ${EXIV2_BINDIR}/taglist |
| 171 |
|
| 172 |
# ********************************************************************** |
| 173 |
# ====================================================================== |
| 174 |
# ********************************************************************** |
| 175 |
|
| 176 |
# Initialisations |
| 177 |
SHELL = /bin/sh |
| 178 |
|
| 179 |
.SUFFIXES: |
| 180 |
|
| 181 |
# Default make target |
| 182 |
all: tags |
| 183 |
|
| 184 |
.PHONY: tags mostlyclean clean distclean maintainer-clean |
| 185 |
|
| 186 |
tags: $(TABLES) Iptc $(SCHEMA) |
| 187 |
@./gen.py *.html.in |
| 188 |
|
| 189 |
$(TABLES): |
| 190 |
@echo Generating $@ table... |
| 191 |
@$(TAGLIST) $@ | sed -e"s/</\</g" -e"s/>/\>/g" | python3 tags.py > [email protected] |
| 192 |
@xsltproc tags.xsl [email protected] > [email protected] |
| 193 |
@sed "s/report1/$@/" [email protected] > __$@__ |
| 194 |
@touch $@ |
| 195 |
@rm -f [email protected] |
| 196 |
|
| 197 |
Iptc: |
| 198 |
@echo Generating $@ table... |
| 199 |
@$(TAGLIST) $@ | sed -e"s/</\</g" -e"s/>/\>/g" -e"s/�/\±/g" \ |
| 200 |
| python3 iptc.py > [email protected] |
| 201 |
@xsltproc iptc.xsl [email protected] > [email protected] |
| 202 |
@sed "s/report1/$@/g" [email protected] > __$@__ |
| 203 |
@touch $@ |
| 204 |
@rm -f [email protected] |
| 205 |
|
| 206 |
$(SCHEMA): |
| 207 |
@echo Generating $@ table... |
| 208 |
@echo $@ | sed "s/xmp_//" | xargs $(TAGLIST) | sed -e"s/</\</g" -e"s/>/\>/g" | python3 xmp.py > [email protected] |
| 209 |
@xsltproc xmp.xsl [email protected] > [email protected] |
| 210 |
@sed "s/report1/$@/" [email protected] > __$@__ |
| 211 |
@touch $@ |
| 212 |
@rm -f [email protected] |
| 213 |
|
| 214 |
$(TAGLIST): |
| 215 |
$(error File $(TAGLIST) does not exist. Did you build the library and programs in the src/ directory?) |
| 216 |
|
| 217 |
mostlyclean: |
| 218 |
rm -f *.xml |
| 219 |
rm -f *.tmp |
| 220 |
|
| 221 |
clean: mostlyclean |
| 222 |
rm -f $(TABLES:%=__%__) __Iptc__ |
| 223 |
rm -f $(SCHEMA:%=__%__) |
| 224 |
rm -f $(TABLES) $(SCHEMA) Iptc |
| 225 |
rm -f *.html |
| 226 |
|
| 227 |
distclean: clean |
| 228 |
rm -f *~ |
| 229 |
|
| 230 |
maintainer-clean: distclean |