From 93c53926b46237847fb1b1c2ef64a8b25fad5a1b Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Mon, 21 Oct 2013 23:00:48 +0200 Subject: [PATCH] only recreate rcsim.h if necessary TODO: move it from source to object tree Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/e1f721a8dbec84f34900da66f3571e6f826e7a31 Author: Stefan Seyfried Date: 2013-10-21 (Mon, 21 Oct 2013) --- src/Makefile.am | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 3d3c29d6b..5d1b40ff3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,8 +1,7 @@ BUILT_SOURCES = rcsim.h -rcsim.h: - pushd $(top_srcdir)/src/ && ./create_rcsim_h.sh > $@ - -.PHONY: rcsim.h +# ugly: this is in the source tree, but belongs into the build dir :-( +rcsim.h: $(srcdir)/driver/rcinput.h $(srcdir)/create_rcsim_h.sh + pushd $(srcdir) && sh ./create_rcsim_h.sh > $@ AM_CXXFLAGS = -fno-rtti -fno-exceptions -D__STDC_FORMAT_MACROS