|
Lines 1-90
Link Here
|
| 1 |
CFLAGS=-g -O2 -Wall |
|
|
| 2 |
|
| 3 |
SUBDIRS=po |
1 |
SUBDIRS=po |
| 4 |
|
2 |
|
| 5 |
EXPORT_MODULES= \ |
|
|
| 6 |
cupshelpers/__init__.py \ |
| 7 |
cupshelpers/cupshelpers.py \ |
| 8 |
cupshelpers/installdriver.py \ |
| 9 |
cupshelpers/ppds.py \ |
| 10 |
cupshelpers/openprinting.py \ |
| 11 |
cupshelpers/xmldriverprefs.py |
| 12 |
|
| 13 |
EXPORT_MODULES_GEN= \ |
| 14 |
cupshelpers/config.py |
| 15 |
|
| 16 |
### Automake hooks for Distutils. |
| 17 |
# The distutils module doesn't understand srcdir != builddir, |
| 18 |
# so we copy in, along with the cupshelpers modules, into |
| 19 |
# the builddir for 'all', 'install-exec', and 'clean' hooks. |
| 20 |
.stamp-distutils-in-builddir: setup.py $(EXPORT_MODULES) |
| 21 |
if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \ |
| 22 |
cp $(top_srcdir)/setup.py .; \ |
| 23 |
$(mkdir_p) cupshelpers; \ |
| 24 |
for file in $(EXPORT_MODULES); do \ |
| 25 |
cp $(top_srcdir)/$$file $$file; \ |
| 26 |
done; \ |
| 27 |
fi |
| 28 |
touch .stamp-distutils-in-builddir |
| 29 |
|
| 30 |
dist-hook: mk-ChangeLog |
| 31 |
.PHONE: mk-ChangeLog |
| 32 |
mk-ChangeLog: |
| 33 |
if test -d .git; then \ |
| 34 |
$(top_srcdir)/gitlog-to-changelog \ |
| 35 |
--since=2009-05-01 -- --no-merges \ |
| 36 |
> $(distdir)/cl ; \ |
| 37 |
mv -f $(distdir)/cl $(distdir)/ChangeLog ; \ |
| 38 |
fi |
| 39 |
|
| 40 |
config.py: config.py.in Makefile |
| 41 |
sed \ |
| 42 |
-e "s|\@prefix\@|$(prefix)|" \ |
| 43 |
-e "s|\@datadir\@|$(datadir)|" \ |
| 44 |
-e "s|\@localedir\@|$(localedir)|" \ |
| 45 |
-e "s|\@VERSION\@|$(VERSION)|" \ |
| 46 |
-e "s|\@PACKAGE\@|$(PACKAGE)|" \ |
| 47 |
$< > $@ |
| 48 |
|
| 49 |
cupshelpers/config.py: cupshelpers/config.py.in Makefile |
| 50 |
$(mkdir_p) cupshelpers |
| 51 |
sed \ |
| 52 |
-e "s|\@prefix\@|$(prefix)|" \ |
| 53 |
-e "s|\@sysconfdir\@|$(sysconfdir)|" \ |
| 54 |
-e "s|\@cupsserverbindir\@|$(cupsserverbindir)|" \ |
| 55 |
$< > $@ |
| 56 |
|
| 57 |
# Use distutils to build the module. |
| 58 |
all-local: .stamp-distutils-in-builddir config.py cupshelpers/config.py |
| 59 |
$(PYTHON) setup.py build |
| 60 |
|
| 61 |
# Use distutils to install the module. |
| 62 |
install-exec-local: .stamp-distutils-in-builddir |
| 63 |
$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) |
| 64 |
|
| 65 |
# Uninstall the module, crossing our fingers that we know enough |
| 66 |
# about how distutils works to do this. Unfortunately, distutils |
| 67 |
# doesn't provide a way to do this itself. |
| 68 |
uninstall-local: |
| 69 |
rm -f $(DESTDIR)/$(pythondir)/cupshelpers*.egg-info |
| 70 |
for file in $(EXPORT_MODULES) $(EXPORT_MODULES_GEN); do \ |
| 71 |
rm -f $(DESTDIR)/$(pythondir)/$$file*; \ |
| 72 |
done |
| 73 |
|
| 74 |
# Tell distutils to clean up. |
| 75 |
clean-local: |
| 76 |
-$(PYTHON) setup.py clean --all |
| 77 |
if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \ |
| 78 |
rm -f setup.py; \ |
| 79 |
for file in $(EXPORT_MODULES) \ |
| 80 |
$(EXPORT_MODULES_GEN); do \ |
| 81 |
rm -f $$file*; \ |
| 82 |
done; \ |
| 83 |
fi |
| 84 |
rm -f .stamp-distutils-in-builddir |
| 85 |
|
| 86 |
nobase_pkgdata_SCRIPTS= \ |
3 |
nobase_pkgdata_SCRIPTS= \ |
| 87 |
check-device-ids.py \ |
|
|
| 88 |
pysmb.py \ |
4 |
pysmb.py \ |
| 89 |
scp-dbus-service.py \ |
5 |
scp-dbus-service.py \ |
| 90 |
system-config-printer.py \ |
6 |
system-config-printer.py \ |
|
Lines 97-129
Link Here
|
| 97 |
asyncipp.py \ |
13 |
asyncipp.py \ |
| 98 |
asyncpk1.py \ |
14 |
asyncpk1.py \ |
| 99 |
authconn.py \ |
15 |
authconn.py \ |
| 100 |
config.py \ |
|
|
| 101 |
cupspk.py \ |
16 |
cupspk.py \ |
| 102 |
debug.py \ |
|
|
| 103 |
dnssdresolve.py \ |
| 104 |
errordialogs.py \ |
17 |
errordialogs.py \ |
| 105 |
HIG.py \ |
18 |
HIG.py \ |
| 106 |
firewall.py \ |
|
|
| 107 |
gui.py \ |
19 |
gui.py \ |
| 108 |
gtkinklevel.py \ |
20 |
gtkinklevel.py \ |
| 109 |
gtkspinner.py \ |
21 |
gtkspinner.py \ |
| 110 |
installpackage.py \ |
|
|
| 111 |
jobviewer.py \ |
22 |
jobviewer.py \ |
| 112 |
monitor.py \ |
|
|
| 113 |
newprinter.py \ |
23 |
newprinter.py \ |
| 114 |
options.py \ |
24 |
options.py \ |
| 115 |
optionwidgets.py \ |
25 |
optionwidgets.py \ |
| 116 |
PhysicalDevice.py \ |
|
|
| 117 |
ppdcache.py \ |
26 |
ppdcache.py \ |
| 118 |
ppdippstr.py \ |
|
|
| 119 |
ppdsloader.py \ |
27 |
ppdsloader.py \ |
| 120 |
printerproperties.py \ |
28 |
printerproperties.py \ |
| 121 |
probe_printer.py \ |
|
|
| 122 |
gtk_label_autowrap.py \ |
29 |
gtk_label_autowrap.py \ |
| 123 |
SearchCriterion.py \ |
|
|
| 124 |
serversettings.py \ |
30 |
serversettings.py \ |
| 125 |
smburi.py \ |
|
|
| 126 |
statereason.py \ |
| 127 |
timedops.py \ |
31 |
timedops.py \ |
| 128 |
ToolbarSearchEntry.py \ |
32 |
ToolbarSearchEntry.py \ |
| 129 |
userdefault.py \ |
33 |
userdefault.py \ |
|
Lines 166-178
Link Here
|
| 166 |
troubleshoot/ServerFirewalled.py \ |
70 |
troubleshoot/ServerFirewalled.py \ |
| 167 |
troubleshoot/Shrug.py \ |
71 |
troubleshoot/Shrug.py \ |
| 168 |
troubleshoot/VerifyPackages.py \ |
72 |
troubleshoot/VerifyPackages.py \ |
| 169 |
troubleshoot/Welcome.py \ |
73 |
troubleshoot/Welcome.py |
| 170 |
xml/preferreddrivers.rng \ |
|
|
| 171 |
xml/validate.py |
| 172 |
|
| 173 |
cupshelpersdir=$(sysconfdir)/cupshelpers |
| 174 |
cupshelpers_DATA=\ |
| 175 |
xml/preferreddrivers.xml |
| 176 |
|
74 |
|
| 177 |
bin_SCRIPTS= \ |
75 |
bin_SCRIPTS= \ |
| 178 |
system-config-printer \ |
76 |
system-config-printer \ |
|
Lines 180-218
Link Here
|
| 180 |
system-config-printer-applet \ |
78 |
system-config-printer-applet \ |
| 181 |
dbus/scp-dbus-service |
79 |
dbus/scp-dbus-service |
| 182 |
|
80 |
|
| 183 |
if UDEV_RULES |
|
|
| 184 |
udevrulesdir=$(sysconfdir)/udev/rules.d |
| 185 |
udevrules_DATA=udev/70-printers.rules |
| 186 |
udev_udev_configure_printer_SOURCES=\ |
| 187 |
udev/udev-configure-printer.c |
| 188 |
udev_udev_configure_printer_LDADD= -lcups -ludev $(libusb_LIBS) $(GLIB_LIBS) |
| 189 |
udev_udev_configure_printer_CFLAGS= $(AM_CFLAGS) $(libusb_CFLAGS) $(GLIB_CFLAGS) |
| 190 |
udevhelperdir=$(sysconfdir)/udev |
| 191 |
udevhelper_PROGRAMS=\ |
| 192 |
udev/udev-configure-printer |
| 193 |
udevhelper_SCRIPTS=\ |
| 194 |
udev/udev-add-printer |
| 195 |
|
| 196 |
if HAVE_SYSTEMD |
| 197 |
%.service: %.service.in |
| 198 |
$(AM_V_GEN)sed -e 's,@udevhelperdir\@,$(udevhelperdir),g' $< > $@ |
| 199 |
systemdsystemunit_DATA = \ |
| 200 |
udev/configure-printer@.service |
| 201 |
CLEANFILES = \ |
| 202 |
$(systemdsystemunit_DATA) |
| 203 |
endif |
| 204 |
|
| 205 |
endif |
| 206 |
|
| 207 |
man_MANS= \ |
81 |
man_MANS= \ |
| 208 |
man/system-config-printer.1 \ |
82 |
man/system-config-printer.1 \ |
| 209 |
man/system-config-printer-applet.1 |
83 |
man/system-config-printer-applet.1 |
| 210 |
|
84 |
|
| 211 |
dbus_DATA = \ |
|
|
| 212 |
dbus/com.redhat.NewPrinterNotification.conf \ |
| 213 |
dbus/com.redhat.PrinterDriversInstaller.conf |
| 214 |
dbusdir = $(sysconfdir)/dbus-1/system.d/ |
| 215 |
|
| 216 |
dbusinterfaces_DATA = \ |
85 |
dbusinterfaces_DATA = \ |
| 217 |
dbus/org.fedoraproject.Config.Printing.xml |
86 |
dbus/org.fedoraproject.Config.Printing.xml |
| 218 |
dbusinterfacesdir = $(datadir)/dbus-1/interfaces/ |
87 |
dbusinterfacesdir = $(datadir)/dbus-1/interfaces/ |