From f18966ec461a7bc229eb5a16144a01920dc0239b Mon Sep 17 00:00:00 2001 From: night0721 Date: Tue, 6 Feb 2024 18:56:42 +0000 Subject: [PATCH] gitignore and makefile fix --- .gitignore | 2 ++ Makefile | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4ae2004..3e1d081 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ rush +*.o +*.tar.gz diff --git a/Makefile b/Makefile index 6abe9d2..63fb0e3 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ VERSION = 0.1 PREFIX = /usr/local 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 OBJ = ${SRC:.c=.o} @@ -30,6 +30,7 @@ install: all cp -f rush ${DESTDIR}${PREFIX}/bin chmod 755 ${DESTDIR}${PREFIX}/bin/rush mkdir -p ${DESTDIR}${MANPREFIX}/man1 + cp -f rush.1 ${DESTDIR}${MANPREFIX}/man1 chmod 644 ${DESTDIR}${MANPREFIX}/man1/rush.1 uninstall: