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