From df0eb5268a6dbcec3b5c7677e648c9293149db79 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 6 May 2010 15:02:38 +0000 Subject: [PATCH] Also prepend $(DESTDIR) to $(PREFIX) when installing through scripts --- src/makefile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/makefile.c b/src/makefile.c index 865e31d..f3218f0 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -1714,7 +1714,7 @@ static void _install_target_script(Config * config, FILE * fp, return; if((script = config_get(config, target, "script")) == NULL) return; - fprintf(fp, "\t%s%s%s%s%s%s%s", script, " -p \"$(PREFIX)", + fprintf(fp, "\t%s%s%s%s%s%s%s", script, " -p \"$(DESTDIR)$(PREFIX)", *path ? "/" : "", *path ? path : "", "\" install \"", target, "\"\n"); } @@ -1988,7 +1988,7 @@ static void _uninstall_target_script(Config * config, FILE * fp, if((script = config_get(config, target, "script")) == NULL) return; - fprintf(fp, "\t%s%s%s%s%s%s%s", script, " -p \"$(PREFIX)", + fprintf(fp, "\t%s%s%s%s%s%s%s", script, " -p \"$(DESTDIR)$(PREFIX)", *path ? "/" : "", *path ? path : "", "\" uninstall \"", target, "\"\n"); }