forked from simoncadman/CUPS-Cloud-Print
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
49 lines (47 loc) · 2.47 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
prefix = $(DESTDIR)@prefix@
destprefix = @prefix@
srcdir = @srcdir@
INSTALL = @INSTALL@
cupsdriver = ${DESTDIR}@cupsserverpath@/driver/
cupsbackend = ${DESTDIR}@cupsserverpath@/backend/
cupsmodel = ${DESTDIR}@cupsdatapath@/model/
cupsgroup = @cupsgroup@
enablegui = @enable_gui@
all: backend.py
install: all
mkdir -p "${prefix}"/share/cloudprint-cups/oauth2client
mkdir -p "${prefix}"/share/cloudprint-cups/selinux
mkdir -p "${prefix}"/share/cloudprint-cups/testing/testfiles
${INSTALL} "${srcdir}"/.coveragerc "${prefix}"/share/cloudprint-cups/
${INSTALL} "${srcdir}"/*.py "${prefix}"/share/cloudprint-cups/
ifneq ($(enablegui),"yes")
unlink "${prefix}"/share/cloudprint-cups/setupcloudprintgui.py
endif
${INSTALL} -m 644 "${srcdir}"/ccputils.py "${prefix}"/share/cloudprint-cups/
${INSTALL} -m 644 "${srcdir}"/cloudprintrequestor.py "${prefix}"/share/cloudprint-cups/
${INSTALL} -m 644 "${srcdir}"/printermanager.py "${prefix}"/share/cloudprint-cups/
${INSTALL} -m 644 "${srcdir}"/printer.py "${prefix}"/share/cloudprint-cups/
${INSTALL} -m 644 "${srcdir}"/auth.py "${prefix}"/share/cloudprint-cups/
${INSTALL} -m 644 "${srcdir}"/.coveragerc "${prefix}"/share/cloudprint-cups/
unlink "${prefix}"/share/cloudprint-cups/pre-commit.py
${INSTALL} -m 755 "${srcdir}"/testing/*.sh "${prefix}"/share/cloudprint-cups/testing/
${INSTALL} -m 644 "${srcdir}"/testing/*.py "${prefix}"/share/cloudprint-cups/testing/
${INSTALL} -m 755 "${srcdir}"/testing/listdrivefiles.py "${prefix}"/share/cloudprint-cups/testing/
${INSTALL} -m 644 "${srcdir}"/testing/testfiles/* "${prefix}"/share/cloudprint-cups/testing/testfiles/
${INSTALL} -m 644 "${srcdir}"/selinux/* "${prefix}"/share/cloudprint-cups/selinux/
${INSTALL} -m 644 "${srcdir}"/oauth2client/*.py "${prefix}"/share/cloudprint-cups/oauth2client/
mkdir -p "${cupsbackend}"
mkdir -p "${cupsdriver}"
mkdir -p "${cupsmodel}"
ifeq ($(NOPERMS),1)
${INSTALL} "${srcdir}"/backend.py "${cupsbackend}"gcp
${INSTALL} "${srcdir}"/dynamicppd.py "${cupsdriver}"cupscloudprint
else
${INSTALL} -g `groups root | cut -d' ' -f1` -o root -m 755 "${srcdir}"/backend.py "${cupsbackend}"gcp
${INSTALL} -g `groups root | cut -d' ' -f1` -o root -m 755 "${srcdir}"/dynamicppd.py "${cupsdriver}"cupscloudprint
endif
${INSTALL} -m 644 "${srcdir}"/README.md "${prefix}"/share/cloudprint-cups/README.md
${INSTALL} -m 644 "${srcdir}"/COPYING "${prefix}"/share/cloudprint-cups/COPYING
ifneq ($(NOPERMS),1)
chown -R root:${cupsgroup} "${prefix}"/share/cloudprint-cups/
endif