author | Michael Krelin <hacker@klever.net> | 2008-04-05 11:17:33 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-04-05 11:17:33 (UTC) |
commit | 04fb190243442e83349f129b523ab747e58100bf (patch) (unidiff) | |
tree | ddc28357fbe78b07fd3a5e0aa8088130bf305829 /src/Makefile.am | |
download | napkin-04fb190243442e83349f129b523ab747e58100bf.zip napkin-04fb190243442e83349f129b523ab747e58100bf.tar.gz napkin-04fb190243442e83349f129b523ab747e58100bf.tar.bz2 |
Initial commit into public repository0.0
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | src/Makefile.am | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..1fdae31 --- a/dev/null +++ b/src/Makefile.am | |||
@@ -0,0 +1,32 @@ | |||
1 | bin_PROGRAMS = napkin | ||
2 | |||
3 | AM_CXXFLAGS = ${MODULES_CFLAGS} -I${top_srcdir}/include/ -I${srcdir} | ||
4 | LIBS = ${MODULES_LIBS} \ | ||
5 | ${top_builddir}/lib/libnapkin.la | ||
6 | |||
7 | noinst_HEADERS = sqlite.h db.h \ | ||
8 | sleep_timeline.h \ | ||
9 | widgets.h dialogs.h \ | ||
10 | sleep_history.h | ||
11 | |||
12 | napkin_SOURCES = napkin.cc \ | ||
13 | db.cc \ | ||
14 | sleep_timeline.cc \ | ||
15 | widgets.cc dialogs.cc \ | ||
16 | sleep_history.cc \ | ||
17 | schema.cc COPYING.cc | ||
18 | napkin_DEPENDENCIES = \ | ||
19 | ${top_builddir}/lib/libnapkin.la | ||
20 | |||
21 | EXTRA_DIST = schema.sql | ||
22 | |||
23 | schema.cc: schema.sql | ||
24 | (\ | ||
25 | echo 'namespace napkin{const char *sql_bootstrap=' &&\ | ||
26 | sed -e 's/^\s\+//' -e 's/\s*--.*$$//' -e 's/^/"/' -e 's/$$/"/' $< &&\ | ||
27 | echo ';}'\ | ||
28 | ) >$@ | ||
29 | COPYING.cc: ${top_srcdir}/COPYING | ||
30 | echo "const char * COPYING =" >$@ || (rm $@;exit 1) | ||
31 | sed 's/"/\\"/g' $< | sed 's/^/\"/' | sed 's/$$/\\n\"/' >>$@ || (rm $@;exit 1) | ||
32 | echo ";" >>$@ || (rm $@;exit 1) | ||