summaryrefslogtreecommitdiffstats
path: root/data/Makefile.am
blob: f3511934f9794fae2401986c3af797ab5ed47bae (plain)
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
50
51
52
SUBDIRS = icons

desktop_in_files = gfax.desktop.in
desktop_files = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

Applicationsdir = $(datadir)/applications
Applications_DATA = $(desktop_files)

schemas_in_files = gfax.schemas.in
schemasdir	 = $(GCONF_SCHEMA_FILE_DIR)
schemas_DATA  = $(schemas_in_files:.schemas.in=.schemas)

@INTLTOOL_SCHEMAS_RULE@

if GCONF_SCHEMAS_INSTALL
install-data-local:
	if test -z "$(DESTDIR)" ; then \
	  for p in $(schemas_DATA) ; do \
	    GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \
	  done \
	fi
else
install-data-local:
endif

cups-gfax:
backenddir = $(DESTDIR)$(libdir)/cups/backend
backend_EXEC = cups-gfax

backend_availabledir = $(DESTDIR)$(libdir)/cups/backend-available
backend_available_EXEC = cups-gfax

install-exec-hook:
	$(INSTALL_PROGRAM) $(backend_EXEC) $(backenddir) 
	$(INSTALL_PROGRAM) $(backend_available_EXEC) $(backend_availabledir) 
	
uninstall-local:
	rm -f $(backenddir)/$(backend_EXEC)
	rm -f $(backend_availabledir)/$(backend_available_EXEC)	

EXTRA_DIST = \
        $(backend_EXEC)           \
        $(backend_available_EXEC) \
        $(desktop_in_files)       \
        $(desktop_files)          \
        $(schemas_in_files)       \
        $(schemas_DATA)

DISTCLEANFILES = \
        $(desktop_files)        \
        $(schemas_DATA)