Create DOCDIR

The makefile attempts to copy the README.md file to a directory that doesn't exist when I build this in my build environment. This patch ensure that the directory exists first.
pull/89/head
Jonathan Carter 2020-05-02 18:52:42 +02:00 committed by GitHub
parent 8543c54f60
commit 2a7ec8df61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -7,9 +7,10 @@ all:
install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@cp -p bashtop $(DESTDIR)$(PREFIX)/bin/bashtop
@mkdir -p $(DESTDIR)$(DOCDIR)
@cp -p README.md $(DESTDIR)$(DOCDIR)
@chmod 755 $(DESTDIR)$(PREFIX)/bin/bashtop
uninstall:
@rm -rf $(DESTDIR)$(PREFIX)/bin/bashtop
@rm -rf $(DESTDIR)$(DOCDIR)
@rm -rf $(DESTDIR)$(DOCDIR)