mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 09:21:53 -05:00
build-sys: always use $(RM) instead of rm -f
These are equivalent. Use the autoconf macro for consistency. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
1741b5cc30
commit
82ffe2cbfd
@ -36,7 +36,7 @@ edit = sed \
|
||||
|
||||
$(OURSCRIPTS): Makefile
|
||||
@echo ' ' GEN $@;
|
||||
@rm -f $@ $@.tmp
|
||||
@$(RM) $@ $@.tmp
|
||||
@$(edit) $(srcdir)/$@.in >$@.tmp
|
||||
@chmod +x $@.tmp
|
||||
@chmod a-w $@.tmp
|
||||
@ -44,7 +44,7 @@ $(OURSCRIPTS): Makefile
|
||||
|
||||
$(OURFILES): Makefile
|
||||
@echo ' ' GEN $@;
|
||||
@rm -f $@ $@.tmp
|
||||
@$(RM) $@ $@.tmp
|
||||
@$(edit) $(srcdir)/$@.in >$@.tmp
|
||||
@chmod a-w $@.tmp
|
||||
@mv $@.tmp $@
|
||||
|
@ -148,7 +148,7 @@ pacman.conf.5 pacman.conf.5.html: pacman.conf.5.txt
|
||||
libalpm.3 libalpm.3.html: libalpm.3.txt
|
||||
# this one is just a symlink
|
||||
repo-remove.8: repo-add.8
|
||||
rm -f repo-remove.8
|
||||
$(RM) repo-remove.8
|
||||
$(LN_S) repo-add.8 repo-remove.8
|
||||
|
||||
install-data-hook:
|
||||
|
@ -23,7 +23,7 @@ edit = sed \
|
||||
|
||||
$(dist_sysconf_DATA): Makefile
|
||||
@echo ' ' GEN $@;
|
||||
@rm -f $@ $@.tmp
|
||||
@$(RM) $@ $@.tmp
|
||||
@$(edit) `test -f ./$@.in || echo $(srcdir)/`$@.in >$@.tmp
|
||||
@mv $@.tmp $@
|
||||
|
||||
|
@ -63,7 +63,7 @@ edit = sed \
|
||||
# third 'test' line- make sure one of the two checks succeeded
|
||||
$(OURSCRIPTS): Makefile
|
||||
@echo ' ' GEN $@;
|
||||
@rm -f $@
|
||||
@$(RM) $@
|
||||
@test -f $(srcdir)/$@.sh.in && m4 -P -I $(srcdir) $(srcdir)/$@.sh.in | $(edit) >$@
|
||||
@chmod +x $@
|
||||
@chmod a-w $@
|
||||
@ -96,11 +96,11 @@ repo-add: \
|
||||
$(srcdir)/library/output_format.sh
|
||||
|
||||
repo-remove: $(srcdir)/repo-add.sh.in
|
||||
rm -f repo-remove
|
||||
$(RM) repo-remove
|
||||
$(LN_S) repo-add repo-remove
|
||||
|
||||
repo-elephant: $(srcdir)/repo-add.sh.in
|
||||
rm -f repo-elephant
|
||||
$(RM) repo-elephant
|
||||
$(LN_S) repo-add repo-elephant
|
||||
|
||||
install-data-hook:
|
||||
|
@ -18,7 +18,7 @@ edit = sed \
|
||||
|
||||
$(CONFTESTS): Makefile
|
||||
@echo ' ' GEN $@;
|
||||
@rm -f $@ $@.tmp
|
||||
@$(RM) $@ $@.tmp
|
||||
@test -f $(srcdir)/$@.in && $(edit) $(srcdir)/$@.in >$@.tmp || true
|
||||
@test -f $@.tmp || false
|
||||
@chmod a-w $@.tmp
|
||||
|
Loading…
x
Reference in New Issue
Block a user