diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-11-18 19:10:28 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-11-18 19:45:54 -0500 |
commit | fb2c495f94fd5a87db2960a28e0c264fb94bfa29 (patch) | |
tree | 67fd2fb7a0165406e7d23f3fd6741718399318b6 /sim/Makefile.am | |
parent | a6e8dea6862f09ae7fef6266142de2868a4e7a1d (diff) | |
download | gdb-fb2c495f94fd5a87db2960a28e0c264fb94bfa29.zip gdb-fb2c495f94fd5a87db2960a28e0c264fb94bfa29.tar.gz gdb-fb2c495f94fd5a87db2960a28e0c264fb94bfa29.tar.bz2 |
sim: avoid installing headers when there is no sim
If we aren't building any sims, don't install the sim headers as they
won't be useful to anyone.
Diffstat (limited to 'sim/Makefile.am')
-rw-r--r-- | sim/Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/Makefile.am b/sim/Makefile.am index fd4b768..4831fbc 100644 --- a/sim/Makefile.am +++ b/sim/Makefile.am @@ -28,6 +28,7 @@ AM_MAKEFLAGS = SIM_PRIMARY_TARGET=$(SIM_PRIMARY_TARGET) # We don't set some of these vars here, but we need to define them so they may # be used consistently in local.mk files we include below. +pkginclude_HEADERS = check_PROGRAMS = noinst_LIBRARIES = EXTRA_PROGRAMS = @@ -58,9 +59,11 @@ SIM_ALL_RECURSIVE_DEPS = nltvals: $(srccom)/gennltvals.py --cpp "$(CPP)" -pkginclude_HEADERS = \ +if ENABLE_SIM +pkginclude_HEADERS += \ $(srcroot)/include/sim/callback.h \ $(srcroot)/include/sim/sim.h +endif include common/local.mk if SIM_ENABLE_IGEN |