Archived
3
0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
libipc-old/docs/makefile

31 lines
926 B
Makefile

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
BDIR=build
clean:
@-rm -r $(BDIR) 2>/dev/null || true
generate:
@test -d $(BDIR) || mkdir $(BDIR)
@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"