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 UTILITIES_EXTRA_DIST = \
62 UTILITIES_CLEANFILES =
64 # Link these utilities to 'magick'.
65 MAGICK_UTILITIES=animate compare composite conjure display identify import magick-script mogrify montage stream
66 UTILITIES_INSTALL_EXEC_LOCAL_TARGETS=install-exec-local-utilities
67 install-exec-local-utilities:
68 $(mkdir_p) $(DESTDIR)$(bindir)
69 cd $(DESTDIR)$(bindir) ; \
70 magick=`echo "magick" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
71 for name in $(MAGICK_UTILITIES) ; \
73 target=`echo "$$name" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
75 $(LN_S) $$magick $$target ; \
78 UTILITIES_UNINSTALL_LOCAL_TARGETS=uninstall-local-utilities
79 uninstall-local-utilities:
80 cd $(DESTDIR)$(bindir) ; \
81 for name in $(MAGICK_UTILITIES) ; \
83 target=`echo "$$name" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \