bf2c/Makefile

28 lines
312 B
Makefile

sourcefiles := $(shell find src/ -name *.c)
all:
make build-main
build-main:
mkdir -p dist/ && \
gcc -o dist/bf2c ${sourcefiles}
package:
./scripts/package-bf2c.sh
deb:
make clean && \
make all && \
make package
clean:
rm -rf dist/ && \
rm -rf package/
.PHONY: run
run:
cd ./dist/ && \
./bf2c