Skip to content

Commit 4fbb72a

Browse files
committedSep 20, 2017
Generate codlist.c only when MAINTAINER_MODE
The user is not supposed to regenerate .c files. In addition, the generation rule is subtly nonportable (it depends on whether or not '#' can be escaped in Makefiles, an issue that does not appear settled.)
1 parent f243f8c commit 4fbb72a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎support/Makefile.codelets

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
CODLIST = codlist.c
66
CODELET_NAME=codelet_
77

8+
# only delete codlist.c in maintainer-mode, since it is included in the dist
9+
# FIXME: is there a way to delete in 'make clean' only when builddir != srcdir?
10+
maintainer-clean-local:
11+
rm -f $(CODLIST)
12+
13+
if MAINTAINER_MODE
14+
815
# rule to build codlist
916
$(CODLIST): Makefile
1017
( \
@@ -31,13 +38,6 @@ $(CODLIST): Makefile
3138
echo "};"; \
3239
) >$@
3340

34-
# only delete codlist.c in maintainer-mode, since it is included in the dist
35-
# FIXME: is there a way to delete in 'make clean' only when builddir != srcdir?
36-
maintainer-clean-local:
37-
rm -f $(CODLIST)
38-
39-
if MAINTAINER_MODE
40-
4141
#INDENT = indent -kr -cs -i5 -l800 -fca -nfc1 -sc -sob -cli4 -TR -Tplanner -TV
4242
TWOVERS = sh ${top_srcdir}/support/twovers.sh
4343
GENFFTDIR = ${top_builddir}/genfft

0 commit comments

Comments
 (0)
Please sign in to comment.