]>
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 | ||
faf27595 | 31 | DIRS = cups backend berkeley cgi-bin filter man pdftops \ |
a998cc08 | 32 | notifier scheduler systemv |
6be16022 | 33 | |
34 | # | |
35 | # Make all targets... | |
36 | # | |
37 | ||
38 | all: | |
d3d79f52 | 39 | chmod +x cups-config |
6be16022 | 40 | for dir in $(DIRS); do\ |
8391453b | 41 | echo Making all in $$dir... ;\ |
7c06d0fc | 42 | (cd $$dir ; $(MAKE) $(MFLAGS)) || exit 1;\ |
6be16022 | 43 | done |
44 | ||
45 | # | |
46 | # Remove object and target files... | |
47 | # | |
48 | ||
49 | clean: | |
50 | for dir in $(DIRS); do\ | |
8391453b | 51 | echo Cleaning in $$dir... ;\ |
7c06d0fc | 52 | (cd $$dir; $(MAKE) $(MFLAGS) clean) || exit 1;\ |
6be16022 | 53 | done |
3e7eb9bb | 54 | |
f915b00f | 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 | ||
6be16022 | 66 | # |
67 | # Install object and target files... | |
68 | # | |
69 | ||
f915b00f | 70 | install: installhdrs |
6be16022 | 71 | for dir in $(DIRS); do\ |
8391453b | 72 | echo Installing in $$dir... ;\ |
7c06d0fc | 73 | (cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\ |
6be16022 | 74 | done |
8391453b | 75 | echo Installing in conf... |
7c06d0fc | 76 | (cd conf; $(MAKE) $(MFLAGS) install) |
8391453b | 77 | echo Installing in data... |
7c06d0fc | 78 | (cd data; $(MAKE) $(MFLAGS) install) |
e2e7c96e | 79 | echo Installing in doc... |
80 | (cd doc; $(MAKE) $(MFLAGS) install) | |
b2e10895 | 81 | echo Installing in fonts... |
82 | (cd fonts; $(MAKE) $(MFLAGS) install) | |
aca0f695 | 83 | echo Installing in locale... |
e2e7c96e | 84 | (cd locale; $(MAKE) $(MFLAGS) install) |
1f7c38f0 | 85 | echo Installing in ppd... |
9ee03c7e | 86 | (cd ppd; $(MAKE) $(MFLAGS) install) |
f63a2256 | 87 | echo Installing in templates... |
7c06d0fc | 88 | (cd templates; $(MAKE) $(MFLAGS) install) |
753453e4 | 89 | echo Installing cups-config script... |
90 | $(INSTALL_DIR) $(BINDIR) | |
91 | $(INSTALL_SCRIPT) cups-config $(BINDIR)/cups-config | |
4ed570e1 | 92 | echo Installing startup script... |
91b3b672 | 93 | if test "x$(INITDIR)" != "x"; then \ |
753453e4 | 94 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/init.d; \ |
2d20037d | 95 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/init.d/cups; \ |
753453e4 | 96 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc0.d; \ |
2d20037d | 97 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc0.d/K00cups; \ |
753453e4 | 98 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc2.d; \ |
2d20037d | 99 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc2.d/S99cups; \ |
753453e4 | 100 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc3.d; \ |
2d20037d | 101 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc3.d/S99cups; \ |
753453e4 | 102 | $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc5.d; \ |
2d20037d | 103 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDIR)/rc5.d/S99cups; \ |
4ed570e1 | 104 | fi |
f6fb02d3 | 105 | if test "x$(INITDIR)" = "x" -a "x$(INITDDIR)" != "x"; then \ |
753453e4 | 106 | $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR); \ |
ba31b514 | 107 | if test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \ |
2d20037d | 108 | $(INSTALL_SCRIPT) init/cups.osx $(BUILDROOT)$(INITDDIR)/PrintingServices; \ |
109 | $(INSTALL_DATA) init/cups.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \ | |
753453e4 | 110 | $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \ |
2d20037d | 111 | $(INSTALL_DATA) init/cups.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \ |
753453e4 | 112 | else \ |
2d20037d | 113 | $(INSTALL_SCRIPT) init/cups.sh $(BUILDROOT)$(INITDDIR)/cups; \ |
753453e4 | 114 | fi \ |
f6fb02d3 | 115 | fi |
6be16022 | 116 | |
3f5dfefd | 117 | |
f915b00f | 118 | # |
119 | # Install source and header files... | |
120 | # | |
121 | ||
122 | installsrc: | |
123 | gnutar --dereference --exclude=CVS -cf - . | gnutar -C $(SRCROOT) -xf - | |
124 | ||
125 | installhdrs: | |
126 | (cd cups ; $(MAKE) $(MFLAGS) installhdrs) || exit 1;\ | |
127 | (cd filter ; $(MAKE) $(MFLAGS) installhdrs) || exit 1; | |
128 | ||
43fe1146 | 129 | |
130 | # | |
131 | # Run the test suite... | |
132 | # | |
133 | ||
e3bf38b3 | 134 | check test: all |
43fe1146 | 135 | echo Running CUPS test suite... |
74464516 | 136 | cd test; ./run-stp-tests.sh |
43fe1146 | 137 | |
138 | ||
6be16022 | 139 | # |
7c06d0fc | 140 | # Make software distributions using EPM (http://www.easysw.com/epm)... |
bdfee4a2 | 141 | # |
142 | ||
753453e4 | 143 | EPMFLAGS = -v |
144 | ||
145 | aix: | |
0efda061 | 146 | epm $(EPMFLAGS) -f aix cups packaging/cups.list |
753453e4 | 147 | |
148 | bsd: | |
0efda061 | 149 | epm $(EPMFLAGS) -f bsd cups packaging/cups.list |
7c06d0fc | 150 | |
bdfee4a2 | 151 | epm: |
0efda061 | 152 | epm $(EPMFLAGS) cups packaging/cups.list |
bdfee4a2 | 153 | |
154 | rpm: | |
0efda061 | 155 | epm $(EPMFLAGS) -f rpm cups packaging/cups.list |
bdfee4a2 | 156 | |
157 | deb: | |
0efda061 | 158 | epm $(EPMFLAGS) -f deb cups packaging/cups.list |
bdfee4a2 | 159 | |
f85d4108 | 160 | depot: |
0efda061 | 161 | epm $(EPMFLAGS) -f depot cups packaging/cups.list |
f85d4108 | 162 | |
163 | pkg: | |
0efda061 | 164 | epm $(EPMFLAGS) -f pkg cups packaging/cups.list |
f85d4108 | 165 | |
bdfee4a2 | 166 | tardist: |
0efda061 | 167 | epm $(EPMFLAGS) -f tardist cups packaging/cups.list |
bdfee4a2 | 168 | |
169 | # | |
b2e10895 | 170 | # End of "$Id$". |
6be16022 | 171 | # |