diff options
author | Charles Edward Pax <charles.pax@gmail.com> | 2017-08-01 15:51:40 -0400 |
---|---|---|
committer | Charles Edward Pax <charles.pax@gmail.com> | 2017-08-01 15:51:40 -0400 |
commit | 09526072f49cef6172f8f48ad83a97ec206b4fdd (patch) | |
tree | fef906374be7782871db00cc9e633c2f633dc05a /src | |
parent | deefea43495132b1e8bfdcb3781acab56c2079dd (diff) |
Makefile will install and uninstall manpages. To install run 'make docs' then 'sudo make man_install'. To uninstall run 'sudo make man_uninstall'.
Diffstat (limited to 'src')
-rw-r--r-- | src/Doxyfile | 6 | ||||
-rwxr-xr-x | src/Makefile | 11 |
2 files changed, 13 insertions, 4 deletions
diff --git a/src/Doxyfile b/src/Doxyfile index 9ef6791..454bd9a 100644 --- a/src/Doxyfile +++ b/src/Doxyfile @@ -1858,14 +1858,14 @@ MAN_OUTPUT = man # The default value is: .3. # This tag requires that the tag GENERATE_MAN is set to YES. -MAN_EXTENSION = .3 +MAN_EXTENSION = .scim.3 # The MAN_SUBDIR tag determines the name of the directory created within # MAN_OUTPUT in which the man pages are placed. If defaults to man followed by # MAN_EXTENSION with the initial . removed. # This tag requires that the tag GENERATE_MAN is set to YES. -MAN_SUBDIR = +MAN_SUBDIR = man3 # If the MAN_LINKS tag is set to YES and doxygen generates man output, then it # will generate one additional man file for each entity documented in the real @@ -1874,7 +1874,7 @@ MAN_SUBDIR = # The default value is: NO. # This tag requires that the tag GENERATE_MAN is set to YES. -MAN_LINKS = NO +MAN_LINKS = YES #--------------------------------------------------------------------------- # Configuration options related to the XML output diff --git a/src/Makefile b/src/Makefile index 6696209..c4b8973 100755 --- a/src/Makefile +++ b/src/Makefile @@ -126,7 +126,7 @@ endif OBJS = $(patsubst %.c, %.o, $(wildcard *.c) $(wildcard utils/*.c)) gram.o -.PHONY : all clean install docs +.PHONY : all clean install docs man_install man_uninstall all : $(name) @@ -171,6 +171,15 @@ statres.h : gram.y docs: doxygen Doxyfile +man_install: + @cp -r ../docs/man/man3/ /usr/local/share/man/ + mandb + +# "scim" MUST match what is in Doxyfile `MAN_EXTENSION = .scim.3` +man_uninstall: + @rm -rf /usr/local/share/man/man3/*scim.3 + @mandb + clean: rm -f $(OBJS) rm -f *res.h $(YTAB).h |