[3/4] Makefile: be more templated when calculating dependency patterns

Message ID 20191023061359.820902-3-eschwartz@archlinux.org
State Accepted
Headers show
Series
  • [1/4] Port to libmakepkg
Related show

Commit Message

Eli Schwartz Oct. 23, 2019, 6:13 a.m. UTC
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
---
 src/Makefile.am | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

Patch

diff --git a/src/Makefile.am b/src/Makefile.am
index 2efd416..093ae71 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -122,16 +122,8 @@  $(OURFILES): Makefile
 
 all-am: $(OURSCRIPTS) $(OURFILES)
 
-checkupdates: $(srcdir)/checkupdates.sh.in
-paccache: $(srcdir)/paccache.sh.in
-pacdiff: $(srcdir)/pacdiff.sh.in
-paclist: $(srcdir)/paclist.sh.in
-paclog-pkglist: $(srcdir)/paclog-pkglist.sh.in
-pacscripts: $(srcdir)/pacscripts.sh.in
-rankmirrors: $(srcdir)/rankmirrors.sh.in
-updpkgsums: $(srcdir)/updpkgsums.sh.in
-
-pacsearch: $(srcdir)/pacsearch.pl.in
+$(BASHSCRIPTS): %: $(srcdir)/%.sh.in
+$(PERLSCRIPTS): %: $(srcdir)/%.pl.in
 
 pacsort_SOURCES = pacsort.c
 pacsort_LDADD = $(LIBARCHIVE_LIBS) $(LIBALPM_LIBS)