sourcefiles := $(shell find src/impl/ -name *.c) all: make build-main build-main: mkdir -p dist/ && \ gcc -o dist/bf2c -I src/intf/ ${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