Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Restructuring the library to work as a more

lightweight drop-in library.
  • Loading branch information...
commit e74a31d2a3039edc100a7303137e8481776a4e23 1 parent 13ecf70
Hampton Catlin authored
View
68 Makefile
@@ -1,50 +1,30 @@
-SRC_DIR = src
-BIN_DIR = bin
-BUILD_DIR = build
-CPP_FILES = \
- $(SRC_DIR)/context.cpp \
- $(SRC_DIR)/functions.cpp \
- $(SRC_DIR)/document.cpp \
- $(SRC_DIR)/document_parser.cpp \
- $(SRC_DIR)/eval_apply.cpp \
- $(SRC_DIR)/node.cpp \
- $(SRC_DIR)/node_comparisons.cpp \
- $(SRC_DIR)/values.cpp \
- $(SRC_DIR)/prelexer.cpp
-
-sassc: sassc_obj libsass
- gcc -o $(BIN_DIR)/sassc $(BUILD_DIR)/sassc.o libsass.a -lstdc++
-sassc_obj: build_dir sassc.c
- gcc -c sassc.c
- mv *.o $(BUILD_DIR)
+CPP_FILES = \
+ context.cpp \
+ functions.cpp \
+ document.cpp \
+ document_parser.cpp \
+ eval_apply.cpp \
+ node.cpp \
+ node_comparisons.cpp \
+ values.cpp \
+ prelexer.cpp
libsass: libsass_objs
ar rvs libsass.a \
- $(BUILD_DIR)/sass_interface.o \
- $(BUILD_DIR)/context.o \
- $(BUILD_DIR)/functions.o \
- $(BUILD_DIR)/document.o \
- $(BUILD_DIR)/document_parser.o \
- $(BUILD_DIR)/eval_apply.o \
- $(BUILD_DIR)/node.o \
- $(BUILD_DIR)/node_comparisons.o \
- $(BUILD_DIR)/values.o \
- $(BUILD_DIR)/prelexer.o
-
-libsass_objs: build_dir $(SRC_DIR)/sass_interface.cpp $(CPP_FILES)
- g++ -c -combine $(SRC_DIR)/sass_interface.cpp $(CPP_FILES)
- mv *.o $(BUILD_DIR)/
-
-test: sassc
- ruby spec.rb spec/basic/
-
-test_all: sassc
- ruby spec.rb spec/
-
-build_dir:
- mkdir -p $(BUILD_DIR)
+ sass_interface.o \
+ context.o \
+ functions.o \
+ document.o \
+ document_parser.o \
+ eval_apply.o \
+ node.o \
+ node_comparisons.o \
+ values.o \
+ prelexer.o
+
+libsass_objs: sass_interface.cpp $(CPP_FILES)
+ g++ -c -combine sass_interface.cpp $(CPP_FILES)
clean:
- rm -rf *.o build/*.o *.a
- rm -rf bin/*
+ rm -rf *.o *.a
View
0  src/context.cpp → context.cpp
File renamed without changes
View
0  src/context.hpp → context.hpp
File renamed without changes
View
0  src/document.cpp → document.cpp
File renamed without changes
View
0  src/document.hpp → document.hpp
File renamed without changes
View
0  src/document_parser.cpp → document_parser.cpp
File renamed without changes
View
0  src/error.hpp → error.hpp
File renamed without changes
View
0  src/eval_apply.cpp → eval_apply.cpp
File renamed without changes
View
0  src/eval_apply.hpp → eval_apply.hpp
File renamed without changes
View
0  src/extconf.rb → extconf.rb
File renamed without changes
View
0  src/functions.cpp → functions.cpp
File renamed without changes
View
0  src/functions.hpp → functions.hpp
File renamed without changes
View
0  src/node.cpp → node.cpp
File renamed without changes
View
0  src/node.hpp → node.hpp
File renamed without changes
View
0  src/node_comparisons.cpp → node_comparisons.cpp
File renamed without changes
View
0  src/prelexer.cpp → prelexer.cpp
File renamed without changes
View
0  src/prelexer.hpp → prelexer.hpp
File renamed without changes
View
0  src/sass_interface.cpp → sass_interface.cpp
File renamed without changes
View
0  src/sass_interface.h → sass_interface.h
File renamed without changes
View
0  src/values.cpp → values.cpp
File renamed without changes
View
0  src/values.hpp → values.hpp
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.