Add an install target.

This commit is contained in:
Anthony J. Bentley
2010-12-22 14:38:45 -07:00
parent b9f92536a9
commit 6f46058e21
2 changed files with 25 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
CFLAGS += -Wall -Iinclude -Iinclude/asm/gameboy -g -std=c99 \ CFLAGS += -Wall -Iinclude -Iinclude/asm/gameboy -g -std=c99 \
-D_POSIX_C_SOURCE=200112L -D_POSIX_C_SOURCE=200112L
PREFIX ?= /usr/local
yacc_pre := \ yacc_pre := \
src/asm/yaccprt1.y\ src/asm/yaccprt1.y\
@@ -46,6 +47,20 @@ clean:
@rm -rf rgbfix $(rgbfix_obj) @rm -rf rgbfix $(rgbfix_obj)
@rm -rf src/asm/asmy.c @rm -rf src/asm/asmy.c
install: all
@install -s -o root -g bin -m 555 rgbasm ${PREFIX}/bin/rgbasm
@install -s -o root -g bin -m 555 rgbfix ${PREFIX}/bin/rgbfix
@install -s -o root -g bin -m 555 rgblink ${PREFIX}/bin/rgblink
@install -s -o root -g bin -m 555 rgblib ${PREFIX}/bin/rgblib
@install -o root -g bin -m 444 src/asm/rgbasm.1 \
${PREFIX}/man/cat1/rgbasm.1
@install -o root -g bin -m 444 src/fix/rgbfix.1 \
${PREFIX}/man/cat1/rgbfix.1
@install -o root -g bin -m 444 src/link/rgblink.1 \
${PREFIX}/man/cat1/rgblink.1
@install -o root -g bin -m 444 src/lib/rgblib.1 \
${PREFIX}/man/cat1/rgblib.1
rgbasm: $(rgbasm_obj) rgbasm: $(rgbasm_obj)
@${CC} $(CFLAGS) -o $@ $(rgbasm_obj) -lm @${CC} $(CFLAGS) -o $@ $(rgbasm_obj) -lm

14
README
View File

@@ -14,14 +14,20 @@ rgbds-linux is a fork of the original RGBDS which aims to make the programs
more like other UNIX tools. more like other UNIX tools.
Building RGBDS Installing RGBDS
================ ==================
To build the programs on a UNIX or UNIX-like system, just run in your terminal: To build the programs on a UNIX or UNIX-like system, just run in your terminal:
make make
There is no install target -- just copy the binaries (rgbasm, rgbfix, rgblib, Then to install the compiled programs and manual pages, run (with appropriate
and rgblink) to a folder in your $PATH. privileges):
make install
You can read the manuals with the man(1) command. E.g.,
man 1 rgbasm
There are no Windows installation instructions at this time. There are no Windows installation instructions at this time.