1 # Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization
2 # dedicated to making software imaging solutions freely available.
4 # You may not use this file except in compliance with the License. You may
5 # obtain a copy of the License at
7 # http://www.imagemagick.org/script/license.php
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # Makefile for building ImageMagick utilities.
20 UTILITIES_XFAIL_TESTS = \
21 $(UTILITIES_TTF_XFAIL_TESTS) \
22 $(UTILITIES_XML_XFAIL_TESTS)
24 utilities_magick_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
25 utilities_magick_LDFLAGS = $(LDFLAGS)
26 utilities_magick_SOURCES = utilities/magick.c
29 utilities/ImageMagick.1 \
32 utilities/composite.1 \
36 utilities/identify.1 \
43 UTILITIES_CONFIGURE = \
44 utilities/ImageMagick.1.in \
45 utilities/animate.1.in \
46 utilities/compare.1.in \
47 utilities/composite.1.in \
48 utilities/conjure.1.in \
49 utilities/convert.1.in \
50 utilities/display.1.in \
51 utilities/identify.1.in \
52 utilities/import.1.in \
53 utilities/magick.1.in \
54 utilities/mogrify.1.in \
55 utilities/montage.1.in \
58 MAGICK_UTILITIES=animate compare composite conjure display identify import magick-script mogrify montage stream
60 UTILITIES_EXTRA_DIST = \
65 UTILITIES_CLEANFILES =
67 # Link these utilities to 'magick'.
68 UTILITIES_INSTALL_EXEC_LOCAL_TARGETS=install-exec-local-utilities
69 install-exec-local-utilities:
70 $(mkdir_p) $(DESTDIR)$(bindir)
71 cd $(DESTDIR)$(bindir) ; \
72 magick=`echo "magick" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
73 for name in $(MAGICK_UTILITIES) ; \
75 target=`echo "$$name" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
77 $(LN_S) $$magick $$target ; \
80 UTILITIES_UNINSTALL_LOCAL_TARGETS=uninstall-local-utilities
81 uninstall-local-utilities:
82 cd $(DESTDIR)$(bindir) ; \
83 for name in $(MAGICK_UTILITIES) ; \
85 target=`echo "$$name" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \