gitignore and makefile fix
This commit is contained in:
parent
233a709756
commit
f18966ec46
2 changed files with 4 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1,3 @@
|
||||||
rush
|
rush
|
||||||
|
*.o
|
||||||
|
*.tar.gz
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -4,7 +4,7 @@ VERSION = 0.1
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = ${PREFIX}/share/man
|
MANPREFIX = ${PREFIX}/share/man
|
||||||
|
|
||||||
CFLAGS = -std=c99 -O0 -Wall -DVERSION=\"${VERSION}\"
|
CFLAGS = -std=gnu11 -O0 -Wall -DVERSION=\"${VERSION}\"
|
||||||
|
|
||||||
SRC = rush.c color.c constants.h history.c commands.c
|
SRC = rush.c color.c constants.h history.c commands.c
|
||||||
OBJ = ${SRC:.c=.o}
|
OBJ = ${SRC:.c=.o}
|
||||||
|
@ -30,6 +30,7 @@ install: all
|
||||||
cp -f rush ${DESTDIR}${PREFIX}/bin
|
cp -f rush ${DESTDIR}${PREFIX}/bin
|
||||||
chmod 755 ${DESTDIR}${PREFIX}/bin/rush
|
chmod 755 ${DESTDIR}${PREFIX}/bin/rush
|
||||||
mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
||||||
|
cp -f rush.1 ${DESTDIR}${MANPREFIX}/man1
|
||||||
chmod 644 ${DESTDIR}${MANPREFIX}/man1/rush.1
|
chmod 644 ${DESTDIR}${MANPREFIX}/man1/rush.1
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
|
Loading…
Reference in a new issue