#
# "$Id$"
#
-# Top-level Makefile for CUPS.
+# Top-level Makefile for CUPS.
#
-# Copyright 2007-2012 by Apple Inc.
-# Copyright 1997-2007 by Easy Software Products, all rights reserved.
+# Copyright 2007-2013 by Apple Inc.
+# Copyright 1997-2007 by Easy Software Products, all rights reserved.
#
-# These coded instructions, statements, and computer programs are the
-# property of Apple Inc. and are protected by Federal copyright
-# law. Distribution and use rights are outlined in the file "LICENSE.txt"
-# which should have been included with this file. If this file is
-# file is missing or damaged, see the license at "http://www.cups.org/".
+# These coded instructions, statements, and computer programs are the
+# property of Apple Inc. and are protected by Federal copyright
+# law. Distribution and use rights are outlined in the file "LICENSE.txt"
+# which should have been included with this file. If this file is
+# file is missing or damaged, see the license at "http://www.cups.org/".
#
include Makedefs
#
-# Run the clang.llvm.org static code analysis tool on the C sources.
-# (at least checker-231 is required for scan-build to work this way)
+# Run the Clang static code analysis tool on the sources, available here:
+#
+# http://clang-analyzer.llvm.org
+#
+# At least checker-231 is required.
#
.PHONY: clang clang-changes
scan-build -V -k -o `pwd`/clang $(MAKE) $(MFLAGS) all
+#
+# Run the STACK tool on the sources, available here:
+#
+# http://css.csail.mit.edu/stack/
+#
+# Do the following to pass options to configure:
+#
+# make CONFIGFLAGS="--foo --bar" stack
+#
+
+.PHONY: stack
+stack:
+ stack-build ./configure $(CONFIGFLAGS)
+ stack-build $(MAKE) $(MFLAGS) clean all
+ poptck
+ $(MAKE) $(MFLAGS) distclean
+ $(RM) */*.ll
+ $(RM) */*.ll.out
+
+
#
# Generate a ctags file...
#
#
-# Create HTML documentation...
+# Create HTML documentation using Mini-XML's mxmldoc (http://www.msweet.org/)...
#
apihelp:
#
-# Create an Xcode docset...
+# Create an Xcode docset using Mini-XML's mxmldoc (http://www.msweet.org/)...
#
docset: apihelp
#
-# Make software distributions using EPM (http://www.epmhome.org/)...
+# Make software distributions using EPM (http://www.msweet.org/)...
#
EPMFLAGS = -v --output-dir dist $(EPMARCH)
-aix bsd deb depot inst pkg setld slackware swinstall tardist:
+bsd deb pkg slackware tardist:
epm $(EPMFLAGS) -f $@ cups packaging/cups.list
epm: