diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-13 12:51:59 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-13 13:18:56 (EDT) |
commit | f1d89b5222cffe8ddb5de0952c8b13f5a6be3c53 (patch) | |
tree | aa5f84e5e68c78d7074cebd1558bcf7128ea4043 | |
parent | 5ea0ae4037cb9d92981e60f1181a62af235cc40f (diff) |
Don't rely on POSIX-conformant comment parsing.
POSIX.1-2008 specifies that comments in makefile syntax start with a "#"
and continue "until an **unescaped** <newline> is reached" (empahsis
added).
FreeBSD's pmake apparently ignores the backslash before the newline in
comments and prints a "Need an operator" error message while parsing a
generated src/Makefile:
$ make
Making executable files...
"Makefile", line 49: Need an operator
make: fatal errors encountered -- cannot continue
NetBSD's pmake on the other hand appears to be POSIX-conformant in this
regard.
See also:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html#tag_20_76_13_01
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Backslash_002dNewline-Comments.html
-rw-r--r-- | man/Makefile.in | 64 | ||||
-rw-r--r-- | src/Makefile.in | 4 |
2 files changed, 34 insertions, 34 deletions
diff --git a/man/Makefile.in b/man/Makefile.in index 0409339..ff69ce1 100644 --- a/man/Makefile.in +++ b/man/Makefile.in @@ -36,39 +36,39 @@ sed_script = s&@@PACKAGE_NAME@@&$(package_name)&;\ .SUFFIXES: .in #SRCS_1 = opkbuild.1.in \ - ob-checkbuilddeps.1.in \ - ob-buildenv.1.in \ - ob-unpacksource.1.in \ - ob-applypatches.1.in \ - ob-installplatconf.1.in \ - ob-installdocs.1.in \ - ob-gencontrol.1.in \ - ob-buildopk.1.in \ - ob-genchanges.1.in +# ob-checkbuilddeps.1.in \ +# ob-buildenv.1.in \ +# ob-unpacksource.1.in \ +# ob-applypatches.1.in \ +# ob-installplatconf.1.in \ +# ob-installdocs.1.in \ +# ob-gencontrol.1.in \ +# ob-buildopk.1.in \ +# ob-genchanges.1.in #SRCS_3 = ob_get_text_domain.3.in \ - ob_set_text_domain.3.in \ - ob_get_msg.3.in \ - ob_error.3.in \ - ob_warn.3.in \ - ob_info.3.in \ - ob_init_package.3.in \ - ob_parse_package_metadata.3.in \ - ob_get_binary_packages.3.in \ - ob_get_source_parameter.3.in \ - ob_get_binary_parameter.3.in \ - ob_summarize_package_arch.3.in \ - ob_summarize_package_plat.3.in \ - ob_parse_control.3.in \ - ob_parse_changelog.3.in \ - ob_validate_source_package_name.3.in \ - ob_validate_binary_package_name.3.in \ - ob_parse_version.3.in \ - ob_reduce_build_deps.3.in \ - ob_reduce_runinst_deps.3.in \ - ob_get_system_arch.3.in \ - ob_match_arch.3.in \ - ob_get_system_plat.3.in \ - ob_match_plat.3.in +# ob_set_text_domain.3.in \ +# ob_get_msg.3.in \ +# ob_error.3.in \ +# ob_warn.3.in \ +# ob_info.3.in \ +# ob_init_package.3.in \ +# ob_parse_package_metadata.3.in \ +# ob_get_binary_packages.3.in \ +# ob_get_source_parameter.3.in \ +# ob_get_binary_parameter.3.in \ +# ob_summarize_package_arch.3.in \ +# ob_summarize_package_plat.3.in \ +# ob_parse_control.3.in \ +# ob_parse_changelog.3.in \ +# ob_validate_source_package_name.3.in \ +# ob_validate_binary_package_name.3.in \ +# ob_parse_version.3.in \ +# ob_reduce_build_deps.3.in \ +# ob_reduce_runinst_deps.3.in \ +# ob_get_system_arch.3.in \ +# ob_match_arch.3.in \ +# ob_get_system_plat.3.in \ +# ob_match_plat.3.in SRCS = $(SRCS_1) $(SRCS_3) OBJS = $(SRCS:.in=) diff --git a/src/Makefile.in b/src/Makefile.in index 133e344..dc80e74 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -45,8 +45,8 @@ SRCS = opkbuild.sh \ ob-installplatconf.sh \ ob-installdocs.sh \ ob-gencontrol.sh \ - ob-buildopk.sh #\ - ob-genchanges.sh + ob-buildopk.sh \ +# ob-genchanges.sh OBJS = $(SRCS:.sh=) distdir = ../$(package_name)-$(package_version)/src |