From 83a16d30416cd853898e3cbb9dd57d700a85ddb4 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 13 Nov 2018 22:46:36 -0500 Subject: scripts: fix repo-remove/elephant Makefile targets repo-remove and repo-elephant don't care whether repo-add.sh.in is updated... but they do require the repo-add target to be up to date, so use that instead. As a bonus, use the same rule for both of them. --- scripts/Makefile.am | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/Makefile.am b/scripts/Makefile.am index dc2d8e5e..35f95c69 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -228,13 +228,9 @@ pkgdelta: $(srcdir)/pkgdelta.sh.in repo-add: $(srcdir)/repo-add.sh.in -repo-remove: $(srcdir)/repo-add.sh.in - $(AM_V_at)$(RM) repo-remove - $(AM_V_at)$(LN_S) repo-add repo-remove - -repo-elephant: $(srcdir)/repo-add.sh.in - $(AM_V_at)$(RM) repo-elephant - $(AM_V_at)$(LN_S) repo-add repo-elephant +repo-remove repo-elephant: repo-add + $(AM_V_at)$(RM) $@ + $(AM_V_at)$(LN_S) repo-add $@ .SECONDEXPANSION: $(WRAPPER): \ -- cgit v1.2.3-54-g00ecf