1
# ***************************************************** -*- Makefile -*-
3
# Copyright (C) 2004-2008 Andreas Huggel <ahuggel@gmx.net>
5
# This Makefile is part of the Exiv2 distribution.
7
# Redistribution and use in source and binary forms, with or without
8
# modification, are permitted provided that the following conditions
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
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.
34
# Version: $Rev: 1366 $
35
# Author(s): Andreas Huggel (ahu) <ahuggel@gmx.net>
36
# History: 15-Jan-04, ahu: created
39
# Simple top-level makefile that mainly forwards to makefiles in
46
########################################################################
47
# Makefile is a generated file. Do NOT change any settings in this file.
48
# Run ./configure with the appropriate options to regenerate the file
49
# and possibly others.
50
########################################################################
53
ENABLE_XMP = @ENABLE_XMP@
55
.PHONY: all doc config samples xmpsdk \
56
mostlyclean clean distclean maintainer-clean \
59
all install: config/config.mk xmpsdk
60
cd src && $(MAKE) $(MAKECMDGOALS)
61
cd po && $(MAKE) $(MAKECMDGOALS)
63
uninstall: config/config.mk
64
cd src && $(MAKE) $(MAKECMDGOALS)
65
cd po && $(MAKE) $(MAKECMDGOALS)
68
cd doc && $(MAKE) $(MAKECMDGOALS)
70
samples: config/config.mk
71
cd samples && $(MAKE) $(MAKECMDGOALS)
74
cd config && $(MAKE) -f config.make $(MAKECMDGOALS)
76
xmpsdk: config/config.mk
77
if test "x$(ENABLE_XMP)" = "x1"; then cd xmpsdk/src && $(MAKE) $@; fi;
79
mostlyclean clean: config/config.mk
80
cd src && $(MAKE) $(MAKECMDGOALS)
81
cd doc && $(MAKE) $(MAKECMDGOALS)
82
cd samples && $(MAKE) $(MAKECMDGOALS)
83
cd xmpsdk/src && $(MAKE) $(MAKECMDGOALS)
84
cd config && $(MAKE) -f config.make $(MAKECMDGOALS)
85
cd po && $(MAKE) $(MAKECMDGOALS)
87
# `make distclean' also removes files created by configuring
88
# the program. Running `make all distclean' prepares the project
91
rm -f config.log config.status libtool
94
# This removes almost everything, including the configure script!
95
maintainer-clean: distclean
99
$(error File config/config.mk does not exist. Did you run ./configure?)