Correct installation & co

This commit is contained in:
Thomas Touhey 2016-07-18 17:45:27 +02:00
parent 341f9e060b
commit 186bd1923f
3 changed files with 14 additions and 7 deletions

View File

@ -8,4 +8,4 @@ build:
script:
- ./configure --prefix=./tests/files
- make
# - make install
- make all-doc

19
Makefile Normal file → Executable file
View File

@ -82,14 +82,21 @@ all-doc: $(foreach section,$(MAN_SECTS),$(MAN_$(section):%=$(MANDIR)/man$(sectio
clean-doc:
$(RM) -R $(MAN_SECTS:%=$(MANDIR)/man%)
## Install doc
install-doc:
$(foreach man, $(MAN), \
$(INST) -D -m 644 $(MANDIR)/$(man) $(IMANDIR)/$(man)$(\n))
$(GZIP) $(MAN:%=$(IMANDIR)/%)
## - Install a manpage
define make-installmanpage-rule
install-$1-$2:| $(MANDIR)/man$1/$2.$1
$(INST) -D -m 644 $(MANDIR)/man$1/$2.$1 $(IMANDIR)/man$1/$2.$1
$(GZIP) $(IMANDIR)/man$1/$2.$1
endef
$(foreach section, $(MAN_SECTS), \
$(foreach page,$(MAN_$(section)), \
$(eval $(call make-installmanpage-rule,$(section),$(page)))))
## - Install manpages
install-doc: $(foreach s,$(MAN_SECTS),$(MAN_$(s):%=install-$(s)-%))
## Doz rulz are phunny
.PHONY: all clean fclean re install
.PHONY: all-doc install-doc
.PHONY: all-doc $(foreach s,$(MAN_SECTS),$(MAN_$(s):%=install-$(s)-%)) install-doc
# END OF FILE

0
Makefile.vars Normal file → Executable file
View File