summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-11 21:41:41 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-11 21:42:49 +0200
commitafc577bb1246cb113b537454b23d38d929f8a157 (patch)
treec7faa74951cd9b7b8065fb13cc9af427b23e99d7 /Makefile
parent7e957a08fb09062db85f66b93fd858b8dfcd21b1 (diff)
Makefile, examples/: Remove files with '\' in the filename
Those are nice examples, but are a nightmare as filenames. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2ba0442..3f3a9f9 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,6 @@ MAKEFLAGS += --warn-undefined-variables
package := grepc
DISTVERSION := $(shell git describe --always 2>/dev/null)
DISTNAME := $(package)-$(DISTVERSION)
-DIST_FILES := $(shell git ls-files -z 2>/dev/null | xargs -0 find)
srcdir := .
@@ -113,9 +112,9 @@ $(_prog): $(_exec_prefix)/%: $(srcdir)/% Makefile | $$(@D)
$(_data): $(_prefix)/%: $(srcdir)/% Makefile | $$(@D)
$(info INSTALL $@)
- $(INSTALL_DATA) -T '$<' '$@'
+ $(INSTALL_DATA) -T $< $@
-$(DISTFILE): $(DIST_FILES) Makefile | $$(@D)
+$(DISTFILE): $(shell git ls-files 2>/dev/null) Makefile | $$(@D)
$(info TAR $@)
tar cf $@ -T /dev/null
git ls-files \