From 5e80936967a4332174017cd71bf2fda7333e39fe Mon Sep 17 00:00:00 2001 From: hanez Date: Wed, 1 Jan 2025 10:59:44 +0100 Subject: [PATCH] Made the Makefile more generic and .gitignore update. --- .gitignore | 1 + Makefile | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 73aa35c..be30294 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ checkpw checkpw.o +checkpw.1.gz diff --git a/Makefile b/Makefile index f6b9a65..17a7074 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,18 @@ all: - $(CC) -Wall -o checkpw checkpw.c -lpam -lpam_misc + $(CC) -Wall -o ./checkpw ./checkpw.c -lpam -lpam_misc + gzip -fk ./checkpw.1 clean: rm -f ./checkpw + rm -f ./checkpw.1.gz install: - cp ./checkpw /usr/bin/ - install -g 0 -o 0 -m 0644 ./checkpw.1 /usr/share/man/man1/ - gzip -f /usr/share/man/man1/checkpw.1 - cp ./checkpw.h /usr/include/ + install -g 0 -o 0 -m 0655 ./checkpw /usr/bin/ + install -g 0 -o 0 -m 0644 ./checkpw.h /usr/include/ + install -g 0 -o 0 -m 0644 ./checkpw.1.gz /usr/share/man/man1/ uninstall: rm -f /usr/bin/checkpw - rm -f /usr/share/man/man1/checkpw.1.gz rm -f /usr/include/checkpw.h + rm -f /usr/share/man/man1/checkpw.1.gz