summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2012-06-26 18:09:10 -0700
committerRoland McGrath <[email protected]>2012-06-26 18:09:10 -0700
commitb2589ffa7c2bec754952acc8116e03853d65563d (patch)
treefff8f503ef2064011ad854f1ba94f2f17d0651dc
parent547049b7a0c4f29ecc9ac5d49e6f2195a7c6346e (diff)
Add a rule to make build failure w/o --enable-maintainer-mode clearer.
-rw-r--r--libcpu/ChangeLog4
-rw-r--r--libcpu/Makefile.am9
2 files changed, 12 insertions, 1 deletions
diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog
index ef9e7e51..b1d79a98 100644
--- a/libcpu/ChangeLog
+++ b/libcpu/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-26 Roland McGrath <[email protected]>
+
+ * Makefile.am [!MAINTAINER_MODE] ($(srcdir)/%_dis.h): New rule.
+
2012-02-24 Mark Wielaard <[email protected]>
* Makefile.am (CLEANFILES): Move %_dis.h to...
diff --git a/libcpu/Makefile.am b/libcpu/Makefile.am
index c1facd7c..8f62be23 100644
--- a/libcpu/Makefile.am
+++ b/libcpu/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to create Makefile.in
##
-## Copyright (C) 2002-2011 Red Hat, Inc.
+## Copyright (C) 2002-2012 Red Hat, Inc.
## This file is part of elfutils.
##
## This file is free software; you can redistribute it and/or modify
@@ -55,6 +55,13 @@ noinst_PROGRAMS = i386_gendis
$(srcdir)/%_dis.h: %_defs i386_gendis
./i386_gendis $< > $@
+
+else
+
+$(srcdir)/%_dis.h:
+ @echo '*** missing $@; configure with --enable-maintainer-mode'
+ @false
+
endif
%.mnemonics: %_defs