mirror of
https://git.sr.ht/~sircmpwn/mkproof
synced 2024-11-23 17:22:12 +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
|
distclean: clean
|
||||||
@rm -rf "$(OUTDIR)"
|
@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
|
.PHONY: docs clean distclean install
|
||||||
|
@ -134,6 +134,11 @@ run_configure() {
|
|||||||
then
|
then
|
||||||
echo yes
|
echo yes
|
||||||
all="$all docs"
|
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
|
else
|
||||||
echo no
|
echo no
|
||||||
fi
|
fi
|
||||||
@ -161,6 +166,7 @@ run_configure() {
|
|||||||
CFLAGS+=-DSYSCONFDIR='"\$(SYSCONFDIR)"'
|
CFLAGS+=-DSYSCONFDIR='"\$(SYSCONFDIR)"'
|
||||||
|
|
||||||
all: ${all}
|
all: ${all}
|
||||||
|
install_docs: ${install_docs}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
for target in $all
|
for target in $all
|
||||||
|
Loading…
Reference in New Issue
Block a user