2 # "$Id: Makefile 4835 2005-11-12 22:00:16Z mike $"
4 # Top-level Makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2004 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 man pdftops \
32 notifier scheduler systemv
40 for
dir in
$(DIRS
); do\
41 echo Making
all in
$$dir...
;\
42 (cd
$$dir ; $(MAKE
) $(MFLAGS
)) || exit
1;\
46 # Remove object and target files...
50 for
dir in
$(DIRS
); do\
51 echo Cleaning in
$$dir...
;\
52 (cd
$$dir; $(MAKE
) $(MFLAGS
) clean) || exit
1;\
60 for
dir in
$(DIRS
); do\
61 echo Making dependencies in
$$dir...
;\
62 (cd
$$dir; $(MAKE
) $(MFLAGS
) depend
) || exit
1;\
67 # Install object and target files...
71 for
dir in
$(DIRS
); do\
72 echo Installing in
$$dir...
;\
73 (cd
$$dir; $(MAKE
) $(MFLAGS
) install) || exit
1;\
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)
83 echo Installing in locale...
84 (cd locale
; $(MAKE
) $(MFLAGS
) install)
85 echo Installing in ppd...
86 (cd ppd
; $(MAKE
) $(MFLAGS
) install)
87 echo Installing in templates...
88 (cd templates
; $(MAKE
) $(MFLAGS
) install)
89 echo Installing cups-config script...
90 $(INSTALL_DIR
) $(BINDIR
)
91 $(INSTALL_SCRIPT
) cups-config
$(BINDIR
)/cups-config
92 echo Installing startup script...
93 if
test "x$(INITDIR)" != "x"; then \
94 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/init.d
; \
95 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDIR
)/init.d
/cups
; \
96 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc0.d
; \
97 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDIR
)/rc0.d
/K00cups
; \
98 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc2.d
; \
99 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDIR
)/rc2.d
/S99cups
; \
100 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc3.d
; \
101 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDIR
)/rc3.d
/S99cups
; \
102 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc5.d
; \
103 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDIR
)/rc5.d
/S99cups
; \
105 if
test "x$(INITDIR)" = "x" -a
"x$(INITDDIR)" != "x"; then \
106 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDDIR
); \
107 if
test "$(INITDDIR)" = "/System/Library/StartupItems/PrintingServices"; then \
108 $(INSTALL_SCRIPT
) cups.osx
$(BUILDROOT
)$(INITDDIR
)/PrintingServices
; \
109 $(INSTALL_DATA
) cups.plist
$(BUILDROOT
)$(INITDDIR
)/StartupParameters.plist
; \
110 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDDIR
)/Resources
/English.lproj
; \
111 $(INSTALL_DATA
) cups.strings
$(BUILDROOT
)$(INITDDIR
)/Resources
/English.lproj
/Localizable.strings
; \
113 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDDIR
)/cups
; \
119 # Install source and header files...
123 gnutar
--dereference
--exclude
=CVS
-cf
- . | gnutar
-C
$(SRCROOT
) -xf
-
126 (cd cups
; $(MAKE
) $(MFLAGS
) installhdrs
) || exit
1;\
127 (cd
filter ; $(MAKE
) $(MFLAGS
) installhdrs
) || exit
1;
131 # Run the test suite...
135 echo Running CUPS
test suite...
136 cd
test; .
/run-stp-tests.sh
140 # Make software distributions using EPM (http://www.easysw.com/epm)...
146 epm
$(EPMFLAGS
) -f aix cups packaging
/cups.list
149 epm
$(EPMFLAGS
) -f bsd cups packaging
/cups.list
152 epm
$(EPMFLAGS
) cups packaging
/cups.list
155 epm
$(EPMFLAGS
) -f rpm cups packaging
/cups.list
158 epm
$(EPMFLAGS
) -f deb cups packaging
/cups.list
161 epm
$(EPMFLAGS
) -f depot cups packaging
/cups.list
164 epm
$(EPMFLAGS
) -f pkg cups packaging
/cups.list
167 epm
$(EPMFLAGS
) -f tardist cups packaging
/cups.list
170 # End of "$Id: Makefile 4835 2005-11-12 22:00:16Z mike $".