-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile.am
35 lines (29 loc) · 1017 Bytes
/
Makefile.am
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
bin_PROGRAMS = kterm
kterm_SOURCES = keyboard.c kterm.c parse_config.c parse_layout.c
if KINDLE
kterm_SOURCES += kindle.c
endif
ktermconfdir = $(sysconfdir)/kterm
ktermconf_DATA = kterm.conf
layoutsdir = $(ktermconfdir)/layouts
layouts_DATA = layouts/keyboard.xml
layoutsimgdir = $(layoutsdir)/img
layoutsimg_DATA = layouts/img/*.png
kterm_CFLAGS = @GTK_CFLAGS@ @VTE_CFLAGS@ @GDK_X11_CFLAGS@ @DBUS_CFLAGS@ -DSYSCONFDIR=\"$(sysconfdir)\"
kterm_LDADD = @GTK_LIBS@ @VTE_LIBS@ @GDK_X11_LIBS@ @DBUS_LIBS@
AM_CPPFLAGS = -pedantic -Wall -Wextra
kterm_pkg = $(abs_builddir)/kterm-kindle-$(VERSION).zip
dist-kindle: kterm
rm -f $(kterm_pkg)
KTERM_TMPDIR=`mktemp -d` \
&& mkdir $${KTERM_TMPDIR}/kterm \
&& cp -RL kindle.pkg/* $${KTERM_TMPDIR}/kterm \
&& cp kterm $${KTERM_TMPDIR}/kterm/bin \
&& cd $${KTERM_TMPDIR} \
&& sed -i'.bak' 's/@VER@/$(VERSION)/' kterm/config.xml \
&& rm kterm/config.xml.bak \
&& zip -qr $(kterm_pkg) kterm \
&& cd - \
&& rm -rf $${KTERM_TMPDIR}
distclean-local:
-rm -f $(kterm_pkg)