Made the Makefile more generic and .gitignore update.
This commit is contained in:
parent
bd2ac5b829
commit
5e80936967
2 changed files with 8 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
checkpw
|
||||
checkpw.o
|
||||
checkpw.1.gz
|
||||
|
|
|
|||
13
Makefile
13
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue