You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
20 years ago
|
# ************************************************************* -*- Makefile -*-
|
||
|
#
|
||
|
# File: Makefile
|
||
|
# Version: $Rev$
|
||
|
# Author(s): Andreas Huggel (ahu) <ahuggel@gmx.net>
|
||
|
# History: 28-May-05, ahu: created
|
||
|
#
|
||
|
# Description:
|
||
20 years ago
|
# Simple Makefile to create html documentation from templates. Requires a
|
||
|
# number of special tools (java, xalan, awk, python) but really only needs
|
||
|
# to be used to update the documentation after changing Exiv2 tags in the
|
||
|
# source code.
|
||
20 years ago
|
#
|
||
|
# Restrictions:
|
||
|
# Only tested with GNU make.
|
||
|
#
|
||
|
|
||
|
TABLES = Exif Canon CanonCs1 CanonCs2 CanonCf Fujifilm Nikon1 Nikon2 Nikon3 \
|
||
|
Olympus Sigma Sony
|
||
|
|
||
|
TAGLIST = ../../src/taglist
|
||
|
|
||
20 years ago
|
# **********************************************************************
|
||
|
# ======================================================================
|
||
|
# **********************************************************************
|
||
|
|
||
|
# Initialisations
|
||
|
SHELL = /bin/sh
|
||
|
|
||
|
.SUFFIXES:
|
||
|
|
||
20 years ago
|
# Default make target
|
||
|
all: tags
|
||
|
|
||
20 years ago
|
.PHONY: tags mostlyclean clean distclean maintainer-clean
|
||
20 years ago
|
|
||
|
tags: $(TABLES) Iptc
|
||
20 years ago
|
@./gen.py *.html.in
|
||
20 years ago
|
|
||
|
$(TABLES):
|
||
|
@echo Generating $@ table...
|
||
|
@$(TAGLIST) $@ | awk -f tags.awk > $@.xml
|
||
|
@java org.apache.xalan.xslt.Process -IN $@.xml -XSL tags.xsl -OUT $@.tmp
|
||
20 years ago
|
@sed "s/report1/$@/" $@.tmp > __$@__
|
||
|
@touch $@
|
||
20 years ago
|
@rm -f $@.tmp
|
||
|
|
||
|
Iptc:
|
||
|
@echo Generating $@ table...
|
||
|
@$(TAGLIST) $@ | awk -f iptc.awk > $@.xml
|
||
|
@java org.apache.xalan.xslt.Process -IN $@.xml -XSL iptc.xsl -OUT $@.tmp
|
||
20 years ago
|
@sed "s/report1/$@/g" $@.tmp > __$@__
|
||
|
@touch $@
|
||
20 years ago
|
@rm -f $@.tmp
|
||
|
|
||
|
mostlyclean:
|
||
|
rm -f *.xml
|
||
|
rm -f *.tmp
|
||
|
|
||
|
clean: mostlyclean
|
||
|
rm -f $(TABLES:%=__%__) __Iptc__
|
||
20 years ago
|
rm -f $(TABLES) Iptc
|
||
|
rm -f *.html
|
||
20 years ago
|
|
||
|
distclean: clean
|
||
|
rm -f *~
|
||
20 years ago
|
|
||
|
maintainer-clean: distclean
|