Skip to content

Commit

Permalink
Fix make dist target
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Dec 12, 2014
1 parent a6b58f4 commit 48eb5eb
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 71 deletions.
135 changes: 76 additions & 59 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,73 @@ AM_CXXFLAGS += -DLIBSASS_VERSION="\"$(LIBSASS_VERSION)\""
AM_CXXFLAGS += -std=c++0x

if ENABLE_COVERAGE
AM_CFLAGS += -O0 --coverage
AM_CXXFLAGS += -O0 --coverage
AM_LDFLAGS += -O0 --coverage -lgcov
AM_CFLAGS += -O0 --coverage
AM_CXXFLAGS += -O0 --coverage
AM_LDFLAGS += -O0 --coverage -lgcov
else
AM_CFLAGS += -O2
AM_CXXFLAGS += -O2
AM_LDFLAGS += -O2
AM_CFLAGS += -O2
AM_CXXFLAGS += -O2
AM_LDFLAGS += -O2
endif

VERSION = $(LIBSASS_VERSION)

EXTRA_DIST = \
COPYING \
INSTALL \
LICENSE \
Readme.md

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = support/libsass.pc

lib_LTLIBRARIES = libsass.la

libsass_la_SOURCES = \
cencode.c \
ast.cpp \
base64vlq.cpp \
bind.cpp \
constants.cpp \
context.cpp \
contextualize.cpp \
copy_c_str.cpp \
error_handling.cpp \
eval.cpp \
expand.cpp \
extend.cpp \
file.cpp \
functions.cpp \
inspect.cpp \
node.cpp \
json.cpp \
output_compressed.cpp \
output_nested.cpp \
parser.cpp \
prelexer.cpp \
remove_placeholders.cpp \
sass.cpp \
sass_util.cpp \
sass_values.cpp \
sass_context.cpp \
sass_functions.cpp \
sass_interface.cpp \
sass2scss.cpp \
source_map.cpp \
to_c.cpp \
to_string.cpp \
units.cpp \
utf8_string.cpp \
util.cpp
ast_fwd_decl.hpp ast_def_macros.hpp \
kwd_arg_macros.hpp memory_manager.hpp \
position.hpp operation.hpp \
subset_map.hpp mapping.hpp \
color_names.hpp backtrace.hpp \
cencode.c b64/cencode.h b64/encode.h \
token.hpp environment.hpp \
paths.hpp debug.hpp \
utf8.h utf8/core.h \
utf8/checked.h utf8/unchecked.h \
ast.cpp ast.hpp \
base64vlq.cpp base64vlq.hpp \
bind.cpp bind.hpp \
constants.cpp constants.hpp \
context.cpp context.hpp \
contextualize.cpp contextualize.hpp \
copy_c_str.cpp copy_c_str.hpp \
error_handling.cpp error_handling.hpp \
eval.cpp eval.hpp \
expand.cpp expand.hpp \
extend.cpp extend.hpp \
file.cpp file.hpp \
functions.cpp functions.hpp \
inspect.cpp inspect.hpp \
node.cpp node.hpp \
json.cpp json.hpp \
output_compressed.cpp output_compressed.hpp \
output_nested.cpp output_nested.hpp \
parser.cpp parser.hpp \
prelexer.cpp prelexer.hpp \
remove_placeholders.cpp remove_placeholders.hpp \
sass.cpp sass.h \
sass_util.cpp sass_util.hpp \
sass_values.cpp sass_values.h \
sass_context.cpp sass_context.h \
sass_functions.cpp sass_functions.h \
sass_interface.cpp sass_interface.h \
sass2scss.cpp sass2scss.h \
source_map.cpp source_map.hpp \
to_c.cpp to_c.hpp \
to_string.cpp to_string.hpp \
units.cpp units.hpp \
utf8_string.cpp utf8_string.hpp \
util.cpp util.hpp

libsass_la_CFLAGS = $(AM_CFLAGS)
libsass_la_CXXFLAGS = $(AM_CXXFLAGS)
Expand All @@ -85,29 +102,29 @@ SASS_SASSC_PATH ?= sassc
SASS_SPEC_PATH ?= sass-spec
SASSC_BIN = $(SASS_SASSC_PATH)/bin/sassc

TESTS = $(SASS_SPEC_PATH)/spec/basic \
$(SASS_SPEC_PATH)/spec/css \
$(SASS_SPEC_PATH)/spec/extend-tests \
$(SASS_SPEC_PATH)/spec/extends \
$(SASS_SPEC_PATH)/spec/libsass \
$(SASS_SPEC_PATH)/spec/libsass-closed-issues \
$(SASS_SPEC_PATH)/spec/maps \
$(SASS_SPEC_PATH)/spec/misc \
$(SASS_SPEC_PATH)/spec/regressions \
$(SASS_SPEC_PATH)/spec/scss \
$(SASS_SPEC_PATH)/spec/scss-tests \
$(SASS_SPEC_PATH)/spec/types
TESTS = \
$(SASS_SPEC_PATH)/spec/basic \
$(SASS_SPEC_PATH)/spec/css \
$(SASS_SPEC_PATH)/spec/extend-tests \
$(SASS_SPEC_PATH)/spec/extends \
$(SASS_SPEC_PATH)/spec/libsass \
$(SASS_SPEC_PATH)/spec/libsass-closed-issues \
$(SASS_SPEC_PATH)/spec/maps \
$(SASS_SPEC_PATH)/spec/misc \
$(SASS_SPEC_PATH)/spec/regressions \
$(SASS_SPEC_PATH)/spec/scss \
$(SASS_SPEC_PATH)/spec/scss-tests \
$(SASS_SPEC_PATH)/spec/types

SASS_TEST_FLAGS =
LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) ./scripts/tap-driver
LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) ./script/tap-driver
AM_LOG_FLAGS = -c ./sassc_bin --ignore-todo $(LOG_FLAGS)
if USE_TAP
AM_LOG_FLAGS += -t
SASS_TEST_FLAGS += -t | tapout
# route everything throught the tap runner to produce tap output
LOG_COMPILER = ./scripts/tap-runner $(RUBY) $(SASS_SPEC_PATH)/sass-spec.rb
AM_LOG_FLAGS += -t
SASS_TEST_FLAGS += -t | tapout
LOG_COMPILER = ./script/tap-runner $(RUBY) $(SASS_SPEC_PATH)/sass-spec.rb
else
LOG_COMPILER = $(RUBY) $(SASS_SPEC_PATH)/sass-spec.rb
LOG_COMPILER = $(RUBY) $(SASS_SPEC_PATH)/sass-spec.rb
endif

$(SASSC_BIN): libsass.la
Expand Down
19 changes: 7 additions & 12 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.61])
AC_INIT([libsass], [1.0], [[email protected]])
AC_INIT([libsass], [3.0.3], [[email protected]])
AC_CONFIG_SRCDIR([ast.hpp])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([script])
AM_INIT_AUTOMAKE([1.10 foreign parallel-tests])
AM_INIT_AUTOMAKE([foreign parallel-tests])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([no])])
LT_INIT

Expand Down Expand Up @@ -110,18 +110,13 @@ AC_ARG_VAR(LIBSASS_VERSION, libsass version)
if test "x$LIBSASS_VERSION" = "x"; then
AC_CHECK_PROG(GIT, git, git)
if test "x$GIT" = "x"; then
AC_MSG_ERROR([Unable to find git binary to query version.
You can solve this by setting LIBSASS_VERSION:
# export LIBSASS_VERSION="x.y.z"
])
LIBSASS_VERSION=$VERSION
else
AC_CHECK_FILE(.git/config, [], [
AC_MSG_ERROR([Unable to find .git directory to query version.
You can solve this by setting LIBSASS_VERSION:
# export LIBSASS_VERSION="x.y.z"
])
AC_CHECK_FILE(.git/config, [
LIBSASS_VERSION=`$GIT describe --abbrev=4 --dirty --always --tags`
], [
LIBSASS_VERSION=$VERSION
])
LIBSASS_VERSION=`$GIT describe --abbrev=4 --dirty --always --tags`
fi
if test "x$LIBSASS_VERSION" = "x"; then
AC_MSG_ERROR([LIBSASS_VERSION not defined.
Expand Down

0 comments on commit 48eb5eb

Please sign in to comment.