Skip to content

Commit

Permalink
Man page: first issue
Browse files Browse the repository at this point in the history
Description, Options, Keybindings, Commands, Files, Configuration.
help2man is no more required, hence the removal from README.md.
Changed Makefile to generate the manpage and install it properly.
  • Loading branch information
Ambrevar committed Oct 9, 2012
1 parent 514819e commit fad4541
Show file tree
Hide file tree
Showing 3 changed files with 382 additions and 5 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SRCS = $(filter-out $(TSRC),$(wildcard *.c) $(wildcard common/*.c) $(wildcard c
HEADS = $(wildcard *.h) $(wildcard common/*.h) $(wildcard widgets/*.h) $(wildcard clib/*.h) $(wildcard clib/soup/*.h) $(THEAD) globalconf.h
OBJS = $(foreach obj,$(SRCS:.c=.o),$(obj))

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

options:
@echo luakit build options:
Expand Down Expand Up @@ -46,8 +46,11 @@ luakit: $(OBJS)
@echo $(CC) -o $@ $(OBJS)
@$(CC) -o $@ $(OBJS) $(LDFLAGS)

luakit.1: luakit
help2man -N -o $@ ./$<
luakit.1: luakit.1.in
@sed "s/LUAKITVERSION/$(VERSION)/" $< > $@

luakit.1.gz: luakit.1
@gzip -c $< > $@

apidoc: luadoc/luakit.lua
mkdir -p apidocs
Expand Down Expand Up @@ -80,7 +83,7 @@ install:
install -d $(DESTDIR)/usr/share/applications
install -m0644 extras/luakit.desktop $(DESTDIR)/usr/share/applications/
install -d $(MANPREFIX)/man1/
install -m644 luakit.1 $(MANPREFIX)/man1/
install -m644 luakit.1.gz $(MANPREFIX)/man1/

uninstall:
rm -rf $(INSTALLDIR)/bin/luakit $(INSTALLDIR)/share/luakit $(MANPREFIX)/man1/luakit.1
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ luakit behaves similarly out of the box.
* libwebkit (webkit-gtk)
* libunique
* sqlite3
* help2man

## Compiling

Expand Down
Loading

0 comments on commit fad4541

Please sign in to comment.