build(striker-ui-api): add compressed API executable and its install logic to Makefile

main
Tsu-ba-me 3 years ago
parent fb21cad83c
commit 8a2b96bffa
  1. 2
      Makefile.am
  2. 1
      configure.ac
  3. 3
      striker-ui-api/.gitignore
  4. 17
      striker-ui-api/Makefile.am

@ -22,7 +22,7 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = Anvil cgi-bin html journald.conf.d man ocf \ SUBDIRS = Anvil cgi-bin html journald.conf.d man ocf \
pxe scancore-agents scripts share striker-ui \ pxe scancore-agents scripts share striker-ui \
tools units striker-ui-api tools units
anvilconfdir = ${sysconfdir}/anvil anvilconfdir = ${sysconfdir}/anvil

@ -166,6 +166,7 @@ AC_CONFIG_FILES([Makefile
scripts/Makefile scripts/Makefile
share/Makefile share/Makefile
striker-ui/Makefile striker-ui/Makefile
striker-ui-api/Makefile
tools/Makefile tools/Makefile
units/Makefile]) units/Makefile])

@ -2,4 +2,5 @@
/node_modules /node_modules
# production # production
striker-ui-api /striker-ui-api
!/striker-ui-api.tar.xz

@ -0,0 +1,17 @@
MAINTAINERCLEANFILES = Makefile.in
compressedapi = striker-ui-api.tar.xz
extractedapi = striker-ui-api
EXTRA_DIST = $(compressedapi)
# Blank target; the compressed API executable should be usable as-is.
$(compressedapi): ;
install-data-hook:
-@echo "Extract the API executable."
tar -xvf $(srcdir)/$(compressedapi) -C $(DESTDIR)/$(sbindir)
uninstall-hook:
-@echo "Remove the API executable."
rm -f $(DESTDIR)/$(sbindir)/$(extractedapi)
Loading…
Cancel
Save