summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2018-11-13 22:46:36 -0500
committerAllan McRae <allan@archlinux.org>2018-11-28 10:50:02 +1000
commit83a16d30416cd853898e3cbb9dd57d700a85ddb4 (patch)
tree4ef3b6a9b2a2df48e7d8aabdc7bf2835fafecfc8 /scripts
parent363664e47dd99e8f9593ecf98d73544617fb72fd (diff)
downloadpacman-83a16d30416cd853898e3cbb9dd57d700a85ddb4.tar.xz
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am10
1 files 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): \