From 90ea4908191395af529df5a42ecdb6221b3e8746 Mon Sep 17 00:00:00 2001 From: buffet Date: Tue, 30 Oct 2018 23:47:29 +0100 Subject: [PATCH] Added basic Makefile --- .gitignore | 1 + Makefile | 15 ++++++++-- misc/kiwmi.1 | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+), 2 deletions(-) create mode 100644 misc/kiwmi.1 diff --git a/.gitignore b/.gitignore index 7620b76..8f6fa7f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /kiwmi /seed +/kiwmi.1.gz *.o *.d diff --git a/Makefile b/Makefile index b34b1a3..5509493 100644 --- a/Makefile +++ b/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) diff --git a/misc/kiwmi.1 b/misc/kiwmi.1 new file mode 100644 index 0000000..ecf3ed9 --- /dev/null +++ b/misc/kiwmi.1 @@ -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