瀏覽代碼

tools/Makefile.am: make manpages depend on source rather than on executables.

  Distributed files should never depend on non-distributed built
  files. If you distribute something generated, distribute its
  sources.
  Otherwise make distcheck fails, because although distributed, foo.1
  depends on a non-distributed built file foo$(EXEEXT). foo$(EXEEXT)
  is built by the user, so it will always appear to be newer than the
  distributed foo.1.

  We assume the help for a command does not change unless the source
  file for this command or configure.ac change.
Nathalie Furmento 13 年之前
父節點
當前提交
deffcaec0e
共有 1 個文件被更改,包括 15 次插入13 次删除
  1. 15 13
      tools/Makefile.am

+ 15 - 13
tools/Makefile.am

@@ -1,7 +1,7 @@
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
 # Copyright (C) 2009-2011  Université de Bordeaux 1
-# Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+# Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
 #
 # StarPU is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
@@ -51,21 +51,23 @@ dist_bin_SCRIPTS +=	\
 
 
 if STARPU_HAVE_HELP2MAN
-starpu_calibrate_bus.1: starpu_calibrate_bus
-	help2man --no-discard-stderr -N ./starpu_calibrate_bus > starpu_calibrate_bus.1
-
-starpu_machine_display.1: starpu_machine_display
-	help2man --no-discard-stderr -N ./starpu_machine_display > starpu_machine_display.1
-
-starpu_perfmodel_display.1: starpu_perfmodel_display
-	help2man --no-discard-stderr -N ./starpu_perfmodel_display > starpu_perfmodel_display.1
-
-starpu_perfmodel_plot.1: starpu_perfmodel_plot
-	help2man --no-discard-stderr -N ./starpu_perfmodel_plot > starpu_perfmodel_plot.1
+starpu_calibrate_bus.1: starpu_calibrate_bus.c $(top_srcdir)/configure.ac
+	$(MAKE) $(AM_MAKEFLAGS) $*$(EXEEXT)
+	help2man --no-discard-stderr -N --output=$@ ./$*$(EXEEXT)
+starpu_machine_display.1: starpu_machine_display.c $(top_srcdir)/configure.ac
+	$(MAKE) $(AM_MAKEFLAGS) $*$(EXEEXT)
+	help2man --no-discard-stderr -N --output=$@ ./$*$(EXEEXT)
+starpu_perfmodel_display.1: starpu_perfmodel_display.c $(top_srcdir)/configure.ac
+	$(MAKE) $(AM_MAKEFLAGS) $*$(EXEEXT)
+	help2man --no-discard-stderr -N --output=$@ ./$*$(EXEEXT)
+starpu_perfmodel_plot.1: starpu_perfmodel_plot.c $(top_srcdir)/configure.ac
+	$(MAKE) $(AM_MAKEFLAGS) $*$(EXEEXT)
+	help2man --no-discard-stderr -N --output=$@ ./$*$(EXEEXT)
+endif
 
 dist_man1_MANS =\
 	starpu_calibrate_bus.1 \
 	starpu_machine_display.1 \
 	starpu_perfmodel_display.1 \
 	starpu_perfmodel_plot.1
-endif
+