From: Roland McGrath Date: Sun, 16 Oct 2011 16:23:00 +0000 (-0700) Subject: Include *_dis.h headers in dist; generate them only for --enable-maintainer-mode. X-Git-Tag: elfutils-0.153~21^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9cefae36d30f0bbc3d213c92716529e6a071762;p=thirdparty%2Felfutils.git Include *_dis.h headers in dist; generate them only for --enable-maintainer-mode. --- diff --git a/.gitignore b/.gitignore index ec4faee86..6cfcc7c86 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ config/missing config/ylwrap configure elfutils.spec +libcpu/*_dis.h libdw/known-dwarf.h po/en@boldquot.po po/en@quot.po diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog index c49f8b9c6..52a073abf 100644 --- a/libcpu/ChangeLog +++ b/libcpu/ChangeLog @@ -1,3 +1,12 @@ +2011-10-16 Roland McGrath + + * Makefile.am (libcpu_i386_a_SOURCES): Add i386_dis.h. + (libcpu_x86_64_a_SOURCES): Add x86_64_dis.h. + (i386_disasm.o, x86_64_disasm.o): Depend on those in $(srcdir). + (%_dis.h): Renamed target pattern to ... + ($(srcdir)/%_dis.h): ... this. + (noinst_HEADERS, noinst_PROGRAMS): Put under [MAINTAINER_MODE]. + 2010-08-16 Roland McGrath * Makefile.am (%_defs): New pattern rule. diff --git a/libcpu/Makefile.am b/libcpu/Makefile.am index c62db6d01..7dd256100 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-2010 Red Hat, Inc. +## Copyright (C) 2002-2011 Red Hat, Inc. ## This file is part of Red Hat elfutils. ## ## Red Hat elfutils is free software; you can redistribute it and/or modify @@ -33,21 +33,26 @@ LEX_OUTPUT_ROOT = lex.$( $@ -%_dis.h: %_defs i386_gendis +if MAINTAINER_MODE +noinst_HEADERS = memory-access.h i386_parse.h i386_data.h + +noinst_PROGRAMS = i386_gendis + +$(srcdir)/%_dis.h: %_defs i386_gendis ./i386_gendis $< > $@ +endif %.mnemonics: %_defs sed '1,/^%%/d;/^#/d;/^[[:space:]]*$$/d;s/[^:]*:\([^[:space:]]*\).*/MNE(\1)/;s/{[^}]*}//g;/INVALID/d' \ @@ -65,8 +70,6 @@ i386_gendis_LDADD = $(libeu) -lm $(libmudflap) i386_parse.h: i386_parse.c ; -noinst_HEADERS = memory-access.h i386_parse.h i386_data.h - EXTRA_DIST = defs/i386 CLEANFILES += $(foreach P,i386 x86_64,$P_defs $P.mnemonics $P_dis.h)