]> git.ipfire.org Git - thirdparty/cups.git/blob - Makefile
Merge changes from 1.1.x into 1.2 devel.
[thirdparty/cups.git] / Makefile
1 #
2 # "$Id: Makefile,v 1.31.2.2 2001/12/26 16:52:05 mike Exp $"
3 #
4 # Top-level Makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1997-2001 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-3111 USA
19 #
20 # Voice: (301) 373-9603
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 man pdftops pstoraster \
32 scheduler systemv
33
34 #
35 # Make all targets...
36 #
37
38 all:
39 for dir in $(DIRS); do\
40 echo Making all in $$dir... ;\
41 (cd $$dir ; $(MAKE) $(MFLAGS)) || exit 1;\
42 done
43
44 #
45 # Remove object and target files...
46 #
47
48 clean:
49 for dir in $(DIRS); do\
50 echo Cleaning in $$dir... ;\
51 (cd $$dir; $(MAKE) $(MFLAGS) clean) || exit 1;\
52 done
53
54 #
55 # Install object and target files...
56 #
57
58 install:
59 for dir in $(DIRS); do\
60 echo Installing in $$dir... ;\
61 (cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\
62 done
63 echo Installing in conf...
64 (cd conf; $(MAKE) $(MFLAGS) install)
65 echo Installing in data...
66 (cd data; $(MAKE) $(MFLAGS) install)
67 echo Installing in doc...
68 (cd doc; $(MAKE) $(MFLAGS) install)
69 echo Installing in fonts...
70 (cd fonts; $(MAKE) $(MFLAGS) install)
71 echo Installing in locale...
72 (cd locale; $(MAKE) $(MFLAGS) install)
73 echo Installing in ppd...
74 (cd ppd; $(MAKE) $(MFLAGS) install)
75 echo Installing in templates...
76 (cd templates; $(MAKE) $(MFLAGS) install)
77 echo Installing cups-config script...
78 $(INSTALL_DIR) $(BINDIR)
79 $(INSTALL_SCRIPT) cups-config $(BINDIR)/cups-config
80 echo Installing startup script...
81 if test "x$(INITDIR)" != "x"; then \
82 $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/init.d; \
83 $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/init.d/cups; \
84 $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc0.d; \
85 $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/rc0.d/K00cups; \
86 $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc2.d; \
87 $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/rc2.d/S99cups; \
88 $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc3.d; \
89 $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/rc3.d/S99cups; \
90 $(INSTALL_DIR) $(BUILDROOT)$(INITDIR)/rc5.d; \
91 $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDIR)/rc5.d/S99cups; \
92 fi
93 if test "x$(INITDIR)" = "x" -a "x$(INITDDIR)" != "x"; then \
94 $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR); \
95 if test "$(INITDDIR)" = "/System/Library/StartupItems/CUPS"; then \
96 $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDDIR)/CUPS; \
97 $(INSTALL_DATA) cups.plist $(BUILDROOT)$(INITDDIR)/StartupParameters.plist; \
98 $(INSTALL_DIR) $(BUILDROOT)$(INITDDIR)/Resources/English.lproj; \
99 $(INSTALL_DATA) cups.strings $(BUILDROOT)$(INITDDIR)/Resources/English.lproj/Localizable.strings; \
100 else \
101 $(INSTALL_SCRIPT) cups.sh $(BUILDROOT)$(INITDDIR)/cups; \
102 fi \
103 fi
104
105
106 #
107 # Run the test suite...
108 #
109
110 test: all
111 echo Running CUPS test suite...
112 cd test; ./run-stp-tests.sh
113
114
115 #
116 # Make software distributions using EPM (http://www.easysw.com/epm)...
117 #
118
119 EPMFLAGS = -v
120
121 aix:
122 epm $(EPMFLAGS) -f aix cups
123
124 bsd:
125 epm $(EPMFLAGS) -f bsd cups
126
127 epm:
128 epm $(EPMFLAGS) cups
129
130 rpm:
131 epm $(EPMFLAGS) -f rpm cups
132
133 deb:
134 epm $(EPMFLAGS) -f deb cups
135
136 depot:
137 epm $(EPMFLAGS) -f depot cups
138
139 pkg:
140 epm $(EPMFLAGS) -f pkg cups
141
142 tardist:
143 epm $(EPMFLAGS) -f tardist cups
144
145 #
146 # End of "$Id: Makefile,v 1.31.2.2 2001/12/26 16:52:05 mike Exp $".
147 #