26 lines
570 B
Makefile
26 lines
570 B
Makefile
.PHONY: build/peachy.com
|
|
build/peachy.com: build/redbean-2.2.com
|
|
cp build/redbean-2.2.com build/peachy-noassets.com
|
|
cd assets ; zip -r ../build/peachy-noassets.com . ; cd ..
|
|
mv build/peachy-noassets.com build/peachy.com
|
|
|
|
.PHONY: run
|
|
run: build/peachy.com
|
|
build/peachy.com
|
|
|
|
.PHONY: test
|
|
test: build/peachy.com
|
|
build/peachy.com -F tests/main.lua
|
|
|
|
build/redbean-2.2.com:
|
|
wget --directory-prefix build https://redbean.dev/redbean-2.2.com
|
|
chmod a+x build/redbean-2.2.com
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm build/peachy*
|
|
|
|
.PHONY: clean-redbean
|
|
clean-redbean:
|
|
rm build/redbean*
|