28 lines
320 B
Makefile
28 lines
320 B
Makefile
sourcefiles := $(shell find src/impl/ -name *.c)
|
|
|
|
|
|
all:
|
|
make build
|
|
|
|
build:
|
|
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
|