Revert manifest to default one
[platform/upstream/cups-filters.git] / Makefile
1 #
2 # "$Id$"
3 #
4 #   Top-level Makefile for OpenPrinting CUPS Filters.
5 #
6 #   Copyright 2007-2011 by Apple Inc.
7 #   Copyright 1997-2007 by Easy Software Products, all rights reserved.
8 #
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/".
14 #
15
16 include Makedefs
17
18
19 #
20 # Directories to make...
21 #
22
23 DIRS    =       cupsfilters backend filter pdftoopvp pdftopdf $(PHPDIR)
24
25
26 #
27 # Make all targets...
28 #
29
30 all:
31         echo Using ALL_CFLAGS="$(ALL_CFLAGS)"
32         echo Using CC="$(CC)"
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;\
39         done
40
41 Makedefs:
42         $(CURDIR)/configure
43
44
45 #
46 # Remove object and target files...
47 #
48
49 clean:
50         for dir in $(DIRS); do\
51                 echo Cleaning in $$dir... ;\
52                 (cd $$dir; $(MAKE) $(MFLAGS) clean) || exit 1;\
53         done
54
55
56 #
57 # Remove all non-distribution files...
58 #
59
60 distclean:      clean
61         $(RM) Makedefs filter/pstopdf filter/texttops filter/imagetops
62         $(RM) config.h config.log config.status
63         $(RM) -f */*.bak
64         -$(RM) -rf autom4te*.cache clang cupsfilters/test
65
66
67 #
68 # Remove all files not of the source repository
69 #
70
71 maintainer-clean:       distclean
72         $(RM) -f configure aclocal.m4
73
74
75 #
76 # Make dependencies
77 #
78
79 depend:
80         for dir in $(DIRS); do\
81                 echo Making dependencies in $$dir... ;\
82                 (cd $$dir; $(MAKE) $(MFLAGS) depend) || exit 1;\
83         done
84
85
86 #
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)
89 #
90
91 .PHONY: clang clang-changes
92 clang:
93         $(RM) -r clang
94         scan-build -V -k -o `pwd`/clang $(MAKE) $(MFLAGS) clean all
95 clang-changes:
96         scan-build -V -k -o `pwd`/clang $(MAKE) $(MFLAGS) all
97
98
99 #
100 # Generate a ctags file...
101 #
102
103 ctags:
104         ctags -R .
105
106
107 #
108 # Install everything...
109 #
110
111 install:        install-data install-headers install-libs install-exec
112
113
114 #
115 # Install data files...
116 #
117
118 install-data:
119         for dir in $(DIRS); do\
120                 echo Installing data files in $$dir... ;\
121                 (cd $$dir; $(MAKE) $(MFLAGS) install-data) || exit 1;\
122         done
123
124
125 #
126 # Install header files...
127 #
128
129 install-headers:
130         for dir in $(DIRS); do\
131                 echo Installing header files in $$dir... ;\
132                 (cd $$dir; $(MAKE) $(MFLAGS) install-headers) || exit 1;\
133         done
134
135
136 #
137 # Install programs...
138 #
139
140 install-exec:   all
141         for dir in $(DIRS); do\
142                 echo Installing programs in $$dir... ;\
143                 (cd $$dir; $(MAKE) $(MFLAGS) install-exec) || exit 1;\
144         done
145
146
147 #
148 # Install libraries...
149 #
150
151 install-libs:   all
152         for dir in $(DIRS); do\
153                 echo Installing libraries in $$dir... ;\
154                 (cd $$dir; $(MAKE) $(MFLAGS) install-libs) || exit 1;\
155         done
156
157
158 #
159 # Uninstall object and target files...
160 #
161
162 uninstall:
163         for dir in $(DIRS); do\
164                 echo Uninstalling in $$dir... ;\
165                 (cd $$dir; $(MAKE) $(MFLAGS) uninstall) || exit 1;\
166         done
167
168
169 #
170 # Don't run top-level build targets in parallel...
171 #
172
173 .NOTPARALLEL:
174
175
176 #
177 # End of "$Id$".
178 #