summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 67a028ada5015cf118690dc483ae233fad35ac4d (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
## Makefile.am -- Process this file with automake to produce Makefile.in
## Copyright (C) 2002 James Su
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

AUX_DIST                = $(ac_aux_dir)/config.guess \
			$(ac_aux_dir)/config.sub \
			$(ac_aux_dir)/compile \
			$(ac_aux_dir)/depcomp \
			$(ac_aux_dir)/install-sh \
			$(ac_aux_dir)/ltconfig \
			$(ac_aux_dir)/ltmain.sh \
			$(ac_aux_dir)/missing

EXTRA_DIST		= config.rpath \
			  mkinstalldirs \
			  bootstrap \
			  scim.spec \
			  intltool-extract.in \
			  intltool-merge.in \
			  intltool-update.in

AUTOMAKE_OPTIONS 	= gnu
SUBDIRS 		= ism/src ism/utils ism/modules ism/configs po/scim ism/extras ism/data ism/demos

MAINTAINERCLEANFILES 	= Makefile.in \
			  aclocal.m4 \
			  configure \
			  config.h.in \
			  $(AUX_DIST)

DISTCLEANFILES		= isf.pc scim.pc scim-gtkutils.pc intltool-extract intltool-merge intltool-update

CLEANFILES		= *.bak

ACLOCAL			= aclocal -I $(ac_aux_dir)/ism

pkgconfigdir            = $(libdir)/pkgconfig

if SCIM_BUILD_GTK_UTILS
GTK_UTILS_PKGCONFIG     = scim-gtkutils.pc
endif

pkgconfig_DATA          = isf.pc scim.pc \
			  $(GTK_UTILS_PKGCONFIG)

if ISF_BUILD_KBD_MODE_CHANGER
kbdmodechangerxmldir = /usr/share/packages/
kbdmodechangerxml_DATA = org.tizen.isf-kbd-mode-changer.xml
endif

if ISF_INSTALL_SYSTEMD_SCRIPT
SYSTEMD_SCRIPT = scim.service scim.path
endif
# $(libdir) will be /usr/lib64 on x86_64 arch, so hard-coded.
systemduserunitdir = /usr/lib/systemd/user
systemduserunit_DATA = $(SYSTEMD_SCRIPT)

ACLOCAL_AMFLAGS = -I ism/m4

.PHONY: update-ChangeLog

update-ChangeLog:
	/bin/sh $(top_srcdir)/svn2cl.sh --authors=$(top_srcdir)/developers -f $(top_srcdir)/ChangeLog

uninstall-local:
	rm -rf @SCIM_MODULE_PATH@

install-data-hook:
if ISF_INSTALL_SYSTEMD_SCRIPT
	$(mkinstalldirs) $(DESTDIR)$(systemduserunitdir)/default.target.wants
	ln -sf ../scim.path $(DESTDIR)$(systemduserunitdir)/default.target.wants/scim.path
endif