cristy | 1454be7 | 2011-12-19 01:52:48 +0000 | [diff] [blame] | 1 | # Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 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 | # Copyright (C) 2003 - 2008 GraphicsMagick Group |
| 16 | # |
| 17 | # Top-Level Makefile for building ImageMagick. |
| 18 | # |
| 19 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) |
| 21 | |
| 22 | ACLOCAL_AMFLAGS = -I m4 |
| 23 | |
cristy | f5ee5be | 2009-11-06 02:22:56 +0000 | [diff] [blame] | 24 | MODULECOMMONFLAGS = -no-undefined -export-symbols-regex ".*" -shared -module -avoid-version |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25 | |
| 26 | # Options to pass when running configure in the distcheck target. |
| 27 | # |
| 28 | # We want to preserve user-provided option variables so the same |
| 29 | # compiler, headers, and libraries are used as for a normal build. |
| 30 | DISTCHECK_CONFIGURE_FLAGS=$(DISTCHECK_CONFIG_FLAGS) |
| 31 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 32 | DISTCLEANFILES = _configs.sed MagickCore/magick-config.h |
cristy | 5062079 | 2010-02-09 00:42:32 +0000 | [diff] [blame] | 33 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34 | ## Make sure these will be cleaned even when they're not built by default. |
| 35 | CLEANFILES = \ |
| 36 | $(LTDL_CLEANFILES) \ |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 37 | $(MAGICKWAND_CLEANFILES) \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38 | $(MAGICKPP_CLEANFILES) \ |
| 39 | $(UTILITIES_CLEANFILES) \ |
cristy | 52cf7f1 | 2010-02-07 18:07:56 +0000 | [diff] [blame] | 40 | $(TESTS_CLEANFILES) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 41 | |
| 42 | bin_PROGRAMS = \ |
| 43 | $(UTILITIES_PGMS) |
| 44 | |
| 45 | # Binary scripts |
| 46 | bin_SCRIPTS = \ |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 47 | $(MAGICKCORE_BIN_SCRPTS) \ |
| 48 | $(MAGICKWAND_BIN_SCRPTS) \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 49 | $(MAGICKPP_SCRPTS) |
| 50 | |
| 51 | include_HEADERS = \ |
| 52 | $(LTDL_INSTALLHEADERS) |
| 53 | |
| 54 | # Headers which are not installed but which are distributed |
| 55 | noinst_HEADERS = \ |
| 56 | $(LIBLTDL_NOINST_HDRS) \ |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 57 | $(MAGICKCORE_NOINST_HDRS) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 58 | |
| 59 | if WIN32_NATIVE_BUILD |
| 60 | SRCDIR='$(shell @WinPathScript@ $(srcdir)/)' |
| 61 | else |
| 62 | SRCDIR="$(srcdir)/" |
| 63 | endif |
| 64 | |
cristy | bc55645 | 2012-08-17 19:44:03 +0000 | [diff] [blame] | 65 | # Tests with .tap extensions use the TAP protocol and TAP driver |
cristy | 9e524dc | 2012-08-21 00:07:27 +0000 | [diff] [blame] | 66 | LOG_COMPILER = $(SHELL) |
| 67 | |
| 68 | SH_LOG_COMPILER = $(LOG_COMPILER) |
| 69 | TAP_LOG_COMPILER = $(LOG_COMPILER) |
| 70 | |
| 71 | # Test extensions |
| 72 | TEST_EXTENSIONS = .sh .tap |
| 73 | |
cristy | bc55645 | 2012-08-17 19:44:03 +0000 | [diff] [blame] | 74 | TAP_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \ |
| 75 | $(top_srcdir)/config/tap-driver.sh |
| 76 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 77 | # Environment parameters to be used during tests |
| 78 | TESTS_ENVIRONMENT = \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 79 | MAKE="$(MAKE)" \ |
| 80 | MAKEFLAGS="$(MAKEFLAGS)" \ |
cristy | 0cf6da5 | 2012-08-25 00:35:24 +0000 | [diff] [blame^] | 81 | MEMCHECK="$(MEMCHECK)" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 82 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 83 | # Tests to run |
| 84 | TESTS = \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 85 | $(TESTS_TESTS) \ |
| 86 | $(MAGICKPP_TESTS) \ |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 87 | $(MAGICKWAND_TESTS) \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 88 | $(UTILITIES_TESTS) |
| 89 | |
| 90 | # Tests which are expected to fail |
| 91 | XFAIL_TESTS = \ |
| 92 | $(TESTS_XFAIL_TESTS) \ |
| 93 | $(UTILITIES_XFAIL_TESTS) |
| 94 | |
| 95 | TOP_EXTRA_DIST = \ |
| 96 | AUTHORS.txt \ |
| 97 | ChangeLog \ |
| 98 | LICENSE \ |
| 99 | QuickStart.txt \ |
| 100 | NOTICE \ |
| 101 | Install-mac.txt \ |
| 102 | Install-unix.txt \ |
| 103 | Install-vms.txt \ |
| 104 | Install-windows.txt \ |
| 105 | magick.sh.in \ |
| 106 | Magickshr.opt \ |
| 107 | Make.com \ |
| 108 | NEWS.txt \ |
| 109 | Platforms.txt \ |
| 110 | README.txt \ |
| 111 | index.html \ |
| 112 | version.sh \ |
| 113 | winpath.sh |
| 114 | |
| 115 | # Additional files to distribute |
| 116 | EXTRA_DIST = \ |
| 117 | $(TOP_EXTRA_DIST) \ |
| 118 | $(CONFIG_EXTRA_DIST) \ |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 119 | $(MAGICKCORE_EXTRA_DIST) \ |
| 120 | $(MAGICKWAND_EXTRA_DIST) \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 121 | $(MAGICKPP_EXTRA_DIST) \ |
| 122 | $(UTILITIES_EXTRA_DIST) \ |
| 123 | $(TESTS_EXTRA_DIST) |
| 124 | |
| 125 | lib_LTLIBRARIES = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) $(MAGICKPP_LIBS) |
| 126 | AM_LDFLAGS = |
| 127 | noinst_LTLIBRARIES = |
| 128 | EXTRA_LTLIBRARIES = |
| 129 | BUILT_SOURCES = |
| 130 | MOSTLYCLEANFILES = |
| 131 | |
| 132 | check_PROGRAMS = \ |
| 133 | $(TESTS_CHECK_PGRMS) \ |
| 134 | $(MAGICKPP_CHECK_PGRMS) \ |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 135 | $(MAGICKWAND_CHECK_PGRMS) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 136 | |
| 137 | include m4/Makefile.am |
| 138 | include config/Makefile.am |
| 139 | include ltdl/Makefile.inc |
| 140 | include coders/Makefile.am |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 141 | include MagickCore/Makefile.am |
| 142 | include MagickWand/Makefile.am |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 143 | include Magick++/Makefile.am |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 144 | include filters/Makefile.am |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 145 | include utilities/Makefile.am |
| 146 | include tests/Makefile.am |
| 147 | include PerlMagick/Makefile.am |
| 148 | |
| 149 | # Pkgconfig directory |
| 150 | pkgconfigdir = $(libdir)/pkgconfig |
| 151 | |
| 152 | # Files to install in Pkgconfig directory |
| 153 | pkgconfig_DATA = \ |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 154 | $(MAGICKCORE_PKGCONFIG) \ |
| 155 | $(MAGICKWAND_PKGCONFIG) \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 156 | $(MAGICKPP_PKGCONFIG) |
| 157 | |
| 158 | # Manual pages to install |
| 159 | man_MANS = \ |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 160 | $(MAGICKCORE_MANS) \ |
| 161 | $(MAGICKWAND_MANS) \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 162 | $(MAGICKPP_MANS) \ |
| 163 | $(UTILITIES_MANS) |
| 164 | |
| 165 | # Architecture independent data files installed in the package's data directory |
cristy | 986d3c2 | 2011-03-30 14:11:37 +0000 | [diff] [blame] | 166 | docdir = $(DOCUMENTATION_PATH) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 167 | doc_DATA = \ |
| 168 | LICENSE \ |
| 169 | ChangeLog \ |
| 170 | NEWS.txt |
| 171 | |
| 172 | if MAINTAINER_MODE |
cristy | e6922d4 | 2010-03-04 01:56:45 +0000 | [diff] [blame] | 173 | MAINTAINER_TARGETS = \ |
cristy | 999b647 | 2010-04-15 01:18:53 +0000 | [diff] [blame] | 174 | magick-version \ |
| 175 | ImageMagick.spec \ |
| 176 | $(PERLMAGICK_MAINTAINER_TARGETS) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 177 | endif |
| 178 | |
| 179 | all-local: $(MAGICKPP_LOCAL_TARGETS) $(PERLMAGICK_ALL_LOCAL_TARGETS) $(MAINTAINER_TARGETS) |
| 180 | |
cristy | 9ebfdfb | 2012-03-26 12:55:00 +0000 | [diff] [blame] | 181 | install-exec-local: $(PERLMAGICK_INSTALL_EXEC_LOCAL_TARGETS) \ |
| 182 | $(UTILITIES_INSTALL_EXEC_LOCAL_TARGETS) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 183 | |
cristy | 9ebfdfb | 2012-03-26 12:55:00 +0000 | [diff] [blame] | 184 | install-data-local: $(MAGICK_INSTALL_DATA_LOCAL_TARGETS) \ |
| 185 | $(PERLMAGICK_INSTALL_DATA_LOCAL_TARGETS) \ |
| 186 | $(HTML_INSTALL_DATA_TARGETS) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 187 | |
cristy | 9ebfdfb | 2012-03-26 12:55:00 +0000 | [diff] [blame] | 188 | uninstall-local: $(MAGICK_UNINSTALL_LOCAL_TARGETS) \ |
| 189 | $(PERLMAGICK_UNINSTALL_LOCAL_TARGETS) \ |
| 190 | $(HTML_UNINSTALL_DATA_TARGETS) \ |
| 191 | $(UTILITIES_UNINSTALL_LOCAL_TARGETS) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 192 | |
| 193 | clean-local: $(PERLMAGICK_CLEAN_LOCAL_TARGETS) |
| 194 | |
| 195 | distclean-local: $(PERLMAGICK_DISTCLEAN_LOCAL_TARGETS) |
| 196 | |
| 197 | maintainer-clean-local: $(PERLMAGICK_MAINTAINER_CLEAN_LOCAL_TARGETS) |
| 198 | |
| 199 | check-local: $(PERLMAGICK_CHECK_LOCAL_TARGETS) |
| 200 | |
cristy | 2d9c031 | 2010-04-17 23:58:07 +0000 | [diff] [blame] | 201 | # drd: valgrind's newer thread error detector |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 202 | drd: |
cristy | 9c7e2af | 2010-05-23 23:13:27 +0000 | [diff] [blame] | 203 | $(MAKE) MEMCHECK='valgrind --tool=drd --check-stack-var=yes --var-info=yes \ |
| 204 | --quiet $(VALGRIND_EXTRA_OPTS)' check |
| 205 | |
cristy | 2d9c031 | 2010-04-17 23:58:07 +0000 | [diff] [blame] | 206 | # helgrind: valgrind's older thread error detector |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 207 | helgrind: |
cristy | 9c7e2af | 2010-05-23 23:13:27 +0000 | [diff] [blame] | 208 | $(MAKE) MEMCHECK='valgrind --tool=helgrind --error-exitcode=2 --quiet \ |
| 209 | $(VALGRIND_EXTRA_OPTS)' check |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 210 | |
cristy | 2d9c031 | 2010-04-17 23:58:07 +0000 | [diff] [blame] | 211 | # memcheck: valgrind's memory access checker |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 212 | memcheck: |
cristy | 9c7e2af | 2010-05-23 23:13:27 +0000 | [diff] [blame] | 213 | $(MAKE) MEMCHECK='valgrind --tool=memcheck --leak-check=full --read-var-info=yes \ |
| 214 | --error-exitcode=2 --track-origins=yes --num-callers=12 \ |
| 215 | --quiet $(VALGRIND_EXTRA_OPTS)' check |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 216 | |
cristy | 2d9c031 | 2010-04-17 23:58:07 +0000 | [diff] [blame] | 217 | # ptrcheck: valgrind's experimental pointer checking tool. |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 218 | ptrcheck: |
cristy | 9c7e2af | 2010-05-23 23:13:27 +0000 | [diff] [blame] | 219 | $(MAKE) MEMCHECK='valgrind --tool=exp-ptrcheck --quiet $(VALGRIND_EXTRA_OPTS)' check |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 220 | |
| 221 | # Non-Automake subdirectories to distribute |
| 222 | DISTDIRS = images scenes scripts www PerlMagick |
| 223 | dist-hook: |
| 224 | ( \ |
| 225 | builddir=`pwd` ; \ |
| 226 | cd $(srcdir) && \ |
| 227 | ( \ |
| 228 | for dir in $(DISTDIRS) ; do \ |
| 229 | find $$dir -depth -print | egrep -v '(~$$)|(/CVS)|(/\.#)|(/\.deps)|(/\.svn)' \ |
| 230 | | cpio -pdum $$builddir/$(distdir) 2> /dev/null ; \ |
| 231 | done \ |
| 232 | ) \ |
| 233 | ) |
| 234 | |
| 235 | # |
| 236 | # Additional install rules |
| 237 | # |
| 238 | |
| 239 | # Install HTML files |
| 240 | pkgdocdir = $(DOCUMENTATION_PATH) |
cristy | 0e49624 | 2011-03-19 13:00:57 +0000 | [diff] [blame] | 241 | DOCDIRS = images images/patterns www www/api www/source www/api/MagickCore www/api/MagickWand www/Magick++ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 242 | HTML_INSTALL_DATA_TARGETS = install-data-html |
| 243 | install-data-html: |
| 244 | $(mkinstalldirs) $(DESTDIR)$(pkgdocdir) |
| 245 | $(INSTALL_DATA) $(srcdir)/index.html $(DESTDIR)$(pkgdocdir) |
| 246 | @for dir in $(DOCDIRS) ; do \ |
| 247 | $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \ |
| 248 | for file in $(srcdir)/$$dir/*.* ; do \ |
| 249 | echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$$dir" ; \ |
| 250 | $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$$dir ; \ |
| 251 | done ; \ |
| 252 | done |
| 253 | |
| 254 | # Uninstall HTML files |
| 255 | HTML_UNINSTALL_DATA_TARGETS = uninstall-data-html |
| 256 | uninstall-data-html: |
| 257 | rm -f $(DESTDIR)$(pkgdocdir)/index.html |
| 258 | for dir in $(DOCDIRS) ; do \ |
| 259 | rm -f -r $(DESTDIR)$(pkgdocdir)/$$dir ; \ |
| 260 | done |
| 261 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 262 | # Ensure that version.h at $(srcdir)/MagickCore/version.h is kept up to date. |
| 263 | magick-version: MagickCore/version.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 264 | @if test -f "$(srcdir)/VisualMagick/installer/inc/version.isx.in" ; then \ |
| 265 | ./config.status --file="$(srcdir)/../VisualMagick/installer/inc/version.isx" 2> /dev/null ; \ |
| 266 | fi |
| 267 | @if test -n "$(VPATH)" ; then \ |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 268 | cmp MagickCore/version.h $(srcdir)/MagickCore/version.h > /dev/null ; \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 269 | if test $$? -eq 1 ; then \ |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 270 | echo "Updating $(srcdir)/MagickCore/version.h ..."; \ |
| 271 | cp MagickCore/version.h $(srcdir)/MagickCore/version.h ; \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 272 | fi ; \ |
| 273 | fi ; \ |
| 274 | touch magick-version |
| 275 | |
| 276 | ${srcdir}/configure: ${srcdir}/version.sh |
| 277 | |
| 278 | # Automagically reconfigure libtool |
| 279 | LIBTOOL_DEPS = @LIBTOOL_DEPS@ |
| 280 | libtool: $(LIBTOOL_DEPS) |
| 281 | $(SHELL) ./config.status --recheck |
| 282 | |
| 283 | # Format C API documentation |
| 284 | html: |
| 285 | doxygen config/MagickCore.dox |
| 286 | doxygen config/MagickWand.dox |
| 287 | |
| 288 | # |
| 289 | # Build Windows source Zip and 7Zip balls |
| 290 | # |
| 291 | if ZIP_DELEGATE |
cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 292 | DIST_WINDOWS_SRC_ZIP=$(PACKAGE_NAME)-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM)-windows.zip |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 293 | else |
| 294 | DIST_WINDOWS_SRC_ZIP= |
| 295 | endif |
| 296 | if P7ZIP_DELEGATE |
cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 297 | DIST_WINDOWS_SRC_7ZIP=$(PACKAGE_NAME)-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM)-windows.7z |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 298 | else |
| 299 | DIST_WINDOWS_SRC_7ZIP= |
| 300 | endif |
| 301 | $(DIST_WINDOWS_SRC_ZIP) $(DIST_WINDOWS_SRC_7ZIP) windows-dist: |
cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 302 | if test -d $(PACKAGE_NAME)-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM) ; then \ |
| 303 | chmod -R u+w $(PACKAGE_NAME)-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM) ; \ |
| 304 | rm -rf $(PACKAGE_NAME)-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM) ; \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 305 | fi |
cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 306 | svn export https://subversion.imagemagick.org/subversion/ImageMagick-Windows/trunk $(PACKAGE_NAME)-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 307 | if ZIP_DELEGATE |
| 308 | rm -f $(DIST_WINDOWS_SRC_ZIP) |
cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 309 | $(ZIP) -r -9 -q $(DIST_WINDOWS_SRC_ZIP) $(PACKAGE_NAME)-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 310 | endif # ZIP_DELEGATE |
| 311 | if P7ZIP_DELEGATE |
| 312 | rm -f $(DIST_WINDOWS_SRC_7ZIP) |
cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 313 | $(P7ZIP) a -t7z -mx=9 $(DIST_WINDOWS_SRC_7ZIP) $(PACKAGE_NAME)-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 314 | chmod 644 $(DIST_WINDOWS_SRC_7ZIP) |
| 315 | endif # P7ZIP_DELEGATE |
cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 316 | rm -rf $(PACKAGE_NAME)-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 317 | |
| 318 | # |
| 319 | # RPM build support |
| 320 | # |
| 321 | if RPM_DELEGATE |
| 322 | |
cristy | 2d9c031 | 2010-04-17 23:58:07 +0000 | [diff] [blame] | 323 | DIST_ARCHIVE_SRPM=$(distdir)-1.src.rpm |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 324 | .PHONY: srpm |
anthony | 1e3d36d | 2012-02-23 12:29:17 +0000 | [diff] [blame] | 325 | $(DIST_ARCHIVE_SRPM) srpm: dist-bzip2 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 326 | rm -f $(DIST_ARCHIVE_SRPM) |
| 327 | $(RPM) --define="_sourcedir `pwd`" --define="_srcrpmdir `pwd`" --nodeps --bs ImageMagick.spec |
| 328 | @echo ============================================================== |
| 329 | @echo $(DIST_ARCHIVE_SRPM) is ready for distribution. |
| 330 | @echo ============================================================== |
| 331 | |
cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 332 | RPMDIR=rpmbuild |
| 333 | RPMARCH=$(MAGICK_TARGET_CPU) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 334 | |
| 335 | DIST_ARCHIVE_RPM= \ |
cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 336 | $(RPMDIR)/$(RPMARCH)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM)-$(PACKAGE_RELEASE).$(RPMARCH).rpm \ |
| 337 | $(RPMDIR)/$(RPMARCH)/$(PACKAGE_NAME)-c++-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM)-$(PACKAGE_RELEASE).$(RPMARCH).rpm \ |
| 338 | $(RPMDIR)/$(RPMARCH)/$(PACKAGE_NAME)-c++-devel-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM)-$(PACKAGE_RELEASE).$(RPMARCH).rpm \ |
| 339 | $(RPMDIR)/$(RPMARCH)/$(PACKAGE_NAME)-devel-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM)-$(PACKAGE_RELEASE).$(RPMARCH).rpm \ |
| 340 | $(RPMDIR)/$(RPMARCH)/$(PACKAGE_NAME)-perl-$(PACKAGE_VERSION)$(PACKAGE_VERSION_ADDENDUM)-$(PACKAGE_RELEASE).$(RPMARCH).rpm |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 341 | |
| 342 | .PHONY: rpm |
cristy | 2d9c031 | 2010-04-17 23:58:07 +0000 | [diff] [blame] | 343 | rpm: dist |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 344 | rm -rf $(RPMDIR) |
cristy | 78cd765 | 2010-04-17 22:50:03 +0000 | [diff] [blame] | 345 | $(MKDIR_P) $(RPMDIR) |
| 346 | $(MKDIR_P) $(RPMDIR)/BUILD |
| 347 | $(MKDIR_P) $(RPMDIR)/RPMS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 348 | $(RPM) --define="_sourcedir `pwd`" --define="_rpmdir `pwd`/$(RPMDIR)/RPMS" --define="_builddir `pwd`/$(RPMDIR)/BUILD" --nodeps -bb ImageMagick.spec |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 349 | @echo ============================================================== |
| 350 | @echo $(DIST_ARCHIVE_RPM) is ready for distribution. |
| 351 | @echo ============================================================== |
| 352 | |
| 353 | else |
| 354 | DIST_ARCHIVE_RPM= |
| 355 | endif # RPM_DELEGATE |
| 356 | |
| 357 | # |
| 358 | # Build a validated snapshot release and move to the snapshots directory. |
| 359 | # |
| 360 | snapshot: distcheck |
| 361 | $(MAKE) $(DIST_ARCHIVE_SRPM) |
| 362 | $(MAKE) $(DIST_WINDOWS_SRC_ZIP) |
| 363 | $(MAKE) $(DIST_WINDOWS_SRC_7ZIP) |
cristy | 72ab500 | 2011-07-07 18:33:45 +0000 | [diff] [blame] | 364 | mv $(DIST_ARCHIVES) $(DIST_WINDOWS_SRC_ZIP) $(DIST_WINDOWS_SRC_7ZIP) $(DIST_ARCHIVE_SRPM) /var/ftp/pub/ImageMagick/alpha/ |