Fix hardcoded path
[platform/core/uifw/isf.git] / Makefile.am
1 ## Makefile.am -- Process this file with automake to produce Makefile.in
2 ## Copyright (C) 2002 James Su
3 ##
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
7 ## any later version.
8 ##
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
13 ##
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 AUX_DIST                = $(ac_aux_dir)/config.guess \
19                         $(ac_aux_dir)/config.sub \
20                         $(ac_aux_dir)/compile \
21                         $(ac_aux_dir)/depcomp \
22                         $(ac_aux_dir)/install-sh \
23                         $(ac_aux_dir)/ltconfig \
24                         $(ac_aux_dir)/ltmain.sh \
25                         $(ac_aux_dir)/missing
26
27 EXTRA_DIST              = config.rpath \
28                           mkinstalldirs \
29                           bootstrap \
30                           scim.spec \
31                           intltool-extract.in \
32                           intltool-merge.in \
33                           intltool-update.in
34
35 AUTOMAKE_OPTIONS        = gnu
36 SUBDIRS                 = ism/src ism/utils ism/modules ism/configs po/scim ism/extras ism/data ism/demos
37
38 MAINTAINERCLEANFILES    = Makefile.in \
39                           aclocal.m4 \
40                           configure \
41                           config.h.in \
42                           $(AUX_DIST)
43
44 DISTCLEANFILES          = isf.pc scim.pc scim-gtkutils.pc intltool-extract intltool-merge intltool-update
45
46 CLEANFILES              = *.bak
47
48 ACLOCAL                 = aclocal -I $(ac_aux_dir)/ism
49
50 pkgconfigdir            = $(libdir)/pkgconfig
51
52 if SCIM_BUILD_GTK_UTILS
53 GTK_UTILS_PKGCONFIG     = scim-gtkutils.pc
54 endif
55
56 pkgconfig_DATA          = isf.pc scim.pc \
57                           $(GTK_UTILS_PKGCONFIG)
58
59 if ISF_BUILD_KBD_MODE_CHANGER
60 kbdmodechangerxmldir = @RO_PACKAGES_DIR@
61 kbdmodechangerxml_DATA = org.tizen.isf-kbd-mode-changer.xml
62 endif
63
64 if ISF_INSTALL_SYSTEMD_SCRIPT
65 SYSTEMD_SCRIPT = scim.service scim.path
66 endif
67 # $(libdir) will be /usr/lib64 on x86_64 arch, so hard-coded.
68 systemduserunitdir = /usr/lib/systemd/user
69 systemduserunit_DATA = $(SYSTEMD_SCRIPT)
70
71 ACLOCAL_AMFLAGS = -I ism/m4
72
73 .PHONY: update-ChangeLog
74
75 update-ChangeLog:
76         /bin/sh $(top_srcdir)/svn2cl.sh --authors=$(top_srcdir)/developers -f $(top_srcdir)/ChangeLog
77
78 uninstall-local:
79         rm -rf @SCIM_MODULE_PATH@
80
81 install-data-hook:
82 if ISF_INSTALL_SYSTEMD_SCRIPT
83         $(mkinstalldirs) $(DESTDIR)$(systemduserunitdir)/default.target.wants
84         ln -sf ../scim.path $(DESTDIR)$(systemduserunitdir)/default.target.wants/scim.path
85 endif