2 # "$Id: Makefile,v 1.31.2.4 2002/01/02 18:04:16 mike Exp $"
4 # Top-level Makefile for the Common UNIX Printing System (CUPS).
6 # Copyright 1997-2002 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-3111 USA
20 # Voice: (301) 373-9603
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 \
39 for
dir in
$(DIRS
); do\
40 echo Making
all in
$$dir...
;\
41 (cd
$$dir ; $(MAKE
) $(MFLAGS
)) || exit
1;\
45 # Remove object and target files...
49 for
dir in
$(DIRS
); do\
50 echo Cleaning in
$$dir...
;\
51 (cd
$$dir; $(MAKE
) $(MFLAGS
) clean) || exit
1;\
55 # Install object and target files...
59 for
dir in
$(DIRS
); do\
60 echo Installing in
$$dir...
;\
61 (cd
$$dir; $(MAKE
) $(MFLAGS
) install) || exit
1;\
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 locale...
70 (cd locale
; $(MAKE
) $(MFLAGS
) install)
71 echo Installing in ppd...
72 (cd ppd
; $(MAKE
) $(MFLAGS
) install)
73 echo Installing in templates...
74 (cd templates
; $(MAKE
) $(MFLAGS
) install)
75 echo Installing cups-config script...
76 $(INSTALL_DIR
) $(BINDIR
)
77 $(INSTALL_SCRIPT
) cups-config
$(BINDIR
)/cups-config
78 echo Installing startup script...
79 if
test "x$(INITDIR)" != "x"; then \
80 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/init.d
; \
81 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDIR
)/init.d
/cups
; \
82 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc0.d
; \
83 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDIR
)/rc0.d
/K00cups
; \
84 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc2.d
; \
85 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDIR
)/rc2.d
/S99cups
; \
86 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc3.d
; \
87 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDIR
)/rc3.d
/S99cups
; \
88 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDIR
)/rc5.d
; \
89 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDIR
)/rc5.d
/S99cups
; \
91 if
test "x$(INITDIR)" = "x" -a
"x$(INITDDIR)" != "x"; then \
92 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDDIR
); \
93 if
test "$(INITDDIR)" = "/System/Library/StartupItems/CUPS"; then \
94 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDDIR
)/CUPS
; \
95 $(INSTALL_DATA
) cups.plist
$(BUILDROOT
)$(INITDDIR
)/StartupParameters.plist
; \
96 $(INSTALL_DIR
) $(BUILDROOT
)$(INITDDIR
)/Resources
/English.lproj
; \
97 $(INSTALL_DATA
) cups.strings
$(BUILDROOT
)$(INITDDIR
)/Resources
/English.lproj
/Localizable.strings
; \
99 $(INSTALL_SCRIPT
) cups.sh
$(BUILDROOT
)$(INITDDIR
)/cups
; \
105 # Run the test suite...
109 echo Running CUPS
test suite...
110 cd
test; .
/run-stp-tests.sh
114 # Make software distributions using EPM (http://www.easysw.com/epm)...
120 epm
$(EPMFLAGS
) -f aix cups
123 epm
$(EPMFLAGS
) -f bsd cups
129 epm
$(EPMFLAGS
) -f rpm cups
132 epm
$(EPMFLAGS
) -f deb cups
135 epm
$(EPMFLAGS
) -f depot cups
138 epm
$(EPMFLAGS
) -f pkg cups
141 epm
$(EPMFLAGS
) -f tardist cups
144 # End of "$Id: Makefile,v 1.31.2.4 2002/01/02 18:04:16 mike Exp $".