ascii-game/Makefile
Daniel Knuettel b4d8720b93 added docs
2017-03-09 16:39:46 +01:00

35 lines
500 B
Makefile

CC=gcc
CFLAG= -O -g -o
alldoc=python3 $(PWD)/.bin/alldoc
objects=main.o\
playfield.o\
input_output.o
headers=conf.h\
playfield.h\
input_output.h
all:main
%.o:%.c
$(CC) -c $(CFLAG) $@ $<
main: clean $(objects)
$(CC) $(objects) $(CFLAG) main
clean:
rm $(objects) || true
doc.rst:$(headers) README.rst
$(alldoc) doc.rst.tmp $(headers)
printf "Documentation\n_____________\n\n" > doc.rst
cat README.rst >> doc.rst
cat doc.rst.tmp >> doc.rst
rm doc.rst.tmp
doc.pdf:
rst2pdf doc.rst