mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 12:15:12 +00:00
[ADD/WIP] Manpages!
This commit is contained in:
parent
4d6ba32e98
commit
12b654bb51
2 changed files with 9 additions and 1 deletions
9
Makefile
9
Makefile
|
|
@ -60,12 +60,13 @@ $(AYAS)/%.html: $(INCLUDES)/%.h
|
|||
|
||||
|
||||
# Installs everything.
|
||||
install: binary utils ayadoc install_setup install_parsee install_tools install_aya
|
||||
install: binary utils ayadoc install_setup install_parsee install_tools install_aya install_man
|
||||
@echo Installing $(NAME) to $(PREFIX)
|
||||
|
||||
install_setup:
|
||||
install -dm755 "$(PREFIX)/bin"
|
||||
install -dm755 "$(PREFIX)/share/doc"
|
||||
install -dm755 "$(PREFIX)/man"
|
||||
|
||||
install_parsee:
|
||||
install -Dm755 "$(BINARY)" "$(PREFIX)/bin/$(BINARY)"
|
||||
|
|
@ -80,3 +81,9 @@ IHTML:=${subst $(AYAS)/,$(PREFIX)/share/doc/$(BINARY)/,$(AYA_FILES)}
|
|||
install_aya: $(IHTML)
|
||||
$(PREFIX)/share/doc/$(BINARY)/%: $(AYAS)/%
|
||||
install -Dm644 "$<" "$@"
|
||||
|
||||
MPAGE:=$(shell find 'etc/man' -name '*.*')
|
||||
PPAGE:=${subst etc/man/,$(PREFIX)/man/,$(MPAGE)}
|
||||
install_man: $(PPAGE)
|
||||
$(PREFIX)/man/%: etc/man/%
|
||||
install -Dm644 "$<" "$@"
|
||||
|
|
|
|||
|
|
@ -488,6 +488,7 @@ Main(Array *args, HashMap *env)
|
|||
StreamPrintf(output, "</body>");
|
||||
|
||||
StreamPrintf(output, "</html>");
|
||||
StreamFlush(output);
|
||||
|
||||
StreamClose(output);
|
||||
StreamClose(input);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue