config.scm.in: rename to config.scm.in.in, substitute from Makefile.
* src/mcron/config.scm.in: renamed to config.scm.in.in. (config-sbin-dir): new variable. * Makefile.am: substitute in config.scm.in.
This commit is contained in:
parent
48b8d47ca2
commit
ec6a023c66
3 changed files with 11 additions and 7 deletions
15
Makefile.am
15
Makefile.am
|
|
@ -100,10 +100,7 @@ DISTCLEANFILES = src/mcron/config.scm
|
|||
--warn=format --warn=unbound-variable --warn=arity-mismatch \
|
||||
--target="$(host)" --output="$@" "$<" $(devnull_verbose)
|
||||
|
||||
|
||||
bin/% : src/%.in Makefile
|
||||
$(AM_V_GEN)$(MKDIR_P) bin ; \
|
||||
sed -e 's,%PREFIX%,${prefix},g' \
|
||||
do_subst = sed -e 's,%PREFIX%,${prefix},g' \
|
||||
-e 's,%modsrcdir%,${guilesitedir},g' \
|
||||
-e 's,%modbuilddir%,${guilesitegodir},g' \
|
||||
-e 's,%localstatedir%,${localstatedir},g' \
|
||||
|
|
@ -114,8 +111,14 @@ bin/% : src/%.in Makefile
|
|||
-e 's,%PACKAGE_BUGREPORT%,@PACKAGE_BUGREPORT@,g' \
|
||||
-e 's,%PACKAGE_NAME%,@PACKAGE_NAME@,g' \
|
||||
-e 's,%PACKAGE_URL%,@PACKAGE_URL@,g' \
|
||||
-e 's,%GUILE%,$(GUILE),g' \
|
||||
$< > $@ ; \
|
||||
-e 's,%GUILE%,$(GUILE),g'
|
||||
|
||||
src/mcron/config.scm: src/mcron/config.scm.in Makefile
|
||||
$(AM_V_GEN)$(do_subst) $< > $@
|
||||
|
||||
bin/% : src/%.in Makefile
|
||||
$(AM_V_GEN)$(MKDIR_P) bin ; \
|
||||
$(do_subst) $< > $@ ; \
|
||||
chmod a+x $@
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue