2 # "$Id: Makefile 5136 2006-02-19 18:46:46Z mike $"
4 # Top-level Makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2006 by Easy Software Products, all rights reserved.
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
15 # Attn: CUPS Licensing Information
16 # Easy Software Products
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636-3142 USA
20 # Voice: (301) 373-9600
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
28 # Directories to make...
31 DIRS
= cups backend berkeley cgi-bin
filter locale man monitor \
32 notifier pdftops scheduler systemv
test
41 for
dir in
$(DIRS
); do\
42 echo Making
all in
$$dir...
;\
43 (cd
$$dir ; $(MAKE
) $(MFLAGS
)) || exit
1;\
48 # Remove object and target files...
52 for
dir in
$(DIRS
); do\
53 echo Cleaning in
$$dir...
;\
54 (cd
$$dir; $(MAKE
) $(MFLAGS
) clean) || exit
1;\
63 for
dir in
$(DIRS
); do\
64 echo Making dependencies in
$$dir...
;\
65 (cd
$$dir; $(MAKE
) $(MFLAGS
) depend
) || exit
1;\
70 # Install object and target files...
74 for
dir in
$(DIRS
); do\
75 echo Installing in
$$dir...
;\
76 (cd
$$dir; $(MAKE
) $(MFLAGS
) install) || exit
1;\
78 echo Installing in conf...
79 (cd conf
; $(MAKE
) $(MFLAGS
) install)
80 echo Installing in data...
81 (cd data
; $(MAKE
) $(MFLAGS
) install)
82 echo Installing in doc...
83 (cd doc
; $(MAKE
) $(MFLAGS
) install)
84 echo Installing in fonts...
85 (cd fonts
; $(MAKE
) $(MFLAGS
) install)
86 echo Installing in ppd...
87 (cd ppd
; $(MAKE
) $(MFLAGS
) install)
88 echo Installing in templates...
89 (cd templates
; $(MAKE
) $(MFLAGS
) install)
90 echo Installing cups-config script...
91 $(INSTALL_DIR
) $(BINDIR
)
92 $(INSTALL_SCRIPT
) cups-config
$(BINDIR
)/cups-config
93 echo Installing startup script...
94 if
test "x$(INITDIR)" != "x"; then \
95 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/init.d
; \
96 $(INSTALL_SCRIPT
) init
/cups.sh
$(BUILDROOT
)$(INITDIR
)/init.d
/cups
; \
97 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc0.d
; \
98 $(INSTALL_SCRIPT
) init
/cups.sh
$(BUILDROOT
)$(INITDIR
)/rc0.d
/K00cups
; \
99 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc2.d
; \
100 $(INSTALL_SCRIPT
) init
/cups.sh
$(BUILDROOT
)$(INITDIR
)/rc2.d
/S99cups
; \
101 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc3.d
; \
102 $(INSTALL_SCRIPT
) init
/cups.sh
$(BUILDROOT
)$(INITDIR
)/rc3.d
/S99cups
; \
103 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc5.d
; \
104 $(INSTALL_SCRIPT
) init
/cups.sh
$(BUILDROOT
)$(INITDIR
)/rc5.d
/S99cups
; \
106 if
test "x$(INITDIR)" = "x" -a
"x$(INITDDIR)" != "x"; then \
107 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDDIR
); \
108 if
test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \
109 $(INSTALL_SCRIPT
) init
/PrintingServices
$(BUILDROOT
)$(INITDDIR
)/PrintingServices
; \
110 $(INSTALL_DATA
) init
/StartupParameters.plist
$(BUILDROOT
)$(INITDDIR
)/StartupParameters.plist
; \
111 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDDIR
)/Resources
/English.lproj
; \
112 $(INSTALL_DATA
) init
/Localizable.strings
$(BUILDROOT
)$(INITDDIR
)/Resources
/English.lproj
/Localizable.strings
; \
113 elif
test "$(INITDDIR)" = "/System/Library/LaunchDaemons"; then \
114 $(INSTALL_DATA
) init
/org.cups.cupsd.plist
$(BUILDROOT
)$(DEFAULT_LAUNCHD_CONF
); \
116 $(INSTALL_SCRIPT
) init
/cups.sh
$(BUILDROOT
)$(INITDDIR
)/cups
; \
119 if
test "x$(DBUSDIR)" != "x"; then \
120 $(INSTALL_DIR
) $(BUILDROOT
)$(DBUSDIR
); \
121 $(INSTALL_DATA
) packaging
/cups-dbus.conf
$(BUILDROOT
)$(DBUSDIR
)/cups.conf
; \
126 # Install source and header files...
130 gnutar
--dereference
--exclude
=.svn
-cf
- . | gnutar
-C
$(SRCROOT
) -xf
-
133 (cd cups
; $(MAKE
) $(MFLAGS
) installhdrs
) || exit
1;\
134 (cd
filter ; $(MAKE
) $(MFLAGS
) installhdrs
) || exit
1;
138 # Run the test suite...
142 echo Running CUPS
test suite...
143 cd
test; .
/run-stp-tests.sh
147 # Make software distributions using EPM (http://www.easysw.com/epm)...
153 epm
$(EPMFLAGS
) -f aix cups packaging
/cups.list
156 epm
$(EPMFLAGS
) -f bsd cups packaging
/cups.list
159 epm
$(EPMFLAGS
) cups packaging
/cups.list
162 epm
$(EPMFLAGS
) -f rpm cups packaging
/cups.list
165 epm
$(EPMFLAGS
) -f deb cups packaging
/cups.list
168 epm
$(EPMFLAGS
) -f depot cups packaging
/cups.list
171 epm
$(EPMFLAGS
) -f pkg cups packaging
/cups.list
174 epm
$(EPMFLAGS
) -f tardist cups packaging
/cups.list
178 # End of "$Id: Makefile 5136 2006-02-19 18:46:46Z mike $".