diff --git a/Makefile.am b/Makefile.am index 64efcec..bdac059 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,9 +4,6 @@ SUBDIRS = src test bin example EXTRA_DIST = README.md support -dist-hook: - mv $(distdir)/README.md $(distdir)/README - sign-dist: dist gpg -a --output $(distdir).tar.gz.sig --detach-sig $(distdir).tar.gz diff --git a/bin/runtests.in b/bin/runtests.in index 5afef81..ae13e51 100644 --- a/bin/runtests.in +++ b/bin/runtests.in @@ -7,4 +7,4 @@ if [ $# -eq 0 ]; then fi export ABS_TOP_SRCDIR="@abs_top_srcdir@"; -DYLD_LIBRARY_PATH=@abs_top_builddir@/src @GUILE@ -L @abs_top_builddir@/src -L @abs_top_srcdir@/src -L @abs_top_srcdir@/support/scheme -l @abs_top_builddir@/src/line-pragma.scm "$@"; +DYLD_LIBRARY_PATH=@abs_top_builddir@/src @GUILE@ -L @abs_top_builddir@/src -L @abs_top_srcdir@/src -L @abs_top_srcdir@/support/scheme -l @abs_top_srcdir@/src/line-pragma.scm "$@"; diff --git a/configure.ac b/configure.ac index e465e94..12c9b77 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,8 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.63]) -AC_INIT([emacsy], [0.1], [shane.celis@gmail.com]) +# We'll try to use semantic versioning. http://semver.org +AC_INIT([emacsy], [0.1.0], [shane.celis@gmail.com]) AC_CONFIG_AUX_DIR([support/build-aux]) # Lies. #AM_INIT_GUILE_MODULE @@ -94,14 +95,23 @@ AC_CONFIG_FILES([ Makefile support/pkg-config/emacsy.pc support/pkg-config/not-installed/emacsy.pc example/Makefile - ], [chmod +x bin/runtests]) + ], [chmod +x bin/runtests test/print-install.sh test/works-without-noweb.sh test/dummy.sh]) dnl We can point the example to the build directory. dnl export EMACSY_CFLAGS="-I${ac_abs_top_builddir}/src/emacsy" dnl export EMACSY_LIBS="-L${ac_abs_top_builddir}/src/emacsy/.libs" dnl Autotools are impossible to love. -export EMACSY_CFLAGS="-I`pwd`/src/emacsy" -export EMACSY_LIBS="-L`pwd`/src/emacsy/.libs -lemacsy" -export EMACSY_MODULE="`pwd`/src" +if test -f configure; then + abs_top_srcdir="`pwd`"; + abs_top_builddir="`pwd`"; +elif test -f ../configure; then + abs_top_srcdir="`pwd`/.."; + abs_top_builddir="`pwd`"; +else + AC_MSG_ERROR([Can't detect src and build directories.]) +fi +export EMACSY_CFLAGS="-I${abs_top_srcdir}/src/emacsy" +export EMACSY_LIBS="-L${abs_top_builddir}/src/emacsy/.libs -lemacsy" +export EMACSY_MODULE="${abs_top_srcdir}/src" AC_CONFIG_SUBDIRS([example/hello-emacsy]) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index 1ee5eb7..0472587 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,6 +7,6 @@ NOWEB_FILES = line-pragma.nw NOWEB_PRODUCTS = line-pragma.scm CLEANFILES = BUILT_SOURCES = -EXTRA_DIST = +EXTRA_DIST = convenience-lambda.scm include $(top_srcdir)/support/automake/noweb.am diff --git a/src/emacsy/Makefile.am b/src/emacsy/Makefile.am index 5a06827..9ddea89 100644 --- a/src/emacsy/Makefile.am +++ b/src/emacsy/Makefile.am @@ -11,7 +11,7 @@ NOWEB_DOCS = emacsy.pdf # #NOWEB_DOCS = command-paper.pdf -EXTRA_DIST = $(NOWEB_DOCS) +EXTRA_DIST = $(NOWEB_DOCS) $(SCHEME_TESTS) NOWEB_FILES = emacsy.nw emacsy-c-api.nw windows.nw event.nw util.nw \ keymap.nw command.nw buffer.nw block.nw klecl.nw \ @@ -78,6 +78,6 @@ preview-local: $(NOWEB_DOCS) open -a Skim.app $^ || open -a Preview.app $^ dist-hook: - mv $(distdir)/*.pdf $(top_distdir) + cp $(distdir)/*.pdf $(top_distdir) diff --git a/test/Makefile.am b/test/Makefile.am index 3f7d4f0..c9d7523 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,7 +1,7 @@ #TESTS_ENVIRONMENT = /bin/bash -x TEST_EXTENSIONS = .sh SH_LOG_COMPILER = /bin/bash -x - +EXTRA_DIST = minibuffer-test-dir dummy.sh TESTS=works-without-noweb.sh print-install.sh dummy.sh diff --git a/test/dummy.sh b/test/dummy.sh old mode 100644 new mode 100755