Skip to content

Commit

Permalink
Add lesstest to release.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Jul 10, 2023
1 parent ba43a6c commit 5176056
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Makefile.aut
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ DISTFILES = \
mkhelp.pl \
mkhelp.py \
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

release: .FORCE
Expand Down Expand Up @@ -138,7 +140,7 @@ dist: ${DISTFILES}
rm -rf $$RELDIR && mkdir $$RELDIR && \
echo "Preparing $$LESSREL" && \
rm -rf $$LESSREL && mkdir $$LESSREL && \
cp ${DISTFILES} $$LESSREL && \
for f in ${DISTFILES}; do cp $$f $$LESSREL/$$f; done && \
cd $$LESSREL && chmod -w * && chmod +w ${DISTFILES_W} && chmod +x configure && cd .. && \
echo "Creating $$RELDIR/$$TARF" && \
tar -cf - $$LESSREL | gzip -c >$$RELDIR/$$TARF && \
Expand All @@ -156,7 +158,7 @@ tagall:
gnu_upload:
@if [ -z "${REL}" ]; then echo "Please set REL=nnn"; exit 1; fi; \
LESSREL=less-${REL} && RELDIR=release/$$LESSREL && \
TARF=$$LESSREL.tar.gz && \
TARF=$$LESSREL.tar.gz && \
if [ ! -s $$RELDIR/$$TARF ]; then echo "$$RELDIR/$$TARF does not exist"; exit 1; fi; \
cd $$RELDIR && \
gpg -b $$TARF && \
Expand Down
14 changes: 11 additions & 3 deletions lesstest/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
CC ?= gcc
CFLAGS = -Wall -O2
TERMLIB = -lncurses
srcdir ?= .

all: lesstest lt_screen

LESSTEST_OBJ = display.o env.o lesstest.o parse.o pipeline.o log.o run.o term.o wchar.o
LESSTEST_SRC = display.c env.c lesstest.c parse.c pipeline.c log.c run.c term.c wchar.c
LESSTEST_OBJ = $(patsubst %.c,%.o,$(LESSTEST_SRC))

lesstest: $(LESSTEST_OBJ)
$(CC) $(CFLAGS) -o lesstest $(LESSTEST_OBJ) $(TERMLIB)

LT_SCREEN_OBJ = lt_screen.o unicode.o wchar.o
LT_SCREEN_SRC = lt_screen.c unicode.c wchar.c
LT_SCREEN_OBJ = $(patsubst %.c,%.o,$(LT_SCREEN_SRC))
lt_screen: $(LT_SCREEN_OBJ)
$(CC) $(CFLAGS) -o lt_screen $(LT_SCREEN_OBJ)

*.o: lesstest.h lt_types.h wchar.h
HDR = lesstest.h lt_types.h wchar.h
*.o: $(HDR)

echo_distfiles:
@echo $(patsubst %,$(srcdir)/%,$(LESSTEST_SRC) $(LT_SCREEN_SRC) $(HDR) lt/*.lt runtest maketest Makefile)

clean:
rm -f lesstest lt_screen *.o

0 comments on commit 5176056

Please sign in to comment.