Skip to content

Instantly share code, notes, and snippets.

@ryanfb
Created August 6, 2009 02:53
Show Gist options
  • Select an option

  • Save ryanfb/163095 to your computer and use it in GitHub Desktop.

Select an option

Save ryanfb/163095 to your computer and use it in GitHub Desktop.
BUILD := data/static
SOURCE := $(BUILD)/src
INCLUDES := $(SOURCE) $(SOURCE)/alice $(SOURCE)/scriptaculous
INCLUDE := $(foreach dir,$(INCLUDES),-I $(dir))
JAVASCRIPT_SOURCES := $(foreach dir,$(INCLUDES),$(wildcard $(dir)/*.js))
SITE_JS := $(BUILD)/site.js
ALICE_JS := $(SOURCE)/alice/alice.js
all: $(SITE_JS)
$(SITE_JS): $(JAVASCRIPT_SOURCES)
sprocketize $(INCLUDE) $(ALICE_JS) > $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment