commit - a7de20a88ab48d380ca8963da6f7fc0a654a9f26
commit + 84d6b0f4148dce6adaef30c2c5c0ca2894000152
blob - c0db5ed210981a5b9ea6f349f03d001669e59357
blob + 267972838fc84c5f6e116beccbd92f2203c5cc01
--- Makefile
+++ Makefile
+# Copyright (c) 2022 Omar Polo <op@omarpolo.com>
+# Copyright (c) 2011, 2013-2022 Ingo Schwarze <schwarze@openbsd.org>
+# Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
+#
+# Permission to use, copy, modify, and distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
PROG = mymenu
SRCS = mymenu.c
OBJS = ${SRCS:.c=.o}
COBJS = ${COBJ:.c=.o}
+COMPATSRC = compat_err.c \
+ compat_getprogname.c \
+ compat_reallocarray.c \
+ compat_recallocarray.c \
+ compat_strtonum.c
+
TESTSRCS = test-__progname.c \
test-capsicum.c \
test-err.c \
test-static.c \
test-strtonum.c
-all: ${PROG}
+DISTFILES = LICENSE \
+ Makefile \
+ configure \
+ configure.local.example \
+ mymenu.1 \
+ screen-alt.png \
+ screen.png \
+ scripts/mpd.sh \
+ scripts/mru.pl \
+ ${SRCS} \
+ ${COMPATSRC} \
+ ${TESTSRCS}
+
+all: Makefile.configure ${PROG}
.PHONY: clean distclean install uninstall
Makefile.configure config.h: configure ${TESTSRCS}
clean:
rm -f ${OBJS} ${COBJS} ${PROG}
+distclean: clean
+ rm -f Makefile.configure config.h config.h.old config.log config.log.old
+
install:
mkdir -p ${DESTDIR}${BINDIR}
mkdir -p ${DESTDIR}${MANDIR}/man1
rm ${DESTDIR}${BINDIR}/${PROG}
rm ${DESTDIR}${MANDIR}/man1/mymenu.1
+# --- maintainer targets ---
+
+dist: mymenu-${VERSION}.sha256
+
+mymenu-${VERSION}.sha256: mymenu-${VERSION}.tar.gz
+ sha256 mymenu-${VERSION}.tar.gz > $@
+
+mymenu-${VERSION}.tar.gz: ${DISTFILES}
+ mkdir -p .dist/mymenu-${VERSION}/
+ ${INSTALL} -m 0644 ${DISTFILES} .dist/mymenu-${VERSION}
+ chmod 755 .dist/mymenu-${VERSION}/configure
+ (cd .dist/ && tar zcf ../$@ mymenu-${VERSION})
+ rm -rf .dist/
+
mymenu.1.md: mymenu.1
mandoc -T markdown mymenu.1 > mymenu.1.md
blob - 24ed858660933b8f95913d8d181aab41d0bc27e8
blob + f5c3e91ed4af0ad5e8673674a8cc20dc42fda021
--- configure
+++ configure
[ -z "${INSTALL_DATA}" ] && INSTALL_DATA="${INSTALL} -m 0444"
cat << __HEREDOC__
+VERSION = ${MYMENU_VERSION}
CC = ${CC}
CFLAGS = ${CFLAGS}
CPPFLAGS = ${CPPFLAGS}