]>
Commit | Line | Data |
---|---|---|
6be16022 | 1 | # |
b2e10895 | 2 | # "$Id$" |
6be16022 | 3 | # |
4 | # Top-level Makefile for the Common UNIX Printing System (CUPS). | |
5 | # | |
2d20037d | 6 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. |
6be16022 | 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 | |
c9e6a22c | 17 | # 44141 Airport View Drive, Suite 204 |
9639c4de | 18 | # Hollywood, Maryland 20636-3142 USA |
6be16022 | 19 | # |
9639c4de | 20 | # Voice: (301) 373-9600 |
6be16022 | 21 | # EMail: cups-info@cups.org |
22 | # WWW: http://www.cups.org | |
23 | # | |
24 | ||
3e7eb9bb | 25 | include Makedefs |
26 | ||
6be16022 | 27 | # |
3e7eb9bb | 28 | # Directories to make... |
6be16022 | 29 | # |
30 | ||
d5cfdccb | 31 | DIRS = cups backend berkeley cgi-bin filter locale man monitor \ |
32 | notifier pdftops scheduler systemv test | |
33 | ||
6be16022 | 34 | |
35 | # | |
36 | # Make all targets... | |
37 | # | |
38 | ||
39 | all: | |
d3d79f52 | 40 | chmod +x cups-config |
6be16022 | 41 | for dir in $(DIRS); do\ |
8391453b | 42 | echo Making all in $$dir... ;\ |
7c06d0fc | 43 | (cd $$dir ; $(MAKE) $(MFLAGS)) || exit 1;\ |
6be16022 | 44 | done |
45 | ||
d5cfdccb | 46 | |
6be16022 | 47 | # |
48 | # Remove object and target files... | |
49 | # | |
50 | ||
51 | clean: | |
52 | for dir in $(DIRS); do\ | |
8391453b | 53 | echo Cleaning in $$dir... ;\ |
7c06d0fc | 54 | (cd $$dir; $(MAKE) $(MFLAGS) clean) || exit 1;\ |
6be16022 | 55 | done |
3e7eb9bb | 56 | |
d5cfdccb | 57 | |
f915b00f | 58 | # |
59 | # Make dependencies | |
60 | # | |
61 | ||
62 | depend: | |
63 | for dir in $(DIRS); do\ | |
64 | echo Making dependencies in $$dir... ;\ | |
65 | (cd $$dir; $(MAKE) $(MFLAGS) depend) || exit 1;\ | |
66 | done | |
67 | ||
68 | ||
6be16022 | 69 | # |
70 | # Install object and target files... | |
71 | # | |
72 | ||
f915b00f | 73 | install: installhdrs |
6be16022 | 74 | for dir in $(DIRS); do\ |
8391453b | 75 | echo Installing in $$dir... ;\ |
7c06d0fc | 76 | (cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\ |
6be16022 | 77 | done |
8391453b | 78 | echo Installing in conf... |
7c06d0fc | 79 | (cd conf; $(MAKE) $(MFLAGS) install) |
8391453b | 80 | echo Installing in data... |
7c06d0fc | 81 | (cd data; $(MAKE) $(MFLAGS) install) |
e2e7c96e | 82 | echo Installing in doc... |
83 | (cd doc; $(MAKE) $(MFLAGS) install) | |
b2e10895 | 84 | echo Installing in fonts... |
85 | (cd fonts; $(MAKE) $(MFLAGS) install) | |
1f7c38f0 | 86 | echo Installing in ppd... |
9ee03c7e | 87 | (cd ppd; $(MAKE) $(MFLAGS) install) |
f63a2256 | 88 | echo Installing in templates... |
7c06d0fc | 89 | (cd templates; $(MAKE) $(MFLAGS) install) |
753453e4 | 90 | echo Installing cups-config script... |
91 | $(INSTALL_DIR) $(BINDIR) | |
92 | $(INSTALL_SCRIPT) cups-config $(BINDIR)/cups-config | |
4ed570e1 | 93 | echo Installing startup script... |
91b3b672 | 94 | if test "x$(INITDIR)" != "x"; then \ |
753453e4 | 95 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/init.d; \ |
2d20037d | 96 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/init.d/cups; \ |
753453e4 | 97 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc0.d; \ |
2d20037d | 98 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc0.d/K00cups; \ |
753453e4 | 99 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc2.d; \ |
2d20037d | 100 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc2.d/S99cups; \ |
753453e4 | 101 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc3.d; \ |
2d20037d | 102 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc3.d/S99cups; \ |
753453e4 | 103 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc5.d; \ |
2d20037d | 104 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc5.d/S99cups; \ |
4ed570e1 | 105 | fi |
f6fb02d3 | 106 | if test "x$(INITDIR)" = "x" -a "x$(INITDDIR)" != "x"; then \ |
753453e4 | 107 | $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR); \ |
ba31b514 | 108 | if test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \ |
938dca1f | 109 | $(INSTALL_SCRIPT) init/PrintingServices $(BUILDROOT)$(INITDDIR)/PrintingServices; \ |
09a48dfa | 110 | $(INSTALL_DATA) init/StartupParameters.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \ |
753453e4 | 111 | $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \ |
09a48dfa | 112 | $(INSTALL_DATA) init/Localizable.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \ |
5db6985b | 113 | elif test "$(INITDDIR)" = "/System/Library/LaunchDaemons"; then \ |
09a48dfa | 114 | $(INSTALL_DATA) init/org.cups.cupsd.plist $(BUILDROOT)$(DEFAULT_LAUNCHD_CONF); \ |
753453e4 | 115 | else \ |
2d20037d | 116 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDDIR)/cups; \ |
753453e4 | 117 | fi \ |
f6fb02d3 | 118 | fi |
6be16022 | 119 | |
3f5dfefd | 120 | |
f915b00f | 121 | # |
122 | # Install source and header files... | |
123 | # | |
124 | ||
125 | installsrc: | |
126 | gnutar --dereference --exclude=CVS -cf - . | gnutar -C $(SRCROOT) -xf - | |
127 | ||
128 | installhdrs: | |
129 | (cd cups ; $(MAKE) $(MFLAGS) installhdrs) || exit 1;\ | |
130 | (cd filter ; $(MAKE) $(MFLAGS) installhdrs) || exit 1; | |
131 | ||
43fe1146 | 132 | |
133 | # | |
134 | # Run the test suite... | |
135 | # | |
136 | ||
e3bf38b3 | 137 | check test: all |
43fe1146 | 138 | echo Running CUPS test suite... |
74464516 | 139 | cd test; ./run-stp-tests.sh |
43fe1146 | 140 | |
141 | ||
6be16022 | 142 | # |
7c06d0fc | 143 | # Make software distributions using EPM (http://www.easysw.com/epm)... |
bdfee4a2 | 144 | # |
145 | ||
753453e4 | 146 | EPMFLAGS = -v |
147 | ||
148 | aix: | |
0efda061 | 149 | epm $(EPMFLAGS) -f aix cups packaging/cups.list |
753453e4 | 150 | |
151 | bsd: | |
0efda061 | 152 | epm $(EPMFLAGS) -f bsd cups packaging/cups.list |
7c06d0fc | 153 | |
bdfee4a2 | 154 | epm: |
0efda061 | 155 | epm $(EPMFLAGS) cups packaging/cups.list |
bdfee4a2 | 156 | |
157 | rpm: | |
0efda061 | 158 | epm $(EPMFLAGS) -f rpm cups packaging/cups.list |
bdfee4a2 | 159 | |
160 | deb: | |
0efda061 | 161 | epm $(EPMFLAGS) -f deb cups packaging/cups.list |
bdfee4a2 | 162 | |
f85d4108 | 163 | depot: |
0efda061 | 164 | epm $(EPMFLAGS) -f depot cups packaging/cups.list |
f85d4108 | 165 | |
166 | pkg: | |
0efda061 | 167 | epm $(EPMFLAGS) -f pkg cups packaging/cups.list |
f85d4108 | 168 | |
bdfee4a2 | 169 | tardist: |
0efda061 | 170 | epm $(EPMFLAGS) -f tardist cups packaging/cups.list |
bdfee4a2 | 171 | |
d5cfdccb | 172 | |
bdfee4a2 | 173 | # |
b2e10895 | 174 | # End of "$Id$". |
6be16022 | 175 | # |