commit ba2fc773f34789327c709ad865547e86eb3817d3
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Tue Sep 26 19:45:46 2023 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Wed Sep 27 07:59:27 2023 +0200

    build: Simplify dist target
    
    We can get rid of the SRC variable if we use shell wildcards.

diff --git a/Makefile b/Makefile
index b7cc307..ac27cfd 100644
--- a/Makefile
+++ b/Makefile
@@ -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)

Reply via email to