Sha256: 1ead373e427e24d395ce2739f161ef1165bde0295120c17dfb2a92fa85067225

Contents?: true

Size: 1.86 KB

Versions: 2

Compression:

Stored size: 1.86 KB

Contents

BROWSERIFY = node ./node_modules/browserify/bin/cmd.js
WIPS_CURRENT = node ./bin/wisp.js
FLAGS =

ifdef verbose
	FLAGS = --verbose
endif

ifdef current
	WISP = $(WIPS_CURRENT)
else
	WISP = ./node_modules/wisp/bin/wisp.js
endif

core: runtime sequence string ast reader compiler writer
node: core wisp node-engine repl
browser: core embed browser-engine browserify
all: node browser
test: test1

test1:
	$(WIPS_CURRENT) ./test/test.wisp $(FLAGS)

clean:
	rm -rf engine
	rm -rf backend
	touch null.js
	rm *.js

repl:
	cat ./src/repl.wisp | $(WISP) > ./repl.js

reader:
	cat ./src/reader.wisp | $(WISP) > ./reader.js

compiler:
	cat ./src/compiler.wisp | $(WISP) > ./compiler.js

writer:
	mkdir -p ./backend/javascript/
	cat ./src/backend/javascript/writer.wisp | $(WISP) > ./backend/javascript/writer.js

runtime:
	cat ./src/runtime.wisp | $(WISP) > ./runtime.js

sequence:
	cat ./src/sequence.wisp | $(WISP) > ./sequence.js

string:
	cat ./src/string.wisp | $(WISP) > ./string.js

ast:
	cat ./src/ast.wisp | $(WISP) > ./ast.js

wisp:
	cat ./src/wisp.wisp | $(WISP) > ./wisp.js

node-engine:
	mkdir -p ./engine/
	cat ./src/engine/node.wisp | $(WISP) > ./engine/node.js

browser-engine:
	mkdir -p ./engine/
	cat ./src/engine/browser.wisp | $(WISP) > ./engine/browser.js

embed:
	cat ./support/embed.wisp | $(WISP) > ./embed.js && mv ./embed.js ./support/embed.js

browserify:
	$(BROWSERIFY) --debug \
                --require ./sequence:wisp/sequence \
                --require ./string:wisp/string \
                --require ./reader:wisp/reader \
                --require ./ast:wisp/ast \
                --require ./reader:wisp/reader \
                --require ./compiler:wisp/compiler \
                --require ./runtime:wisp/runtime \
                --require ./engine/browser:wisp/engine/browser \
                --exports require \
                --entry ./support/embed.js > ./support/app.js

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
ruby-wisp-source-0.7.0 vendor/node_modules/wisp/Makefile
ruby-wisp-source-0.7.0 vendor/try/node_modules/~wisp/Makefile