diff options
| author | uint <abhinav.prsai@gmail.com> | 2025-12-14 19:39:07 +0000 |
|---|---|---|
| committer | uint <abhinav.prsai@gmail.com> | 2025-12-14 19:39:07 +0000 |
| commit | a1206bdfaf4d52bd666ede801938e9c1411b2248 (patch) | |
| tree | a9605ae5f775764f6afc5dda6032b3a69582e43c | |
| parent | ab931cbfeb4b3f7f67a6e03dfec14d3771be30af (diff) | |
update Makefile and README
| -rw-r--r-- | Makefile | 14 | ||||
| -rw-r--r-- | README.md | 8 |
2 files changed, 17 insertions, 5 deletions
@@ -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 @@ -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! |
