blangfile(1)

This commit is contained in:
dtb 2022-12-09 21:34:03 -05:00
parent 6c659ee621
commit 6a90901f81
3 changed files with 6 additions and 3 deletions

View File

@ -7,8 +7,6 @@ all: $(TARGETS)
clean: clean:
$(RM) $(TARGETS) $(RM) $(TARGETS)
bin:
mkdir -p bin
build: build:
mkdir -p build mkdir -p build
@ -18,7 +16,7 @@ build/blang.o: build src/blang.c src/blang.h
build/ops.o: build src/blang.h src/ops.c src/ops.h build/ops.o: build src/blang.h src/ops.c src/ops.h
$(CC) -c -o $@ src/ops.c $(CC) -c -o $@ src/ops.c
bin/blang: bin build/blang.o build/ops.o bin/blang: build/blang.o build/ops.o
$(CC) $(CFLAGS) -o $@ build/*.o $(CC) $(CFLAGS) -o $@ build/*.o
.PHONY: all clean .PHONY: all clean

3
bin/blangfile Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
blang "$(cat "$@")"

View File

@ -0,0 +1,2 @@
<H><e><l><l><o><,>< ><w><o><r><l><d><!><
>^*