Recently Written · git

sbm

dmenu bookmarks. Instantly fuzzy search thousands of bookmarks and plumb them. LOOKING FOR SUCKLESS SOFTWARE EDITION? GO TO sbm-suckless INSTEAD

git clone https://github.com/equwal/sbm

Log | Files | Refs


Makefile (1111 bytes)

1 include config.mk
2 
3 SCRIPTS = bm bm-migrate bm-import bm-check bm-html bm-title bm-commit bm-watch bm-sync
4 TESTS = test/run.sh test/fakemenu test/fakefzf
5 
6 all:
7 	@echo Nothing to build: use make install, make uninstall, make check, or make dist.
8 
9 check:
10 	@if command -v shellcheck >/dev/null 2>&1; then \
11 		shellcheck -s sh ${SCRIPTS} ${TESTS}; \
12 	else \
13 		echo shellcheck not found: skipping lint; \
14 	fi
15 	@sh test/run.sh
16 
17 dist:
18 	@echo creating dist tarball
19 	@mkdir -p sbm-${VERSION}-temp
20 	@cp -R Makefile config.mk README TODO LICENSE ${SCRIPTS} usertags engines test contrib sbm-${VERSION}-temp
21 	@mv sbm-${VERSION}-temp sbm-${VERSION}
22 	@tar -cf sbm-${VERSION}.tar sbm-${VERSION}
23 	@gzip sbm-${VERSION}.tar
24 	@rm -rf sbm-${VERSION}
25 
26 install:
27 	@echo installing ${TOOLS} to ${DESTDIR}${PREFIX}/bin
28 	@mkdir -p ${DESTDIR}${PREFIX}/bin
29 	@for tool in ${TOOLS}; do \
30 		cp $$tool ${DESTDIR}${PREFIX}/bin/ && \
31 		chmod 755 ${DESTDIR}${PREFIX}/bin/$$tool || exit 1; \
32 	done
33 
34 uninstall:
35 	@echo removing scripts
36 	@for tool in ${SCRIPTS}; do rm -f ${DESTDIR}${PREFIX}/bin/$$tool; done
37 
38 .PHONY: all check dist install uninstall