[arch-projects] [devtools] [PATCH] Makefile: Remove output files before replacing them
2 Dec
2011
2 Dec
'11
9:07 a.m.
This one fixes all the "Permission denied" errors we got when invoking make(1) after modifying a source file and removes the need to delete the generated scripts manually. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> --- Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index cbc7402..d9cc82a 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,7 @@ edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/devtools|g" %: %.in Makefile lib/common.sh @echo "GEN $@" + @$(RM) "$@" @m4 -P $@.in | $(edit) >$@ @chmod a-w "$@" @chmod +x "$@" -- 1.7.7.4
4735
Age (days ago)
4735
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lukas Fleischer