Skip to content

Commit

Permalink
Doc and minor cleanup in Makefile.aut.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Mar 18, 2024
1 parent b186c27 commit d23488c
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions Makefile.aut
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# Makefile for authoring less.
#
# Targets:
# all Make files needed to run Makefile (after configure).
# clean Removes files that can be rebuilt.
# unicode-check If newer Unicode files are available, download them.
# release Makes a numbered release, ready to upload to greenwoodsoftware.com.
# gnu-upload Make files needed to upload a release to gnu.org.
#

EMAIL = [email protected]
HOMEPAGE = https://greenwoodsoftware.com/less
SHELL = /bin/sh
GIT = git
GPG = gpg
NROFF = nroff -t -man

srcdir = .
Expand Down Expand Up @@ -41,12 +50,12 @@ DISTFILES = \
less.hlp \
mkhelp.pl \
mkhelp.py \
mkutable $(UNICODE_FILES) \
mkutable ${UNICODE_FILES} \
$(shell ${MAKE} -s -f ${srcdir}/lesstest/Makefile echo_distfiles srcdir=${srcdir}/lesstest) \
${DISTFILES_W}


all: help.c funcs.h $(UNICODE_FILES) ${srcdir}/configure
all: help.c funcs.h ${UNICODE_FILES} ${srcdir}/configure

release: .FORCE
@if ${srcdir}/ready_to_release -d ${srcdir}; then :; else exit 1; fi
Expand Down Expand Up @@ -145,23 +154,24 @@ dist: ${DISTFILES}
echo "Creating $$RELDIR/$$TARF" && \
tar -cf - $$LESSREL | gzip -c >$$RELDIR/$$TARF && \
echo "Signing $$RELDIR/$$TARF" && \
gpg --detach-sign $$RELDIR/$$TARF && \
${GPG} --detach-sign $$RELDIR/$$TARF && \
mv $$RELDIR/$$TARF.sig $$RELDIR/$$LESSREL.sig && \
echo "Creating $$RELDIR/$$ZIPF" && \
zip -rq $$RELDIR/$$ZIPF $$LESSREL && \
rm -rf $$LESSREL

tagall:
echo "tagging v${REL}"; \
$(GIT) tag -a -f -m "v${REL}" "v${REL}"
${GIT} tag -a -f -m "v${REL}" "v${REL}"

gnu_upload:
gnu-upload:
@if [ -z "${REL}" ]; then echo "Please set REL=nnn"; exit 1; fi; \
LESSREL=less-${REL} && RELDIR=release/$$LESSREL && \
TARF=$$LESSREL.tar.gz && \
if [ ! -s $$RELDIR/$$TARF ]; then echo "$$RELDIR/$$TARF does not exist"; exit 1; fi; \
cd $$RELDIR && \
gpg -b $$TARF && \
${GPG} -b $$TARF && \
( echo "version: 1.2"; echo "directory: less"; echo "filename: $$TARF" ) > $$TARF.directive && \
gpg --clearsign $$TARF.directive && \
echo "upload ready: cd $$RELDIR; ftp ftp-upload.gnu.org; cd /incoming/ftp; put $$TARF $$TARF.sig $$TARF.directive.asc"
${GPG} --clearsign $$TARF.directive && \
echo "upload ready: cd $$RELDIR; ftp ftp-upload.gnu.org; cd /incoming/ftp; put ... { $TARF, $$TARF.sig, $$TARF.directive.asc }"

0 comments on commit d23488c

Please sign in to comment.