1# Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization 2# dedicated to making software imaging solutions freely available. 3# 4# You may not use this file except in compliance with the License. You may 5# obtain a copy of the License at 6# 7# http://imagemagick.org/script/license.php 8# 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. 14# 15# Makefile for building ImageMagick utilities. 16 17if WITH_UTILITIES 18UTILITIES_PGMS = \ 19 utilities/magick 20 21UTILITIES_XFAIL_TESTS = \ 22 $(UTILITIES_TTF_XFAIL_TESTS) \ 23 $(UTILITIES_XML_XFAIL_TESTS) 24 25utilities_magick_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) 26utilities_magick_LDFLAGS = $(LDFLAGS) 27utilities_magick_SOURCES = utilities/magick.c 28 29UTILITIES_MANS = \ 30 utilities/ImageMagick.1 \ 31 utilities/animate.1 \ 32 utilities/compare.1 \ 33 utilities/composite.1 \ 34 utilities/conjure.1 \ 35 utilities/convert.1 \ 36 utilities/display.1 \ 37 utilities/identify.1 \ 38 utilities/import.1 \ 39 utilities/magick.1 \ 40 utilities/magick-script.1 \ 41 utilities/mogrify.1 \ 42 utilities/montage.1 \ 43 utilities/stream.1 44 45UTILITIES_CONFIGURE = \ 46 utilities/ImageMagick.1.in \ 47 utilities/animate.1.in \ 48 utilities/compare.1.in \ 49 utilities/composite.1.in \ 50 utilities/conjure.1.in \ 51 utilities/convert.1.in \ 52 utilities/display.1.in \ 53 utilities/identify.1.in \ 54 utilities/import.1.in \ 55 utilities/magick.1.in \ 56 utilities/magick-script.1.in \ 57 utilities/mogrify.1.in \ 58 utilities/montage.1.in \ 59 utilities/stream.1.in 60 61UTILITIES_EXTRA_DIST = \ 62 $(UTILITIES_MANS) \ 63 $(UTILITIES_TESTS) 64 65UTILITIES_CLEANFILES = 66 67# Link these utilities to 'magick'. 68MAGICK_UTILITIES=animate compare composite conjure convert display identify import magick-script mogrify montage stream 69 70else 71UTILITIES_PGMS = 72UTILITIES_MANS = 73UTILITIES_CONFIGURE = 74UTILITIES_EXTRA_DIST = 75UTILITIES_CLEANFILES = 76MAGICK_UTILITIES= 77endif 78 79UTILITIES_INSTALL_EXEC_LOCAL_TARGETS=install-exec-local-utilities 80install-exec-local-utilities: 81 $(mkinstalldirs) $(DESTDIR)$(bindir) 82 cd $(DESTDIR)$(bindir) ; \ 83 magick=`echo "magick" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ 84 for name in $(MAGICK_UTILITIES) ; \ 85 do \ 86 target=`echo "$$name" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ 87 rm -f $$target ; \ 88 $(LN_S) $$magick $$target ; \ 89 done 90 91UTILITIES_UNINSTALL_LOCAL_TARGETS=uninstall-local-utilities 92uninstall-local-utilities: 93 cd $(DESTDIR)$(bindir) ; \ 94 for name in $(MAGICK_UTILITIES) ; \ 95 do \ 96 target=`echo "$$name" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ 97 rm -f $$target ; \ 98 done 99