summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2016-03-22 13:37:21 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2016-03-22 13:45:19 (GMT)
commit66a305bb2fda5e7c9d813ee067e4923d9f0a631e (patch) (side-by-side diff)
treef73b5ccccff3e9f361c135fc0d9b2d1d40f95969
parentf13d2563fa022db403fafd555ef5ced35872c35e (diff)
downloadcflow-66a305bb2fda5e7c9d813ee067e4923d9f0a631e.tar.gz
cflow-66a305bb2fda5e7c9d813ee067e4923d9f0a631e.tar.bz2
Fix flowchart-generation rule in Makefile and in docs
Don't use $@ in explicit rules.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--doc/cflow.texi4
-rw-r--r--src/Makefile.am2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/cflow.texi b/doc/cflow.texi
index 5ddaf40..573dfb2 100644
--- a/doc/cflow.texi
+++ b/doc/cflow.texi
@@ -1141,7 +1141,7 @@ for which you want to generate a flow chart, add the following statements:
@var{program}_CFLOW_INPUT=$(@var{program}_OBJECTS:.$(OBJEXT)=.c)
@var{program}.cflow: @var{program}_CFLOW_INPUT cflow.rc Makefile
CFLOWRC=@var{path-to-your-cflow.rc} \
- cflow -o$@@ $(CFLOW_FLAGS) $(DEFS) \
+ cflow -o@var{program}.cflow $(CFLOW_FLAGS) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) \
$(@var{program}_CFLOW_INPUT)
@@ -1175,7 +1175,7 @@ CFLOW_FLAGS=-i^s
cflow_CFLOW_INPUT=$(cflow_OBJECTS:.$(OBJEXT)=.c)
cflow.cflow: $(cflow_CFLOW_INPUT) cflow.rc Makefile
CFLOWRC=$(top_srcdir)/src/cflow.rc \
- cflow -o$@@ $(CFLOW_FLAGS) $(DEFS) \
+ cflow -ocflow.cflow $(CFLOW_FLAGS) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) \
$(cflow_CFLOW_INPUT)
diff --git a/src/Makefile.am b/src/Makefile.am
index 4caf613..dc52f0b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -47,7 +47,7 @@ CFLOW_FLAGS=-i^s --brief
cflow_CFLOW_INPUT=$(cflow_OBJECTS:.@OBJEXT@=.c)
cflow.cflow: $(cflow_CFLOW_INPUT) cflow.rc Makefile
$(AM_V_GEN)CFLOWRC=$(top_srcdir)/src/cflow.rc \
- $(CFLOW) -o$@ --cpp="$(CC) -E" $(CFLOW_FLAGS) $(DEFS) \
+ $(CFLOW) -ocflow.cflow --cpp="$(CC) -E" $(CFLOW_FLAGS) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) \
$(cflow_CFLOW_INPUT)

Return to:

Send suggestions and report system problems to the System administrator.