add makros as a submodule

This commit is contained in:
opfez 2022-02-04 18:07:32 +01:00
parent afcfddf5e6
commit c155656270
5 changed files with 12 additions and 2 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "makros"]
path = makros
url = https://tildegit.org/opfez/makros

View File

@ -1,12 +1,16 @@
CFLAGS = -Wall -Wextra -Werror -std=c99 -pedantic
FORMAT = ./format
MAKROS = ./makros/makros
default: gen
$(FORMAT): format.c
$(CC) $(CFLAGS) $< -o $@
gen: $(FORMAT) site-src/*
$(MAKROS): makros/makros.c
cd makros && make
gen: $(FORMAT) $(MAKROS) site-src/*
./gen.sh
.PHONY: clean

View File

@ -3,6 +3,8 @@ Writan:
Pages:
- Add a category theory page (more general, math).
- A page about APL (and trains), different combinators could be cool.
Orphan pages:
- Emacs
- Netbpm

2
gen.sh
View File

@ -1,7 +1,7 @@
#!/bin/sh
# makros binary
MAKROS=./makros
MAKROS=./makros/makros
if ! find $MAKROS 2>/dev/null >/dev/null; then
echo "couldn't find the makros binary"

1
makros Submodule

@ -0,0 +1 @@
Subproject commit 2992b0e0f987e39dbf578d5c180ce8d62dc6cb50