[devtools,1/3] sogrep: don't be templated when it is not templated

Message ID 20190325203220.23083-1-eschwartz@archlinux.org
State Accepted
Headers show
Series
  • [devtools,1/3] sogrep: don't be templated when it is not templated
Related show

Commit Message

Eli Schwartz via arch-projects March 25, 2019, 8:32 p.m. UTC
Partition the Makefile targets to only clean configured files, and make
the configured files be a subset of the bin programs.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
---
 .gitignore          | 1 -
 Makefile            | 9 ++++++---
 sogrep.in => sogrep | 0
 3 files changed, 6 insertions(+), 4 deletions(-)
 rename sogrep.in => sogrep (100%)

Patch

diff --git a/.gitignore b/.gitignore
index 6a1d1e4..b63587b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,5 +15,4 @@  zsh_completion
 find-libdeps
 crossrepomove
 arch-nspawn
-sogrep
 doc/*.1
diff --git a/Makefile b/Makefile
index 055ed2d..39785c3 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@  V=20180531
 PREFIX = /usr/local
 MANDIR = $(PREFIX)/share/man
 
-BINPROGS = \
+IN_PROGS = \
 	checkpkg \
 	commitpkg \
 	archco \
@@ -16,7 +16,10 @@  BINPROGS = \
 	crossrepomove\
 	arch-nspawn \
 	mkarchroot \
-	makechrootpkg \
+	makechrootpkg
+
+BINPROGS = \
+	$(IN_PROGS) \
 	sogrep
 
 CONFIGFILES = \
@@ -90,7 +93,7 @@  doc/%: doc/%.asciidoc
 	a2x --no-xmllint --asciidoc-opts="-f doc/asciidoc.conf" -d manpage -f manpage -D doc $<
 
 clean:
-	rm -f $(BINPROGS) bash_completion zsh_completion $(MANS)
+	rm -f $(IN_PROGS) bash_completion zsh_completion $(MANS)
 
 install:
 	install -dm0755 $(DESTDIR)$(PREFIX)/bin
diff --git a/sogrep.in b/sogrep
similarity index 100%
rename from sogrep.in
rename to sogrep