Revert manifest to default one
[external/cups.git] / data / Makefile
1 #
2 # "$Id: Makefile 9771 2011-05-12 05:21:56Z mike $"
3 #
4 #   Datafile makefile for CUPS.
5 #
6 #   Copyright 2007-2011 by Apple Inc.
7 #   Copyright 1993-2006 by Easy Software Products.
8 #
9 #   These coded instructions, statements, and computer programs are the
10 #   property of Apple Inc. and are protected by Federal copyright
11 #   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
12 #   which should have been included with this file.  If this file is
13 #   file is missing or damaged, see the license at "http://www.cups.org/".
14 #
15
16 include ../Makedefs
17
18 #
19 # Data files...
20 #
21
22 BANNERS =       \
23                 classified \
24                 confidential \
25                 secret \
26                 standard \
27                 topsecret \
28                 unclassified
29
30 CHARSETS =      \
31                 utf-8
32
33 DATAFILES =     \
34                 psglyphs \
35                 testprint
36
37 PPDCFILES =     \
38                 epson.h \
39                 escp.h \
40                 font.defs \
41                 hp.h \
42                 label.h \
43                 media.defs \
44                 pcl.h \
45                 raster.defs
46
47
48 #
49 # Make everything...
50 #
51
52 all:
53
54
55 #
56 # Make library targets...
57 #
58
59 libs:
60
61
62 #
63 # Make unit tests...
64 #
65
66 unittests:
67
68
69 #
70 # Clean all config and object files...
71 #
72
73 clean:
74
75
76 #
77 # Dummy depend...
78 #
79
80 depend:
81
82
83 #
84 # Install all targets...
85 #
86
87 install:        all install-data install-headers install-libs install-exec
88
89
90 #
91 # Install data files...
92 #
93
94 install-data:
95         $(INSTALL_DIR) -m 755 $(DATADIR)/banners
96         for file in $(BANNERS); do \
97                 $(INSTALL_DATA) $$file $(DATADIR)/banners; \
98         done
99         $(INSTALL_DIR) -m 755 $(DATADIR)/charsets
100         if test "x$(BANNERTOPS)" != x -o "x$(TEXTTOPS)" != x; then \
101                 for file in $(CHARSETS); do \
102                         $(INSTALL_DATA) $$file $(DATADIR)/charsets; \
103                 done; \
104         fi
105         $(INSTALL_DIR) -m 755 $(DATADIR)/data
106         for file in $(DATAFILES); do \
107                 $(INSTALL_DATA) $$file $(DATADIR)/data; \
108         done
109         $(INSTALL_DIR) -m 755 $(DATADIR)/model
110         $(INSTALL_DIR) -m 755 $(DATADIR)/ppdc
111         for file in $(PPDCFILES); do \
112                 $(INSTALL_DATA) $$file $(DATADIR)/ppdc; \
113         done
114         $(INSTALL_DIR) -m 755 $(DATADIR)/profiles
115
116
117 #
118 # Install programs...
119 #
120
121 install-exec:
122
123
124 #
125 # Install headers...
126 #
127
128 install-headers:
129
130
131 #
132 # Install libraries...
133 #
134
135 install-libs:
136
137
138 #
139 # Uninstall files...
140 #
141
142 uninstall:
143         for file in $(BANNERS); do \
144                 $(RM) $(DATADIR)/banners/$$file; \
145         done
146         for file in $(CHARSETS); do \
147                 $(RM) $(DATADIR)/charsets/$$file; \
148         done
149         for file in $(DATAFILES); do \
150                 $(RM) $(DATADIR)/data/$$file; \
151         done
152         for file in $(PPDCFILES); do \
153                 $(RM) $(DATADIR)/ppdc/$$file; \
154         done
155         -$(RMDIR) $(DATADIR)/profiles
156         -$(RMDIR) $(DATADIR)/ppdc
157         -$(RMDIR) $(DATADIR)/model
158         -$(RMDIR) $(DATADIR)/data
159         -$(RMDIR) $(DATADIR)/charsets
160         -$(RMDIR) $(DATADIR)/banners
161         -$(RMDIR) $(DATADIR)
162
163
164 #
165 # End of "$Id: Makefile 9771 2011-05-12 05:21:56Z mike $".
166 #