summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile14
-rw-r--r--README.md8
2 files changed, 17 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 8bda4d4..33ef70c 100644
--- a/Makefile
+++ b/Makefile
@@ -21,17 +21,23 @@ SRC = xnap.c
all: xnap
# rules
-sxwm: ${OBJ}
- ${CC} -o xnap ${LDFLAGS}
+xnap:
+ ${CC} ${SRC} -o xnap ${LDFLAGS}
clean:
rm -rf xnap
install: all
- # TODO
+ mkdir -p ${DESTDIR}${PREFIX}/bin
+ mkdir -p ${DESTDIR}${MANPREFIX}/man1
+ cp -f xnap ${DESTDIR}${PREFIX}/bin
+ chmod 755 ${DESTDIR}${PREFIX}/bin/xnap
+ cp -f xnap.1 ${DESTDIR}${MANPREFIX}/man1
+ chmod 644 ${DESTDIR}${MANPREFIX}/man1/xnap.1
uninstall:
- # TODO
+ rm -f ${DESTDIR}${PREFIX}/bin/xnap
+ rm -f ${DESTDIR}${MANPREFIX}/man1/xnap.1
clangd:
rm -f compile_flags.txt
diff --git a/README.md b/README.md
index 708e34b..9c538d8 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,10 @@
# xnap
xnap is a minimalistic screenshot utility for X.
-just `make`
+just `make install`
+
+you **need** `Xlib` and can use `Xinerama` optionally.
+xnap is minimal and just outputs the image contents (PPM format) to the stdout.
+please use a tool to collect that info and store / convert it to whatever you like.
+
+enjoy!