Second attempt at properly creating the manpage dir (#542)

This commit is contained in:
Daniel Markstedt 2021-12-19 15:51:45 -08:00 committed by GitHub
parent c887edfc8c
commit bcd7e8396d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,9 +220,8 @@ $(USR_LOCAL_BIN)% : $(BINDIR)/%
@echo "-- Copying $@" @echo "-- Copying $@"
cp $< $@ cp $< $@
$(MAN_PAGE_DIR)/%.1 : $(DOC_DIR)/%.1 $(MAN_PAGE_DIR)/%.1 : $(DOC_DIR)/%.1 | $(MAN_PAGE_DIR)/
@echo "-- Copying $@" @echo "-- Copying $@"
mkdir -p $@
cp $< $@ cp $< $@
$(DOC_DIR)/%_man_page.txt : $(DOC_DIR)/%.1 $(DOC_DIR)/%_man_page.txt : $(DOC_DIR)/%.1
@ -243,6 +242,10 @@ $(RSYSLOG_LOG) :
touch /var/log/rascsi.log touch /var/log/rascsi.log
chown root:adm /var/log/rascsi.log chown root:adm /var/log/rascsi.log
$(MAN_PAGE_DIR)/:
echo "-- Creating directory $@"
mkdir -p $@
## help : Lists information about how to use the makefile ## help : Lists information about how to use the makefile
# The help rule is based upon the approach from: # The help rule is based upon the approach from:
# https://swcarpentry.github.io/make-novice/08-self-doc/index.html # https://swcarpentry.github.io/make-novice/08-self-doc/index.html