1# Copyright 1999-2016 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://www.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 17UTILITIES_PGMS = \ 18 utilities/magick 19 20UTILITIES_XFAIL_TESTS = \ 21 $(UTILITIES_TTF_XFAIL_TESTS) \ 22 $(UTILITIES_XML_XFAIL_TESTS) 23 24utilities_magick_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) 25utilities_magick_LDFLAGS = $(LDFLAGS) 26utilities_magick_SOURCES = utilities/magick.c 27 28UTILITIES_MANS = \ 29 utilities/ImageMagick.1 \ 30 utilities/animate.1 \ 31 utilities/compare.1 \ 32 utilities/composite.1 \ 33 utilities/conjure.1 \ 34 utilities/convert.1 \ 35 utilities/display.1 \ 36 utilities/identify.1 \ 37 utilities/import.1 \ 38 utilities/magick.1 \ 39 utilities/magick-script.1 \ 40 utilities/mogrify.1 \ 41 utilities/montage.1 \ 42 utilities/stream.1 43 44UTILITIES_CONFIGURE = \ 45 utilities/ImageMagick.1.in \ 46 utilities/animate.1.in \ 47 utilities/compare.1.in \ 48 utilities/composite.1.in \ 49 utilities/conjure.1.in \ 50 utilities/convert.1.in \ 51 utilities/display.1.in \ 52 utilities/identify.1.in \ 53 utilities/import.1.in \ 54 utilities/magick.1.in \ 55 utilities/magick-script.1.in \ 56 utilities/mogrify.1.in \ 57 utilities/montage.1.in \ 58 utilities/stream.1.in 59 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 70UTILITIES_INSTALL_EXEC_LOCAL_TARGETS=install-exec-local-utilities 71install-exec-local-utilities: 72 $(mkdir_p) $(DESTDIR)$(bindir) 73 cd $(DESTDIR)$(bindir) ; \ 74 magick=`echo "magick" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ 75 for name in $(MAGICK_UTILITIES) ; \ 76 do \ 77 target=`echo "$$name" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ 78 rm -f $$target ; \ 79 $(LN_S) $$magick $$target ; \ 80 done 81 82UTILITIES_UNINSTALL_LOCAL_TARGETS=uninstall-local-utilities 83uninstall-local-utilities: 84 cd $(DESTDIR)$(bindir) ; \ 85 for name in $(MAGICK_UTILITIES) ; \ 86 do \ 87 target=`echo "$$name" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ 88 rm -f $$target ; \ 89 done 90