From 4d2a50486b26cacc10b561609e7d5c849bf93235 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 18 Jun 2006 17:23:49 +0000 Subject: [PATCH] Added .PHONY rule --- src/makefile.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/makefile.c b/src/makefile.c index d0aa88f..e25b36f 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -62,6 +62,11 @@ static int _makefile_write(Configure * configure, Config * config, FILE * fp, || _write_install(configure->prefs, config, fp) != 0 || _write_uninstall(configure->prefs, config, fp) != 0) return 1; + if(!(configure->prefs->flags & PREFS_n)) + fprintf(fp, "%s%s%s", "\n.PHONY: all", + config_get(config, "", "subdirs") != NULL + ? " subdirs" : "", + " clean distclean install uninstall\n"); return 0; }