]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | # |
09ec0018 | 2 | # "$Id: Makefile 5003 2006-01-27 02:33:36Z mike $" |
ef416fc2 | 3 | # |
4 | # Top-level Makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
fa73b229 | 6 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 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 | ||
09ec0018 | 31 | DIRS = cups backend berkeley cgi-bin filter locale man pdftops \ |
ef416fc2 | 32 | notifier scheduler systemv |
33 | ||
34 | # | |
35 | # Make all targets... | |
36 | # | |
37 | ||
38 | all: | |
39 | chmod +x cups-config | |
40 | for dir in $(DIRS); do\ | |
41 | echo Making all in $$dir... ;\ | |
42 | (cd $$dir ; $(MAKE) $(MFLAGS)) || exit 1;\ | |
43 | done | |
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 | # Make dependencies | |
57 | # | |
58 | ||
59 | depend: | |
60 | for dir in $(DIRS); do\ | |
61 | echo Making dependencies in $$dir... ;\ | |
62 | (cd $$dir; $(MAKE) $(MFLAGS) depend) || exit 1;\ | |
63 | done | |
64 | ||
65 | ||
66 | # | |
67 | # Install object and target files... | |
68 | # | |
69 | ||
70 | install: installhdrs | |
71 | for dir in $(DIRS); do\ | |
72 | echo Installing in $$dir... ;\ | |
73 | (cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\ | |
74 | done | |
75 | echo Installing in conf... | |
76 | (cd conf; $(MAKE) $(MFLAGS) install) | |
77 | echo Installing in data... | |
78 | (cd data; $(MAKE) $(MFLAGS) install) | |
79 | echo Installing in doc... | |
80 | (cd doc; $(MAKE) $(MFLAGS) install) | |
81 | echo Installing in fonts... | |
82 | (cd fonts; $(MAKE) $(MFLAGS) install) | |
ef416fc2 | 83 | echo Installing in ppd... |
84 | (cd ppd; $(MAKE) $(MFLAGS) install) | |
85 | echo Installing in templates... | |
86 | (cd templates; $(MAKE) $(MFLAGS) install) | |
87 | echo Installing cups-config script... | |
88 | $(INSTALL_DIR) $(BINDIR) | |
89 | $(INSTALL_SCRIPT) cups-config $(BINDIR)/cups-config | |
90 | echo Installing startup script... | |
91 | if test "x$(INITDIR)" != "x"; then \ | |
92 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/init.d; \ | |
fa73b229 | 93 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/init.d/cups; \ |
ef416fc2 | 94 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc0.d; \ |
fa73b229 | 95 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc0.d/K00cups; \ |
ef416fc2 | 96 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc2.d; \ |
fa73b229 | 97 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc2.d/S99cups; \ |
ef416fc2 | 98 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc3.d; \ |
fa73b229 | 99 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc3.d/S99cups; \ |
ef416fc2 | 100 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc5.d; \ |
fa73b229 | 101 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc5.d/S99cups; \ |
ef416fc2 | 102 | fi |
103 | if test "x$(INITDIR)" = "x" -a "x$(INITDDIR)" != "x"; then \ | |
104 | $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR); \ | |
105 | if test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \ | |
fa73b229 | 106 | $(INSTALL_SCRIPT) init/cups.osx $(BUILDROOT)$(INITDDIR)/PrintingServices; \ |
107 | $(INSTALL_DATA) init/cups.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \ | |
ef416fc2 | 108 | $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \ |
fa73b229 | 109 | $(INSTALL_DATA) init/cups.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \ |
ef416fc2 | 110 | else \ |
fa73b229 | 111 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDDIR)/cups; \ |
ef416fc2 | 112 | fi \ |
113 | fi | |
114 | ||
115 | ||
116 | # | |
117 | # Install source and header files... | |
118 | # | |
119 | ||
120 | installsrc: | |
121 | gnutar --dereference --exclude=CVS -cf - . | gnutar -C $(SRCROOT) -xf - | |
122 | ||
123 | installhdrs: | |
124 | (cd cups ; $(MAKE) $(MFLAGS) installhdrs) || exit 1;\ | |
125 | (cd filter ; $(MAKE) $(MFLAGS) installhdrs) || exit 1; | |
126 | ||
127 | ||
128 | # | |
129 | # Run the test suite... | |
130 | # | |
131 | ||
132 | check test: all | |
133 | echo Running CUPS test suite... | |
134 | cd test; ./run-stp-tests.sh | |
135 | ||
136 | ||
137 | # | |
138 | # Make software distributions using EPM (http://www.easysw.com/epm)... | |
139 | # | |
140 | ||
141 | EPMFLAGS = -v | |
142 | ||
143 | aix: | |
144 | epm $(EPMFLAGS) -f aix cups packaging/cups.list | |
145 | ||
146 | bsd: | |
147 | epm $(EPMFLAGS) -f bsd cups packaging/cups.list | |
148 | ||
149 | epm: | |
150 | epm $(EPMFLAGS) cups packaging/cups.list | |
151 | ||
152 | rpm: | |
153 | epm $(EPMFLAGS) -f rpm cups packaging/cups.list | |
154 | ||
155 | deb: | |
156 | epm $(EPMFLAGS) -f deb cups packaging/cups.list | |
157 | ||
158 | depot: | |
159 | epm $(EPMFLAGS) -f depot cups packaging/cups.list | |
160 | ||
161 | pkg: | |
162 | epm $(EPMFLAGS) -f pkg cups packaging/cups.list | |
163 | ||
164 | tardist: | |
165 | epm $(EPMFLAGS) -f tardist cups packaging/cups.list | |
166 | ||
167 | # | |
09ec0018 | 168 | # End of "$Id: Makefile 5003 2006-01-27 02:33:36Z mike $". |
ef416fc2 | 169 | # |