1# 2# Top-Level Makefile for building LittleCMS 2 3# 4 5# Don't require all the GNU mandated files 6AUTOMAKE_OPTIONS = 1.7.2 dist-zip foreign 7 8ACLOCAL_AMFLAGS = -I m4 9 10PACKAGE_NAME = @PACKAGE_NAME@ 11PACKAGE_VERSION = @PACKAGE_VERSION@ 12 13# Directories containing Makefiles to 'make' 14SUBDIRS = src include utils/tificc utils/transicc utils/linkicc utils/jpgicc utils/psicc testbed 15 16# Additional files to distribute 17EXTRA_DIST = AUTHORS COPYING ChangeLog doc Projects include bin Lib INSTALL README.1ST autogen.sh lcms2.pc.in 18 19pkgconfigdir = $(libdir)/pkgconfig 20pkgconfig_DATA = lcms2.pc 21 22# Get names of plug-ins in the source package 23PLUGIN_DIRECTORIES = $(sort $(dir $(wildcard plugins/*/))) 24 25# Make sure get rid of VC stuff... 26clean-local: 27 find Projects -name "*.user" | xargs rm -rf 28 find Projects -name "Release" | xargs rm -rf 29 find Projects -name "Debug" | xargs rm -rf 30 find Projects -name "*.aps" | xargs rm -rf 31 find Projects -name "*.suo" | xargs rm -rf 32 find Projects -name "*.log" | xargs rm -rf 33 find Projects -name "*.sdf" | xargs rm -rf 34 find Projects -name "*.opensdf" | xargs rm -rf 35 find Projects -name "*.log" | xargs rm -rf 36 find Projects -name "ipch" | xargs rm -rf 37 @for d in $(PLUGIN_DIRECTORIES); do (cd $$d; $(MAKE) clean ); done 38 39# Handle plug-ins 40all-local: 41 @for d in $(PLUGIN_DIRECTORIES); do (cd $$d; $(MAKE) $(AM_MAKEFLAGS) all ); done 42 43check-local: 44 @for d in $(PLUGIN_DIRECTORIES); do (cd $$d; $(MAKE) $(AM_MAKEFLAGS) check ); done 45 46install-exec-local: 47 @for d in $(PLUGIN_DIRECTORIES); do (cd $$d; $(MAKE) $(AM_MAKEFLAGS) install-exec ); done 48 49uninstall-local: 50 @for d in $(PLUGIN_DIRECTORIES); do (cd $$d; $(MAKE) $(AM_MAKEFLAGS) uninstall ); done 51 52 53 54 55 56