diff options
author | Philip Chimento <philip@endlessm.com> | 2013-07-08 16:36:54 -0700 |
---|---|---|
committer | Philip Chimento <philip@endlessm.com> | 2013-10-18 14:02:26 -0700 |
commit | 9d0850b4fb74d21f7e3a5189567ef80fc0239b75 (patch) | |
tree | b0fb93c7861eb8e471d1ddc49b064c6288d96dd1 /tools/Makefile.am.inc | |
parent | 60369d32ec26deba64766b58b4470d7b9c8a629f (diff) |
'eos-application-manifest' tool with subcommands
This is the framework for an 'eos-application-manifest' tool with
subcommands as in git. Currently the 'help' and 'version' subcommands
are implemented.
[endlessm/eos-sdk#152]
Diffstat (limited to 'tools/Makefile.am.inc')
-rw-r--r-- | tools/Makefile.am.inc | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/tools/Makefile.am.inc b/tools/Makefile.am.inc index 1a790ce..6c177a5 100644 --- a/tools/Makefile.am.inc +++ b/tools/Makefile.am.inc @@ -1,3 +1,31 @@ # Copyright 2013 Endless Mobile, Inc. -bin_SCRIPTS = tools/eos-run-test +bin_SCRIPTS = \ + tools/eos-run-test \ + tools/eos-application-manifest/eos-application-manifest + $(NULL) + +# Use the following script to replace $datadir inside the script, as suggested +# by the Autoconf manual; because $datadir and friends only work inside +# Makefiles. And as long as we're replacing this, go ahead and replace +# $PACKAGE_VERSION as well. +tools_edit = sed \ + -e 's|@datadir[@]|$(datadir)|g' \ + -e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \ + $(NULL) +tools/eos-application-manifest/eos-application-manifest: tools/eos-application-manifest/eos-application-manifest.in Makefile + $(AM_V_GEN)$(MKDIR_P) tools/eos-application-manifest && \ + rm -f $@ $@.tmp && \ + $(tools_edit) $< >$@.tmp && \ + chmod +x $@.tmp && \ + chmod a-w $@.tmp && \ + mv $@.tmp $@ + +CLEANFILES += tools/eos-application-manifest/eos-application-manifest +EXTRA_DIST += tools/eos-application-manifest/eos-application-manifest.in + +commandsdir = $(datarootdir)/eos-application-manifest/commands +dist_commands_DATA = \ + tools/eos-application-manifest/commands/help.js \ + tools/eos-application-manifest/commands/version.js \ + $(NULL) |