gnome-control-center/panels/printers/Makefile.am
Marek Kasik 88fa618aca printers: Add function shift_string_left() and its test
shift_string_left() shifts given string by 1 character to the left.
test-shift.c tests whether function shift_string_left() works correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=695564
2014-07-31 11:44:17 +02:00

77 lines
2.2 KiB
Makefile

cappletname = printers
AM_CPPFLAGS = \
$(PANEL_CFLAGS) \
$(PRINTERS_PANEL_CFLAGS) \
$(CUPS_CFLAGS) \
$(SMBCLIENT_CFLAGS) \
-I$(top_srcdir)/shell/ \
-DGNOMELOCALEDIR="\"$(datadir)/locale\"" \
$(NULL)
noinst_LTLIBRARIES = libprinters.la
BUILT_SOURCES = \
cc-printers-resources.c \
cc-printers-resources.h
libprinters_la_CPPFLAGS = $(CUPS_CPPFLAGS)
libprinters_la_SOURCES = \
$(BUILT_SOURCES) \
pp-new-printer.c \
pp-new-printer.h \
pp-maintenance-command.c \
pp-maintenance-command.h \
pp-host.c \
pp-host.h \
pp-cups.c \
pp-cups.h \
pp-utils.c \
pp-utils.h \
pp-ppd-option-widget.c \
pp-ppd-option-widget.h \
pp-ipp-option-widget.c \
pp-ipp-option-widget.h \
pp-new-printer-dialog.c \
pp-new-printer-dialog.h \
pp-ppd-selection-dialog.c \
pp-ppd-selection-dialog.h \
pp-options-dialog.c \
pp-options-dialog.h \
pp-jobs-dialog.c \
pp-jobs-dialog.h \
pp-authentication-dialog.c \
pp-authentication-dialog.h \
pp-samba.c \
pp-samba.h \
cc-printers-panel.c \
cc-printers-panel.h
libprinters_la_CPPFLAGS = $(AM_CPPFLAGS)
libprinters_la_LIBADD = $(PRINTERS_PANEL_LIBS) $(PANEL_LIBS) $(CUPS_LIBS) $(SMBCLIENT_LIBS)
resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/printers.gresource.xml)
cc-printers-resources.c: printers.gresource.xml $(resource_files)
$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name cc_printers $<
cc-printers-resources.h: printers.gresource.xml $(resource_files)
$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name cc_printers $<
@INTLTOOL_DESKTOP_RULE@
desktopdir = $(datadir)/applications
desktop_in_files = gnome-printers-panel.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
CLEANFILES = $(desktop_in_files) $(desktop_DATA) $(BUILT_SOURCES)
EXTRA_DIST = $(resource_files) printers.gresource.xml
noinst_PROGRAMS = test-shift
test_shift_SOURCES = pp-utils.c pp-utils.h test-shift.c
test_shift_LDADD = $(PANEL_LIBS) $(PRINTERS_PANEL_LIBS) $(CUPS_LIBS)
EXTRA_DIST += shift-test.txt
check-local: test-shift
$(builddir)/test-shift $(srcdir)/shift-test.txt > /dev/null
-include $(top_srcdir)/git.mk