Made the Makefile more generic and .gitignore update.

This commit is contained in:
Johannes Findeisen 2025-01-01 10:59:44 +01:00
commit 5e80936967
2 changed files with 8 additions and 6 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
checkpw
checkpw.o
checkpw.1.gz

View file

@ -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