4
# Top-level Makefile for OpenPrinting CUPS Filters.
6
# Copyright 2007-2011 by Apple Inc.
7
# Copyright 1997-2007 by Easy Software Products, all rights reserved.
9
# These coded instructions, statements, and computer programs are the
10
# property of Apple Inc. and are protected by Federal copyright
11
# law. Distribution and use rights are outlined in the file "LICENSE.txt"
12
# which should have been included with this file. If this file is
13
# file is missing or damaged, see the license at "http://www.cups.org/".
20
# Directories to make...
23
DIRS = cupsfilters backend filter pdftoopvp pdftopdf $(PHPDIR)
31
echo Using ALL_CFLAGS="$(ALL_CFLAGS)"
33
echo Using DSOFLAGS="$(DSOFLAGS)"
34
echo Using LDFLAGS="$(LDFLAGS)"
35
echo Using LIBS="$(LIBS)"
36
for dir in $(DIRS); do\
37
echo Making all in $$dir... ;\
38
(cd $$dir ; $(MAKE) $(MFLAGS) all) || exit 1;\
46
# Remove object and target files...
50
for dir in $(DIRS); do\
51
echo Cleaning in $$dir... ;\
52
(cd $$dir; $(MAKE) $(MFLAGS) clean) || exit 1;\
57
# Remove all non-distribution files...
61
$(RM) Makedefs filter/pstopdf filter/texttops filter/imagetops
62
$(RM) config.h config.log config.status
64
-$(RM) -rf autom4te*.cache clang cupsfilters/test
68
# Remove all files not of the source repository
71
maintainer-clean: distclean
72
$(RM) -f configure aclocal.m4
80
for dir in $(DIRS); do\
81
echo Making dependencies in $$dir... ;\
82
(cd $$dir; $(MAKE) $(MFLAGS) depend) || exit 1;\
87
# Run the clang.llvm.org static code analysis tool on the C sources.
88
# (at least checker-231 is required for scan-build to work this way)
91
.PHONY: clang clang-changes
94
scan-build -V -k -o `pwd`/clang $(MAKE) $(MFLAGS) clean all
96
scan-build -V -k -o `pwd`/clang $(MAKE) $(MFLAGS) all
100
# Generate a ctags file...
108
# Install everything...
111
install: install-data install-headers install-libs install-exec
115
# Install data files...
119
for dir in $(DIRS); do\
120
echo Installing data files in $$dir... ;\
121
(cd $$dir; $(MAKE) $(MFLAGS) install-data) || exit 1;\
126
# Install header files...
130
for dir in $(DIRS); do\
131
echo Installing header files in $$dir... ;\
132
(cd $$dir; $(MAKE) $(MFLAGS) install-headers) || exit 1;\
137
# Install programs...
141
for dir in $(DIRS); do\
142
echo Installing programs in $$dir... ;\
143
(cd $$dir; $(MAKE) $(MFLAGS) install-exec) || exit 1;\
148
# Install libraries...
152
for dir in $(DIRS); do\
153
echo Installing libraries in $$dir... ;\
154
(cd $$dir; $(MAKE) $(MFLAGS) install-libs) || exit 1;\
159
# Uninstall object and target files...
163
for dir in $(DIRS); do\
164
echo Uninstalling in $$dir... ;\
165
(cd $$dir; $(MAKE) $(MFLAGS) uninstall) || exit 1;\
170
# Don't run top-level build targets in parallel...