mirror of
https://git.sr.ht/~sircmpwn/mkproof
synced 2024-11-23 13:12:00 +01:00
Add install and uninstall targets
This commit is contained in:
parent
c49aff35e3
commit
c8de2d8da2
14
Makefile
14
Makefile
@ -44,6 +44,18 @@ clean:
|
||||
distclean: clean
|
||||
@rm -rf "$(OUTDIR)"
|
||||
|
||||
install:
|
||||
install: all install_docs
|
||||
mkdir -p $(DESTDIR)$(BINDIR)
|
||||
install -m755 mkchallenge $(DESTDIR)$(BINDIR)/mkchallenge
|
||||
install -m755 mkproof $(DESTDIR)$(BINDIR)/mkproof
|
||||
install -m755 checkproof $(DESTDIR)$(BINDIR)/checkproof
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(BINDIR)/mkchallenge
|
||||
rm -f $(DESTDIR)$(BINDIR)/mkproof
|
||||
rm -f $(DESTDIR)$(BINDIR)/checkproof
|
||||
rm -f $(DESTDIR)$(MANDIR)/man1/mkchallenge.1
|
||||
rm -f $(DESTDIR)$(MANDIR)/man1/mkproof.1
|
||||
rm -f $(DESTDIR)$(MANDIR)/man1/checkproof.1
|
||||
|
||||
.PHONY: docs clean distclean install
|
||||
|
@ -134,6 +134,11 @@ run_configure() {
|
||||
then
|
||||
echo yes
|
||||
all="$all docs"
|
||||
install_docs="
|
||||
mkdir -p \$(DESTDIR)\$(MANDIR)/man1
|
||||
install -m644 doc/mkchallenge.1 \$(DESTDIR)\$(MANDIR)/man1/mkchallenge.1
|
||||
install -m644 doc/mkproof.1 \$(DESTDIR)\$(MANDIR)/man1/mkproof.1
|
||||
install -m644 doc/checkproof.1 \$(DESTDIR)\$(MANDIR)/man1/checkproof.1"
|
||||
else
|
||||
echo no
|
||||
fi
|
||||
@ -161,6 +166,7 @@ run_configure() {
|
||||
CFLAGS+=-DSYSCONFDIR='"\$(SYSCONFDIR)"'
|
||||
|
||||
all: ${all}
|
||||
install_docs: ${install_docs}
|
||||
EOF
|
||||
|
||||
for target in $all
|
||||
|
Loading…
Reference in New Issue
Block a user