sfeed_curses is now part of sfeed - sfeed_curses - sfeed curses UI (now part of… | |
git clone git://git.codemadness.org/sfeed_curses | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit af3c9ada0369b9a62414df5d5d99b972ab7a8fcb | |
parent 8e151ce48b503ad0ff0e24cb1be3bc93d6fbd895 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 26 Feb 2023 14:48:58 +0100 | |
sfeed_curses is now part of sfeed | |
sfeed_curses is now part of sfeed. | |
There will be no more sfeed_curses updates in this repo. | |
All updates will be in the upstream repo. | |
Upstreams should track the following repo: | |
https://git.codemadness.org/sfeed/ | |
git://git.codemadness.org/sfeed | |
Diffstat: | |
M Makefile | 105 ++++-------------------------… | |
1 file changed, 12 insertions(+), 93 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
@@ -1,95 +1,14 @@ | |
.POSIX: | |
-NAME = sfeed_curses | |
-VERSION = 1.0 | |
- | |
-# theme, see themes/ directory. | |
-SFEED_THEME = mono | |
- | |
-# paths | |
-PREFIX = /usr/local | |
-MANPREFIX = ${PREFIX}/man | |
-DOCPREFIX = ${PREFIX}/share/doc/${NAME} | |
- | |
-# use system flags. | |
-SFEED_CFLAGS = ${CFLAGS} | |
-SFEED_LDFLAGS = ${LDFLAGS} -lcurses | |
-SFEED_CPPFLAGS = -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE \ | |
- -DSFEED_THEME=\"themes/${SFEED_THEME}.h\" | |
- | |
-# Linux: some distros use ncurses and require -lncurses. | |
-#SFEED_LDFLAGS = ${LDFLAGS} -lncurses | |
- | |
-# Gentoo Linux: some distros might also require -ltinfo and -D_DEFAULT_SOURCE | |
-# to prevent warnings about feature macros. | |
-#SFEED_LDFLAGS = ${LDFLAGS} -lcurses -ltinfo | |
- | |
-# use minicurses with hardcoded escape sequences (not the system curses). | |
-#SFEED_CPPFLAGS = -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE \ | |
-# -DSFEED_THEME=\"themes/${SFEED_THEME}.h\" -DSFEED_MINICURSES | |
-#SFEED_LDFLAGS = ${LDFLAGS} | |
- | |
-BIN = sfeed_curses | |
-SCRIPTS = sfeed_content sfeed_markread | |
- | |
-SRC = ${BIN:=.c} | |
-HDR = minicurses.h | |
- | |
-MAN1 = ${BIN:=.1}\ | |
- ${SCRIPTS:=.1} | |
-DOC = \ | |
- LICENSE\ | |
- README | |
- | |
-all: ${BIN} | |
- | |
-${BIN}: ${@:=.o} | |
- | |
-OBJ = ${SRC:.c=.o} | |
- | |
-${OBJ}: | |
- | |
-.o: | |
- ${CC} -o $@ $< ${SFEED_LDFLAGS} | |
- | |
-.c.o: | |
- ${CC} ${SFEED_CFLAGS} ${SFEED_CPPFLAGS} -o $@ -c $< | |
- | |
-dist: | |
- rm -rf "${NAME}-${VERSION}" | |
- mkdir -p "${NAME}-${VERSION}" | |
- cp -fR ${MAN1} ${DOC} ${HDR} ${SRC} ${SCRIPTS} Makefile themes \ | |
- "${NAME}-${VERSION}" | |
- # make tarball | |
- tar cf - "${NAME}-${VERSION}" | \ | |
- gzip -c > "${NAME}-${VERSION}.tar.gz" | |
- rm -rf "${NAME}-${VERSION}" | |
- | |
-clean: | |
- rm -f ${BIN} ${OBJ} | |
- | |
-install: all | |
- # installing executable files and scripts. | |
- mkdir -p "${DESTDIR}${PREFIX}/bin" | |
- cp -f ${BIN} ${SCRIPTS} "${DESTDIR}${PREFIX}/bin" | |
- for f in ${BIN} ${SCRIPTS}; do chmod 755 "${DESTDIR}${PREFIX}/bin/$$f"… | |
- # installing example files. | |
- mkdir -p "${DESTDIR}${DOCPREFIX}" | |
- cp -f README\ | |
- "${DESTDIR}${DOCPREFIX}" | |
- # installing manual pages for general commands: section 1. | |
- mkdir -p "${DESTDIR}${MANPREFIX}/man1" | |
- cp -f ${MAN1} "${DESTDIR}${MANPREFIX}/man1" | |
- for m in ${MAN1}; do chmod 644 "${DESTDIR}${MANPREFIX}/man1/$$m"; done | |
- | |
-uninstall: | |
- # removing executable files and scripts. | |
- for f in ${BIN} ${SCRIPTS}; do rm -f "${DESTDIR}${PREFIX}/bin/$$f"; do… | |
- # removing example files. | |
- rm -f \ | |
- "${DESTDIR}${DOCPREFIX}/README" | |
- -rmdir "${DESTDIR}${DOCPREFIX}" | |
- # removing manual pages. | |
- for m in ${MAN1}; do rm -f "${DESTDIR}${MANPREFIX}/man1/$$m"; done | |
- | |
-.PHONY: all clean dist install uninstall | |
+all: | |
+ @echo "" | |
+ @echo "sfeed_curses is now part of sfeed." | |
+ @echo "There will be no more sfeed_curses updates in this repo." | |
+ @echo "All updates will be in the upstream sfeed repo:" | |
+ @echo "" | |
+ @echo "https://git.codemadness.org/sfeed/" | |
+ @echo "git://git.codemadness.org/sfeed" | |
+ @echo "" | |
+ @echo "Thank you" | |
+ @echo "" | |
+ @false |