build: Simplify dist target

We can get rid of the SRC variable if we use shell wildcards.
This commit is contained in:
Roberto E. Vargas Caballero 2023-09-26 19:45:46 +02:00
parent 8933987544
commit ba2fc773f3
1 changed files with 1 additions and 2 deletions

View File

@ -183,7 +183,6 @@ BIN =\
yes
OBJ = $(BIN:=.o) $(LIBUTFOBJ) $(LIBUTILOBJ)
SRC = $(BIN:=.c)
MAN = $(BIN:=.1)
all: $(BIN)
@ -227,7 +226,7 @@ uninstall:
dist: clean
mkdir -p sbase-$(VERSION)
cp -r LICENSE Makefile README TODO config.mk $(SRC) $(MAN) libutf libutil $(HDR) sbase-$(VERSION)
cp -r LICENSE Makefile README TODO config.mk *.c *.1 *.h libutf libutil sbase-$(VERSION)
tar -cf sbase-$(VERSION).tar sbase-$(VERSION)
gzip sbase-$(VERSION).tar
rm -rf sbase-$(VERSION)