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) (side-by-side diff) | |
tree | ddc28357fbe78b07fd3a5e0aa8088130bf305829 /src/Makefile.am | |
download | napkin-0.0.zip napkin-0.0.tar.gz napkin-0.0.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 @@ +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) |