Skip to content
Browse files

Initial import of project structure.

  • Loading branch information...
1 parent e983124 commit 3a76d974b9011618b64490c679bf7e7103d762f6 Brandon R. Stoner committed Jun 20, 2012
Showing with 53 additions and 0 deletions.
  1. +11 −0 .gitignore
  2. +7 −0 Makefile
  3. +34 −0 src/Makefile
  4. +1 −0 src/main.coffee
View
11 .gitignore
@@ -1,3 +1,7 @@
+# Javascript (generated by make)
+*.js
+
+# Python cache/object files
*.py[co]
# Packages
@@ -25,3 +29,10 @@ pip-log.txt
#Mr Developer
.mr.developer.cfg
+
+# Hidden files that aren't git-related
+.*
+!.gitslave
+!.gitignore
+!.gitmodules
+
View
7 Makefile
@@ -0,0 +1,7 @@
+all:
+ ${MAKE} -C src
+
+clean:
+ ${MAKE} clean -C src
+
+.PHONY: all clean
View
34 src/Makefile
@@ -0,0 +1,34 @@
+CC=coffee
+CONCAT=cat
+MINIFIER=uglifyjs
+
+append_extension = $1.$2
+
+output_directory = $(CURDIR)/../tastybone/static/scripts
+base_filename = $(output_directory)/tastybone
+
+output_filename = $(call append_extension,$(base_filename),js)
+output_filename_minified = $(call append_extension,$(base_filename),min.js)
+
+objects = main.js
+
+all: $(output_filename_minified)
+
+$(output_filename_minified): $(output_filename)
+ ${MINIFIER} ${output_filename} > ${output_filename_minified}
+
+$(output_filename): $(objects) $(output_directory)
+ $(CONCAT) $(objects) > $(output_filename)
+
+$(objects): %.js: %.coffee
+ coffee -c $<
+
+$(output_directory):
+ mkdir -p $@
+
+clean:
+ -rm -f $(output_filename) $(output_filename_minified)
+ -rm -f $(objects)
+
+.PHONY: all clean
+
View
1 src/main.coffee
@@ -0,0 +1 @@
+

0 comments on commit 3a76d97

Please sign in to comment.
Something went wrong with that request. Please try again.