samples: install "broken" file

Currently the broken file is not installed when doing an non-local install.
This causes ct-ng list-samples to not notify the user that a sample is
broken.  This commit triggers the creation of the broken file as needed.

Signed-off-by: Yogesh Sharma <ysharm01@harris.com>
This commit is contained in:
Yogesh Sharma 2016-05-26 10:22:42 -04:00
parent 270f1285bf
commit 4d9a4f5534

View File

@ -349,6 +349,9 @@ install-lib-samples: $(DESTDIR)$(libdir) install-lib-main
$(install) -m 644 "$${libc_cfg}" \ $(install) -m 644 "$${libc_cfg}" \
"$(DESTDIR)$(libdir)/$${samp_dir}"; \ "$(DESTDIR)$(libdir)/$${samp_dir}"; \
done; \ done; \
[ -e "$${samp_dir}/broken" ] && \
$(install) -m 644 "$${samp_dir}/broken" \
"$(DESTDIR)$(libdir)/$${samp_dir}/" || :; \
done done
@$(install) -m 644 samples/samples.mk "$(DESTDIR)$(libdir)/samples/samples.mk" @$(install) -m 644 samples/samples.mk "$(DESTDIR)$(libdir)/samples/samples.mk"