Blob
- Date:
- Message:
- switch to kristaps@' oconfigure It's a bit ugly to depend _only_ on the OpenBSD make infrastructure; it's better when things are portable! Making mymenu-portable would be more effort than what it's worth it, so just make the main version portable (again). kristaps@' oconfigure (used also by mandoc-portable and mymenu) is a lightweight configure system that's really nice to use. see GitHub issue #1
- Actions:
- History | Blame | Raw File
1 PROG = mymenu2 SRCS = mymenu.c3 OBJS = ${SRCS:.c=.o}4 COBJS = ${COBJ:.c=.o}6 TESTSRCS = test-__progname.c \7 test-capsicum.c \8 test-err.c \9 test-getexecname.c \10 test-getprogname.c \11 test-landlock.c \12 test-pledge.c \13 test-program_invocation_short_name.c \14 test-reallocarray.c \15 test-recallocarray.c \16 test-static.c \17 test-strtonum.c19 all: ${PROG}20 .PHONY: clean distclean install uninstall22 Makefile.configure config.h: configure ${TESTSRCS}23 @echo "$@ is out of date; please run ./configure"24 @exit 126 include Makefile.configure28 ${PROG}: ${OBJS} ${COBJS}29 ${CC} -o $@ ${LDFLAGS} ${OBJS} ${COBJS} ${LDADD} ${LDADD_LIB_X11}31 clean:32 rm -f ${OBJS} ${COBS} ${PROG}34 install:35 mkdir -p ${DESTDIR}${BINDIR}36 mkdir -p ${DESTDIR}${MANDIR}/man137 ${INSTALL_PROGRAM} ${PROG} ${DESTDIR}/${BINDIR}38 ${INSTALL_MAN} mymenu.1 ${DESTDIR}${MANDIR}/man140 uninstall:41 rm ${DESTDIR}${BINDIR}/${PROG}42 rm ${DESTDIR}${MANDIR}/man1/mymenu.144 mymenu.1.md: mymenu.145 mandoc -T markdown mymenu.1 > mymenu.1.md