This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-02-05 07:03:58 +01:00
|
|
|
all: get-point-tools clean generate display
|
|
|
|
|
|
|
|
BAGUETTE=https://git.baguette.netlib.re/Baguette
|
|
|
|
get-point-tools:
|
|
|
|
@test -d catpoint || (git clone $(BAGUETTE)/catpoint.git && cd catpoint && make)
|
|
|
|
@test -d pointtools || (git clone $(BAGUETTE)/pointtools.git && cd pointtools && make)
|
|
|
|
|
|
|
|
CATPOINT = $(PWD)/catpoint/catpoint
|
|
|
|
MD2POINT = $(PWD)/pointtools/bin/md2point
|
|
|
|
PRESENTATION = $(PWD)/libipc.md
|
|
|
|
|
2023-02-05 07:07:35 +01:00
|
|
|
BDIR=build
|
2023-02-05 07:03:58 +01:00
|
|
|
clean:
|
2023-02-05 07:07:35 +01:00
|
|
|
@-rm -r $(BDIR) 2>/dev/null || true
|
2023-02-05 07:03:58 +01:00
|
|
|
|
|
|
|
generate:
|
2023-02-05 07:07:35 +01:00
|
|
|
@test -d $(BDIR) || mkdir $(BDIR)
|
2023-02-05 07:03:58 +01:00
|
|
|
@cd $(BDIR) && (cat $(PRESENTATION) | $(MD2POINT))
|
|
|
|
|
|
|
|
display:
|
|
|
|
@cd $(BDIR) && $(CATPOINT) *.txt
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "get-point-tools: get all relevant point tools (catpoint and md2point)"
|
|
|
|
@echo
|
|
|
|
@echo "generate: convert markdown into 'point' documents"
|
|
|
|
@echo "display: run catpoint on all 'point' document"
|
|
|
|
@echo "clean: remove all 'point' files"
|
|
|
|
@echo
|
|
|
|
@echo "By default: get point tools, generate then display the presentation"
|