blob: 1fdae31480a394ed006e314de29e39cf4fb213e9 (
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
|
bin_PROGRAMS = napkin
AM_CXXFLAGS = ${MODULES_CFLAGS} -I${top_srcdir}/include/ -I${srcdir}
LIBS = ${MODULES_LIBS} \
${top_builddir}/lib/libnapkin.la
noinst_HEADERS = sqlite.h db.h \
sleep_timeline.h \
widgets.h dialogs.h \
sleep_history.h
napkin_SOURCES = napkin.cc \
db.cc \
sleep_timeline.cc \
widgets.cc dialogs.cc \
sleep_history.cc \
schema.cc COPYING.cc
napkin_DEPENDENCIES = \
${top_builddir}/lib/libnapkin.la
EXTRA_DIST = schema.sql
schema.cc: schema.sql
(\
echo 'namespace napkin{const char *sql_bootstrap=' &&\
sed -e 's/^\s\+//' -e 's/\s*--.*$$//' -e 's/^/"/' -e 's/$$/"/' $< &&\
echo ';}'\
) >$@
COPYING.cc: ${top_srcdir}/COPYING
echo "const char * COPYING =" >$@ || (rm $@;exit 1)
sed 's/"/\\"/g' $< | sed 's/^/\"/' | sed 's/$$/\\n\"/' >>$@ || (rm $@;exit 1)
echo ";" >>$@ || (rm $@;exit 1)
|