]> git.ipfire.org Git - thirdparty/cups.git/blame - conf/Makefile
License change: Apache License, Version 2.0.
[thirdparty/cups.git] / conf / Makefile
CommitLineData
ef416fc2 1#
503b54c9 2# Configuration file makefile for CUPS.
ef416fc2 3#
503b54c9
MS
4# Copyright 2007-2015 by Apple Inc.
5# Copyright 1993-2006 by Easy Software Products.
ef416fc2 6#
e3101897 7# Licensed under Apache License v2.0. See the file "LICENSE" for more information.
ef416fc2 8#
9
10include ../Makedefs
11
12#
13# Config files...
14#
15
c41769ff 16KEEP = cups-files.conf cupsd.conf snmp.conf
ef416fc2 17REPLACE = mime.convs mime.types
18
19
20#
21# Make everything...
22#
23
24all:
25
26
c9fc04c6
MS
27#
28# Make library targets...
29#
30
31libs:
32
33
5f64df29
MS
34#
35# Make unit tests...
36#
37
38unittests:
39
40
ef416fc2 41#
42# Clean all config and object files...
43#
44
45clean:
46
47
757d2cad 48#
49# Dummy depend...
50#
51
52depend:
53
54
ef416fc2 55#
50fe7201 56# Install all targets...
ef416fc2 57#
58
50fe7201
MS
59install: all install-data install-headers install-libs install-exec
60
61
62#
63# Install data files...
64#
65
66install-data:
ef416fc2 67 for file in $(KEEP); do \
68 if test -r $(SERVERROOT)/$$file ; then \
e07d4801 69 $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.N ; \
ef416fc2 70 else \
e07d4801 71 $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT) ; \
ef416fc2 72 fi ; \
6ee8dca8 73 $(INSTALL_CONFIG) -g $(CUPS_GROUP) $$file $(SERVERROOT)/$$file.default; \
ef416fc2 74 done
dd1abb6b 75 $(INSTALL_DIR) -m 755 $(DATADIR)/mime
ef416fc2 76 for file in $(REPLACE); do \
dd1abb6b
MS
77 if test -r $(DATADIR)/mime/$$file ; then \
78 $(MV) $(DATADIR)/mime/$$file $(DATADIR)/mime/$$file.O ; \
79 fi ; \
ef416fc2 80 if test -r $(SERVERROOT)/$$file ; then \
dd1abb6b 81 $(MV) $(SERVERROOT)/$$file $(DATADIR)/mime/$$file.O ; \
ef416fc2 82 fi ; \
dd1abb6b 83 $(INSTALL_DATA) $$file $(DATADIR)/mime ; \
ef416fc2 84 done
b423cd4c 85 -if test x$(PAMDIR) != x; then \
86 $(INSTALL_DIR) -m 755 $(BUILDROOT)$(PAMDIR); \
18ecb428 87 if test -r $(BUILDROOT)$(PAMDIR)/cups ; then \
b423cd4c 88 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups.N ; \
ef416fc2 89 else \
b423cd4c 90 $(INSTALL_DATA) $(PAMFILE) $(BUILDROOT)$(PAMDIR)/cups ; \
ef416fc2 91 fi ; \
92 fi
93
94
50fe7201
MS
95#
96# Install programs...
97#
98
99install-exec:
100
101
102#
103# Install headers...
104#
105
106install-headers:
107
108
109#
110# Install libraries...
111#
112
113install-libs:
114
115
ef416fc2 116#
757d2cad 117# Uninstall files...
118#
119
120uninstall:
121 for file in $(KEEP) $(REPLACE) cupsd.conf.default; do \
122 $(RM) $(SERVERROOT)/$$file; \
123 done
124 -$(RMDIR) $(SERVERROOT)
dd1abb6b
MS
125 for file in $(REPLACE); do \
126 $(RM) $(DATADIR)/mime/$$file; \
127 done
128 -$(RMDIR) $(DATADIR)/mime
757d2cad 129 -if test x$(PAMDIR) != x; then \
130 $(RM) $(BUILDROOT)$(PAMDIR)/cups; \
131 $(RMDIR) $(BUILDROOT)$(PAMDIR); \
132 fi