Man pages!

This commit is contained in:
bentley
2010-02-27 19:19:50 -07:00
parent 7293da9084
commit b53c945f05
5 changed files with 316 additions and 2 deletions

View File

@@ -2,8 +2,6 @@ localversion = $(shell sh scripts/localversion.sh)
CFLAGS+=-Wall -Iinclude -Iinclude/asm/gameboy -DLOCALVERSION=\"$(localversion)\" -g -std=c99 -D_POSIX_C_SOURCE=200112L
all:
yacc_pre := \
src/asm/yaccprt1.y\
src/asm/gameboy/yaccprt2.y\
@@ -48,6 +46,7 @@ clean:
rm -rf rgblink $(rgblink_obj)
rm -rf rgbfix $(rgbfix_obj)
rm -rf src/asm/asmy.c
rm -rf rgbasm.0 rgbfix.0 rgblib.0 rgblink.0
rgbasm: $(rgbasm_obj)
${CC} $(CFLAGS) -o $@ $(rgbasm_obj) -lm
@@ -69,3 +68,17 @@ src/asm/asmy.c: src/asm/asmy.y
src/asm/asmy.y: $(yacc_pre)
cat $(yacc_pre) > $@
man: rgbasm.0 rgbfix.0 rgblib.0 rgblink.0
rgbasm.0: man/rgbasm.1
nroff -mdoc man/rgbasm.1 > rgbasm.0
rgbfix.0: man/rgbfix.1
nroff -mdoc man/rgbfix.1 > rgbfix.0
rgblib.0: man/rgblib.1
nroff -mdoc man/rgblib.1 > rgblib.0
rgblink.0: man/rgblink.1
nroff -mdoc man/rgblink.1 > rgblink.0