citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 6132c261b1de66b2fef5df2d76eda879a880ba35
parent c8febecaa6aadd5e35e515ee6c4f70e9f8bb5433
Author: Kyle Milz <milz@imac.0x30.net>
Date:   Thu,  4 Mar 2021 12:47:52 -0800

inst: create citrun_h.h here

Diffstat:
MMakefile | 1-
Dinclude/Makefile | 12------------
Minst/Makefile | 9+++++++++
3 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,6 +1,5 @@ SUBDIR += bin SUBDIR += gl -SUBDIR += include SUBDIR += inst SUBDIR += lib # SUBDIR += share diff --git a/include/Makefile b/include/Makefile @@ -1,12 +0,0 @@ -all: citrun_h.h - -citrun_h.h: citrun.h - echo "static const char *$* = R\"(" > ${.CURDIR}/$@ - cat ${.CURDIR}/citrun.h >> ${.CURDIR}/$@ - echo ")\";" >> ${.CURDIR}/$@ - -clean: - rm -f citrun_h.h - - -.include "../Makefile.inc" diff --git a/inst/Makefile b/inst/Makefile @@ -36,5 +36,14 @@ SRCS += fe_unix.cc SRCS += action.cc SRCS += visitor.cc +CLEANFILES += citrun_h.h + +action.cc: citrun_h.h + +citrun_h.h: ../include/citrun.h + echo "static const char *$* = R\"(" > ${.CURDIR}/$@ + cat $? >> ${.CURDIR}/$@ + echo ")\";" >> ${.CURDIR}/$@ + .include <bsd.prog.mk>