]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # "$Id: Makefile 5185 2006-02-26 15:27:14Z mike $" | |
3 | # | |
4 | # Top-level Makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
6 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. | |
7 | # | |
8 | # These coded instructions, statements, and computer programs are the | |
9 | # property of Easy Software Products and are protected by Federal | |
10 | # copyright law. Distribution and use rights are outlined in the file | |
11 | # "LICENSE.txt" which should have been included with this file. If this | |
12 | # file is missing or damaged please contact Easy Software Products | |
13 | # at: | |
14 | # | |
15 | # Attn: CUPS Licensing Information | |
16 | # Easy Software Products | |
17 | # 44141 Airport View Drive, Suite 204 | |
18 | # Hollywood, Maryland 20636-3142 USA | |
19 | # | |
20 | # Voice: (301) 373-9600 | |
21 | # EMail: cups-info@cups.org | |
22 | # WWW: http://www.cups.org | |
23 | # | |
24 | ||
25 | include Makedefs | |
26 | ||
27 | # | |
28 | # Directories to make... | |
29 | # | |
30 | ||
31 | DIRS = cups backend berkeley cgi-bin filter locale man monitor \ | |
32 | notifier pdftops scheduler systemv test \ | |
33 | $(PHPDIR) | |
34 | ||
35 | ||
36 | # | |
37 | # Make all targets... | |
38 | # | |
39 | ||
40 | all: | |
41 | chmod +x cups-config | |
42 | for dir in $(DIRS); do\ | |
43 | echo Making all in $$dir... ;\ | |
44 | (cd $$dir ; $(MAKE) $(MFLAGS)) || exit 1;\ | |
45 | done | |
46 | ||
47 | ||
48 | # | |
49 | # Remove object and target files... | |
50 | # | |
51 | ||
52 | clean: | |
53 | for dir in $(DIRS); do\ | |
54 | echo Cleaning in $$dir... ;\ | |
55 | (cd $$dir; $(MAKE) $(MFLAGS) clean) || exit 1;\ | |
56 | done | |
57 | ||
58 | ||
59 | # | |
60 | # Make dependencies | |
61 | # | |
62 | ||
63 | depend: | |
64 | for dir in $(DIRS); do\ | |
65 | echo Making dependencies in $$dir... ;\ | |
66 | (cd $$dir; $(MAKE) $(MFLAGS) depend) || exit 1;\ | |
67 | done | |
68 | ||
69 | ||
70 | # | |
71 | # Install object and target files... | |
72 | # | |
73 | ||
74 | install: installhdrs | |
75 | for dir in $(DIRS); do\ | |
76 | echo Installing in $$dir... ;\ | |
77 | (cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\ | |
78 | done | |
79 | echo Installing in conf... | |
80 | (cd conf; $(MAKE) $(MFLAGS) install) | |
81 | echo Installing in data... | |
82 | (cd data; $(MAKE) $(MFLAGS) install) | |
83 | echo Installing in doc... | |
84 | (cd doc; $(MAKE) $(MFLAGS) install) | |
85 | echo Installing in fonts... | |
86 | (cd fonts; $(MAKE) $(MFLAGS) install) | |
87 | echo Installing in ppd... | |
88 | (cd ppd; $(MAKE) $(MFLAGS) install) | |
89 | echo Installing in templates... | |
90 | (cd templates; $(MAKE) $(MFLAGS) install) | |
91 | echo Installing cups-config script... | |
92 | $(INSTALL_DIR) $(BINDIR) | |
93 | $(INSTALL_SCRIPT) cups-config $(BINDIR)/cups-config | |
94 | echo Installing startup script... | |
95 | if test "x$(INITDIR)" != "x"; then \ | |
96 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/init.d; \ | |
97 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/init.d/cups; \ | |
98 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc0.d; \ | |
99 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc0.d/K00cups; \ | |
100 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc2.d; \ | |
101 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc2.d/S99cups; \ | |
102 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc3.d; \ | |
103 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc3.d/S99cups; \ | |
104 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc5.d; \ | |
105 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc5.d/S99cups; \ | |
106 | fi | |
107 | if test "x$(INITDIR)" = "x" -a "x$(INITDDIR)" != "x"; then \ | |
108 | $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR); \ | |
109 | if test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \ | |
110 | $(INSTALL_SCRIPT) init/PrintingServices $(BUILDROOT)$(INITDDIR)/PrintingServices; \ | |
111 | $(INSTALL_DATA) init/StartupParameters.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \ | |
112 | $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \ | |
113 | $(INSTALL_DATA) init/Localizable.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \ | |
114 | elif test "$(INITDDIR)" = "/System/Library/LaunchDaemons"; then \ | |
115 | $(INSTALL_DATA) init/org.cups.cupsd.plist $(BUILDROOT)$(DEFAULT_LAUNCHD_CONF); \ | |
116 | else \ | |
117 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDDIR)/cups; \ | |
118 | fi \ | |
119 | fi | |
120 | if test "x$(DBUSDIR)" != "x"; then \ | |
121 | echo Installing cups.conf in $(DBUSDIR)...;\ | |
122 | $(INSTALL_DIR) $(BUILDROOT)$(DBUSDIR); \ | |
123 | $(INSTALL_DATA) packaging/cups-dbus.conf $(BUILDROOT)$(DBUSDIR)/cups.conf; \ | |
124 | fi | |
125 | ||
126 | ||
127 | # | |
128 | # Install source and header files... | |
129 | # | |
130 | ||
131 | installsrc: | |
132 | gnutar --dereference --exclude=.svn -cf - . | gnutar -C $(SRCROOT) -xf - | |
133 | ||
134 | installhdrs: | |
135 | (cd cups ; $(MAKE) $(MFLAGS) installhdrs) || exit 1;\ | |
136 | (cd filter ; $(MAKE) $(MFLAGS) installhdrs) || exit 1; | |
137 | ||
138 | ||
139 | # | |
140 | # Run the test suite... | |
141 | # | |
142 | ||
143 | check test: all | |
144 | echo Running CUPS test suite... | |
145 | cd test; ./run-stp-tests.sh | |
146 | ||
147 | ||
148 | # | |
149 | # Make software distributions using EPM (http://www.easysw.com/epm)... | |
150 | # | |
151 | ||
152 | EPMFLAGS = -v | |
153 | ||
154 | aix: | |
155 | epm $(EPMFLAGS) -f aix cups packaging/cups.list | |
156 | ||
157 | bsd: | |
158 | epm $(EPMFLAGS) -f bsd cups packaging/cups.list | |
159 | ||
160 | epm: | |
161 | epm $(EPMFLAGS) cups packaging/cups.list | |
162 | ||
163 | rpm: | |
164 | epm $(EPMFLAGS) -f rpm cups packaging/cups.list | |
165 | ||
166 | deb: | |
167 | epm $(EPMFLAGS) -f deb cups packaging/cups.list | |
168 | ||
169 | depot: | |
170 | epm $(EPMFLAGS) -f depot cups packaging/cups.list | |
171 | ||
172 | pkg: | |
173 | epm $(EPMFLAGS) -f pkg cups packaging/cups.list | |
174 | ||
175 | tardist: | |
176 | epm $(EPMFLAGS) -f tardist cups packaging/cups.list | |
177 | ||
178 | ||
179 | # | |
180 | # End of "$Id: Makefile 5185 2006-02-26 15:27:14Z mike $". | |
181 | # |