[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Making variably-named .in files work with config.status
From: |
Reuben Thomas |
Subject: |
Making variably-named .in files work with config.status |
Date: |
Sun, 23 Dec 2012 21:36:30 +0000 |
In my configure.ac, I have:
AC_SUBST(PACKAGE) # so that automake can generate dependencies for
${PACKAGE}*.rockspec
AC_CONFIG_FILES(${PACKAGE}.rockspec)
This works in getting the requisite dependency generated in Makefile.in:
${PACKAGE}-git-1.rockspec: $(top_builddir)/config.status
$(srcdir)/${PACKAGE}-git-1.rockspec.in
cd $(top_builddir) && $(SHELL) ./config.status $@
But when I actually try to use the rule, it fails:
$ make zee-git-1.rockspec
cd . && /bin/bash ./config.status zee-git-1.rockspec
config.status: error: invalid argument: `zee-git-1.rockspec'
make: *** [zee-git-1.rockspec] Error 1
As far as I can tell, this is because config.status doesn't get passed a
value for PACKAGE.
AC_ARG_VAR doesn't seem to be relevant here, and I'm out of other ideas
after searching online and reading the autoconf manual. What should I be
doing here?
--
http://rrt.sc3d.org
- Making variably-named .in files work with config.status,
Reuben Thomas <=