Skip to content

Commit

Permalink
Generate codlist.c only when MAINTAINER_MODE
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
matteo-frigo committed Sep 20, 2017
1 parent f243f8c commit 4fbb72a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions support/Makefile.codelets
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
CODLIST = codlist.c
CODELET_NAME=codelet_

# only delete codlist.c in maintainer-mode, since it is included in the dist
# FIXME: is there a way to delete in 'make clean' only when builddir != srcdir?
maintainer-clean-local:
rm -f $(CODLIST)

if MAINTAINER_MODE

# rule to build codlist
$(CODLIST): Makefile
( \
Expand All @@ -31,13 +38,6 @@ $(CODLIST): Makefile
echo "};"; \
) >$@

# only delete codlist.c in maintainer-mode, since it is included in the dist
# FIXME: is there a way to delete in 'make clean' only when builddir != srcdir?
maintainer-clean-local:
rm -f $(CODLIST)

if MAINTAINER_MODE

#INDENT = indent -kr -cs -i5 -l800 -fca -nfc1 -sc -sob -cli4 -TR -Tplanner -TV
TWOVERS = sh ${top_srcdir}/support/twovers.sh
GENFFTDIR = ${top_builddir}/genfft
Expand Down

0 comments on commit 4fbb72a

Please sign in to comment.