1 d844e0fd 2021-11-25 op LDLIBS = -lncursesw
2 d844e0fd 2021-11-25 op PREFIX = /usr/local
3 d844e0fd 2021-11-25 op MANPREFIX = ${PREFIX}/man
4 d844e0fd 2021-11-25 op BINDIR = ${DESTDIR}${PREFIX}/bin
5 d844e0fd 2021-11-25 op MANDIR = ${DESTDIR}${MANPREFIX}/man1
7 d844e0fd 2021-11-25 op INSTALL = install
8 d844e0fd 2021-11-25 op INSTALL_PROGRAM = ${INSTALL} -m 0555
9 d844e0fd 2021-11-25 op INSTALL_MAN = ${INSTALL} -m 0444
11 05a1efda 2023-02-08 op DEBUG = -O0 -g
12 527ce07d 2021-12-01 op WARNS = -Wall -Wextra -Wmissing-prototypes \
13 527ce07d 2021-12-01 op -Wstrict-prototypes -Wwrite-strings \
14 0db009bc 2021-12-01 op -Wno-unused-parameter -Wno-unused-function
16 281bd5e5 2021-12-01 op .PHONY: all install uninstall clean
21 0db009bc 2021-12-01 op ${CC} -o $@ fm.o ${LDFLAGS} ${LDLIBS}
23 d844e0fd 2021-11-25 op fm.o: fm.c config.h
26 0db009bc 2021-12-01 op ${CC} ${CFLAGS} ${WARNS} ${DEBUG} -c $< -o $@
29 d844e0fd 2021-11-25 op mkdir -p ${BINDIR}
30 d844e0fd 2021-11-25 op ${INSTALL_PROGRAM} fm ${BINDIR}/fm
31 d844e0fd 2021-11-25 op mkdir -p ${MANDIR}
32 d844e0fd 2021-11-25 op ${INSTALL_MAN} fm.1 ${MANDIR}/fm.1
34 c519de43 2023-02-08 op install-local: fm
35 c519de43 2023-02-08 op ${INSTALL_PROGRAM} fm ~/bin/
37 1d65cfa2 2017-06-30 noreply uninstall:
38 ed9b470f 2021-12-01 op rm -f ${BINDIR}/fm
39 ed9b470f 2021-12-01 op rm -f ${MANDIR}/fm.1