Commit 850120639ceb282769bad0e24577c867ff4ca6d8 Parent: 6810fa61401d6c5c6f8a4dde9e8e0d745a139404 Author: mcol <mcol@posteo.net> Date: 2021-01-24 21:07:59 +0000 Committer: mcol <mcol@posteo.net> Committed: 2021-01-24 21:07:59 +0000 Add building steps to readme, and install command to makefile closes #7
readme.rst Modified
@@ -14,3 +14,17 @@ A Wayland compositor based on wlroots. This software is a work in progress. + +Building +-------- + +Dependencies: + - wayland + - wayland-protocols + - wlroots + - cairo + +.. code-block:: sh + + make + sudo make install
Makefile Modified
@@ -7,6 +7,9 @@ $(shell pkg-config --cflags --libs xkbcommon) \ $(shell pkg-config --cflags --libs cairo) +PREFIX ?= /usr/local +BINPREFIX ?= $(PREFIX)/bin + ${OUT}: xdg-shell-protocol.h xdg-shell-protocol.c ${OBJECTS} @$(CC) -o ${OUT} $(OBJECTS) $(LDFLAGS) @@ -25,5 +28,12 @@ clean: rm -f ${OUT} xdg-shell-protocol.h xdg-shell-protocol.c ${OBJECTS} +install: + mkdir -p "$(DESTDIR)$(BINPREFIX)" + cp -pf "$(OUT)" "$(DESTDIR)$(BINPREFIX)" + +uninstall: + rm -f "$(DESTDIR)$(BINPREFIX)/$(OUT)" + .DEFAULT_GOAL=${OUT} .PHONY: clean