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
5 changed files with 8 additions and 8 deletions
|
@ -36,7 +36,7 @@ edit = sed \
|
||||||
|
|
||||||
$(OURSCRIPTS): Makefile
|
$(OURSCRIPTS): Makefile
|
||||||
@echo ' ' GEN $@;
|
@echo ' ' GEN $@;
|
||||||
@rm -f $@ $@.tmp
|
@$(RM) $@ $@.tmp
|
||||||
@$(edit) $(srcdir)/$@.in >$@.tmp
|
@$(edit) $(srcdir)/$@.in >$@.tmp
|
||||||
@chmod +x $@.tmp
|
@chmod +x $@.tmp
|
||||||
@chmod a-w $@.tmp
|
@chmod a-w $@.tmp
|
||||||
|
@ -44,7 +44,7 @@ $(OURSCRIPTS): Makefile
|
||||||
|
|
||||||
$(OURFILES): Makefile
|
$(OURFILES): Makefile
|
||||||
@echo ' ' GEN $@;
|
@echo ' ' GEN $@;
|
||||||
@rm -f $@ $@.tmp
|
@$(RM) $@ $@.tmp
|
||||||
@$(edit) $(srcdir)/$@.in >$@.tmp
|
@$(edit) $(srcdir)/$@.in >$@.tmp
|
||||||
@chmod a-w $@.tmp
|
@chmod a-w $@.tmp
|
||||||
@mv $@.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
|
libalpm.3 libalpm.3.html: libalpm.3.txt
|
||||||
# this one is just a symlink
|
# this one is just a symlink
|
||||||
repo-remove.8: repo-add.8
|
repo-remove.8: repo-add.8
|
||||||
rm -f repo-remove.8
|
$(RM) repo-remove.8
|
||||||
$(LN_S) repo-add.8 repo-remove.8
|
$(LN_S) repo-add.8 repo-remove.8
|
||||||
|
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
|
|
|
@ -23,7 +23,7 @@ edit = sed \
|
||||||
|
|
||||||
$(dist_sysconf_DATA): Makefile
|
$(dist_sysconf_DATA): Makefile
|
||||||
@echo ' ' GEN $@;
|
@echo ' ' GEN $@;
|
||||||
@rm -f $@ $@.tmp
|
@$(RM) $@ $@.tmp
|
||||||
@$(edit) `test -f ./$@.in || echo $(srcdir)/`$@.in >$@.tmp
|
@$(edit) `test -f ./$@.in || echo $(srcdir)/`$@.in >$@.tmp
|
||||||
@mv $@.tmp $@
|
@mv $@.tmp $@
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ edit = sed \
|
||||||
# third 'test' line- make sure one of the two checks succeeded
|
# third 'test' line- make sure one of the two checks succeeded
|
||||||
$(OURSCRIPTS): Makefile
|
$(OURSCRIPTS): Makefile
|
||||||
@echo ' ' GEN $@;
|
@echo ' ' GEN $@;
|
||||||
@rm -f $@
|
@$(RM) $@
|
||||||
@test -f $(srcdir)/$@.sh.in && m4 -P -I $(srcdir) $(srcdir)/$@.sh.in | $(edit) >$@
|
@test -f $(srcdir)/$@.sh.in && m4 -P -I $(srcdir) $(srcdir)/$@.sh.in | $(edit) >$@
|
||||||
@chmod +x $@
|
@chmod +x $@
|
||||||
@chmod a-w $@
|
@chmod a-w $@
|
||||||
|
@ -96,11 +96,11 @@ repo-add: \
|
||||||
$(srcdir)/library/output_format.sh
|
$(srcdir)/library/output_format.sh
|
||||||
|
|
||||||
repo-remove: $(srcdir)/repo-add.sh.in
|
repo-remove: $(srcdir)/repo-add.sh.in
|
||||||
rm -f repo-remove
|
$(RM) repo-remove
|
||||||
$(LN_S) repo-add repo-remove
|
$(LN_S) repo-add repo-remove
|
||||||
|
|
||||||
repo-elephant: $(srcdir)/repo-add.sh.in
|
repo-elephant: $(srcdir)/repo-add.sh.in
|
||||||
rm -f repo-elephant
|
$(RM) repo-elephant
|
||||||
$(LN_S) repo-add repo-elephant
|
$(LN_S) repo-add repo-elephant
|
||||||
|
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
|
|
|
@ -18,7 +18,7 @@ edit = sed \
|
||||||
|
|
||||||
$(CONFTESTS): Makefile
|
$(CONFTESTS): Makefile
|
||||||
@echo ' ' GEN $@;
|
@echo ' ' GEN $@;
|
||||||
@rm -f $@ $@.tmp
|
@$(RM) $@ $@.tmp
|
||||||
@test -f $(srcdir)/$@.in && $(edit) $(srcdir)/$@.in >$@.tmp || true
|
@test -f $(srcdir)/$@.in && $(edit) $(srcdir)/$@.in >$@.tmp || true
|
||||||
@test -f $@.tmp || false
|
@test -f $@.tmp || false
|
||||||
@chmod a-w $@.tmp
|
@chmod a-w $@.tmp
|
||||||
|
|
Loading…
Add table
Reference in a new issue