Added basic Makefile
This commit is contained in:
parent
edc86076fa
commit
90ea490819
3 changed files with 92 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
/kiwmi
|
||||
/seed
|
||||
/kiwmi.1.gz
|
||||
*.o
|
||||
*.d
|
||||
|
|
15
Makefile
15
Makefile
|
@ -15,9 +15,13 @@ OBJ = $(KWOBJ) $(SEOBJ)
|
|||
DEPS = $(OBJ:.o=.d)
|
||||
TARGETS = $(KWTARGET) $(SETARGET)
|
||||
|
||||
.PHONY: all nodoc doc install uninstall clean
|
||||
MANTARGET = kiwmi.1.gz
|
||||
|
||||
all: $(TARGETS)
|
||||
.PHONY: all all-nodoc doc install uninstall clean
|
||||
|
||||
all: all-nodoc doc
|
||||
|
||||
all-nodoc: $(TARGETS)
|
||||
|
||||
$(KWTARGET): $(KWOBJ)
|
||||
$(LD) -o $@ $^ $(LDFLAGS)
|
||||
|
@ -25,15 +29,22 @@ $(KWTARGET): $(KWOBJ)
|
|||
$(SETARGET): $(SEOBJ)
|
||||
$(LD) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
doc: $(MANTARGET)
|
||||
|
||||
$(MANTARGET): misc/kiwmi.1
|
||||
sed 's/{{VERSION}}/v$(VERSION)/g' $< | gzip >$@
|
||||
|
||||
install: all misc/kiwmi.desktop
|
||||
install -Dm755 $(KWTARGET) "$(DESTDIR)$(BINPREFIX)/$(KWTARGET)"
|
||||
install -Dm755 $(SETARGET) "$(DESTDIR)$(BINPREFIX)/$(SETARGET)"
|
||||
install -Dm644 misc/kiwmi.desktop "$(DESTDIR)$(XSESSIONS)/kiwmi.desktop"
|
||||
install -Dm644 $(MANTARGET) "$(DESTDIR)$(MANPREFIX)/$(MANPREFIX)"
|
||||
|
||||
uninstall:
|
||||
$(RM) "$(DESTDIR)$(BINPREFIX)/$(KWTARGET)"
|
||||
$(RM) "$(DESTDIR)$(BINPREFIX)/$(SETARGET)"
|
||||
$(RM) "$(DESTDIR)$(XSESSIONS)/kiwmi.desktop"
|
||||
$(RM) "$(DESTDIR)$(MANPREFIX)/$(MANTARGET)"
|
||||
|
||||
clean:
|
||||
$(RM) $(DEPS)
|
||||
|
|
78
misc/kiwmi.1
Normal file
78
misc/kiwmi.1
Normal file
|
@ -0,0 +1,78 @@
|
|||
.TH KIWMI 1 "2018 October 30" "{{VERSION}}" ""
|
||||
|
||||
.SH NAME
|
||||
kiwmi \- fully manual tiling window manager
|
||||
|
||||
.SH SYNPOSIS
|
||||
.B kiwmi
|
||||
.R [
|
||||
.B -h
|
||||
.R |
|
||||
.B -v
|
||||
.R |
|
||||
.B -c
|
||||
.I CONFIG_PATH
|
||||
.R ]
|
||||
|
||||
.PP
|
||||
.B seed
|
||||
.I COMMAND
|
||||
|
||||
.SH DESCRIPTION
|
||||
Starts the
|
||||
.B kiwmi
|
||||
window manager on
|
||||
.IR DISPLAY .
|
||||
It is controlled and configured via
|
||||
.BR seed .
|
||||
|
||||
.PP
|
||||
A list of
|
||||
.IR COMMAND s
|
||||
can be found below.
|
||||
|
||||
.SH OPTIONS
|
||||
|
||||
.PP
|
||||
.B \-h
|
||||
.RS
|
||||
Print help and exit
|
||||
.RE
|
||||
|
||||
.PP
|
||||
.B \-V
|
||||
.RS
|
||||
Print version info and exit
|
||||
.RE
|
||||
|
||||
.PP
|
||||
.B \-d
|
||||
.RS
|
||||
Print debug information
|
||||
.RE
|
||||
|
||||
.PP
|
||||
\fB\-c\fR \fICONFIG_PATH\fR
|
||||
.RS
|
||||
Print help and exit
|
||||
.RE
|
||||
|
||||
.SH USAGE
|
||||
Possible commands for
|
||||
.B seed
|
||||
are:
|
||||
|
||||
.PP
|
||||
.B quit
|
||||
.RS
|
||||
Quit kiwmi
|
||||
.RE
|
||||
|
||||
.PP
|
||||
.B reload
|
||||
.RS
|
||||
Reload the configuration file.
|
||||
.RE
|
||||
|
||||
.SH AUTHOR
|
||||
Niclas Meyer <niclas@countingsort.com>
|
Loading…
Add table
Reference in a new issue