Skip to content

Commit

Permalink
Use help2man to generate manpage for luakit
Browse files Browse the repository at this point in the history
  • Loading branch information
Clint Adams authored and mason-larobina committed Aug 27, 2010
1 parent 9cec75e commit 62e4952
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SRCS = $(filter-out ${GSRC},$(wildcard *.c) $(wildcard common/*.c) $(wildcard w
HEADS = $(filter-out ${GHEAD},$(wildcard *.h) $(wildcard common/*.h) $(wildcard widgets/*.h)) ${GHEAD}
OBJS = $(foreach obj,$(SRCS:.c=.o),$(obj))

all: options newline luakit
all: options newline luakit luakit.1

options:
@echo luakit build options:
Expand Down Expand Up @@ -43,12 +43,15 @@ luakit: ${OBJS}
@echo ${CC} -o $@ ${OBJS}
@${CC} -o $@ ${OBJS} ${LDFLAGS}

luakit.1: luakit
help2man -N -o $@ ./$<

apidoc: luadoc/luakit.lua
mkdir -p apidocs
luadoc --nofiles -d apidocs luadoc/* lib/*

clean:
rm -rf apidocs luakit ${OBJS} ${GSRC} ${GHEAD} globalconf.h
rm -rf apidocs luakit ${OBJS} ${GSRC} ${GHEAD} globalconf.h luakit.1

install:
install -d $(INSTALLDIR)/share/luakit/
Expand All @@ -61,9 +64,11 @@ install:
install -D luakit $(INSTALLDIR)/bin/luakit
install -d $(DESTDIR)/etc/xdg/luakit/
install -D config/*.lua $(DESTDIR)/etc/xdg/luakit/
install -d $(INSTALLDIR)/share/man/man1/
install -m644 luakit.1 $(INSTALLDIR)/share/man/man1/

uninstall:
rm -rf $(INSTALLDIR)/bin/luakit $(INSTALLDIR)/share/luakit
rm -rf $(INSTALLDIR)/bin/luakit $(INSTALLDIR)/share/luakit $(INSTALLDIR)/share/man/man1/luakit.1

newline:;@echo
.PHONY: all clean options install newline apidoc
2 changes: 1 addition & 1 deletion luakit.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ parseopts(int argc, char *argv[]) {

/* print version and exit */
if(only_version) {
g_printf("Version: %s\n", VERSION);
g_printf("Luakit %s\n", VERSION);
exit(EXIT_SUCCESS);
}

Expand Down

0 comments on commit 62e4952

Please sign in to comment.