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

30 lines
892 B
Makefile
Raw Normal View History

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=tmp
clean:
@-rm $(BDIR)/*.txt 2>/dev/null || true
generate:
@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"