diff options
| author | Dave Heller <hellerda@us.ibm.com> | 2017-08-30 20:35:32 -0400 |
|---|---|---|
| committer | Dave Heller <hellerda@us.ibm.com> | 2017-08-30 20:35:32 -0400 |
| commit | f7a2cefd3296c0800523f7e6d117a7c2927adcc8 (patch) | |
| tree | 50b95de0bc4cdebec2fc07fdf640905441547f2d | |
| parent | 2b37ee3213f6cf9baa093b281de711bbcb55b236 (diff) | |
| download | sb-signing-utils-f7a2cefd3296c0800523f7e6d117a7c2927adcc8.tar.gz sb-signing-utils-f7a2cefd3296c0800523f7e6d117a7c2927adcc8.zip | |
Add simple make install/uninstall to lite method of building
Signed-off-by: Dave Heller <hellerda@us.ibm.com>
| -rw-r--r-- | Makefile.lite | 12 | ||||
| -rw-r--r-- | README.md | 21 |
2 files changed, 33 insertions, 0 deletions
diff --git a/Makefile.lite b/Makefile.lite index 4c8bfd6..e8e1645 100644 --- a/Makefile.lite +++ b/Makefile.lite @@ -9,3 +9,15 @@ print-container: print-container.c clean: $(RM) create-container print-container +prefix = /usr/local +exec_prefix = $(prefix) +bindir = $(exec_prefix)/bin + +install: + cp create-container print-container $(bindir)/ + cp crtSignedContainer.sh sign-with-local-keys.sh $(bindir)/ + +uninstall: + cd $(bindir) && $(RM) create-container print-container + cd $(bindir) && $(RM) crtSignedContainer.sh sign-with-local-keys.sh + @@ -102,6 +102,10 @@ equivalent to running: $ libtoolize -f && aclocal && autoheader && automake -a && autoconf && \ configure && make +Or: + +$ autoreconf -i -Wno-unsupported && ./configure && make + To clean the project, including removing *all* GNU toolchain support files, run: @@ -121,6 +125,23 @@ To clean the project, run the following, which is really just doing a $ clean_all.sh lite +Installing the project +-------------------- +To install the project (executable files) locally, after running the +preferred build method above: + +$ make install + +To uninstall: + +$ make uninstall + +The files install to /usr/local/bin by default. You must have write +permission to this directory. To install to a different directory: + +$ make install bindir=/preferred/install/path/ +$ make uninstall bindir=/preferred/install/path/ + Signing HOWTO ------------- |

