From 9414164c2ef5b035d45012681b0938423d8da350 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 2 Mar 2005 19:39:55 +0000 Subject: [PATCH] added an 'install' target to these makefiles that just copy their binaries to the top level opensrf bin directory for now git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@154 9efc2488-bf62-4759-914b-345cdb29e865 --- src/Makefile | 4 ++++ src/router/Makefile | 11 ++--------- src/srfsh/Makefile | 3 +++ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Makefile b/src/Makefile index 5fc9001..c756053 100644 --- a/src/Makefile +++ b/src/Makefile @@ -5,6 +5,10 @@ all: router srfsh +install: + make -C srfsh install + make -C router install + transport: make -C libtransport diff --git a/src/router/Makefile b/src/router/Makefile index 6d24c67..6a1f242 100644 --- a/src/router/Makefile +++ b/src/router/Makefile @@ -8,16 +8,9 @@ LP=../libtransport LIB_SOURCES = $(LP)/generic_utils.c $(LP)/transport_socket.c $(LP)/transport_session.c $(LP)/transport_message.c $(LP)/transport_client.c $(LP)/sha.c all: router -#router_query router_register +install: router + cp router ../../bin -#router_register: router_register.c -# $(CC) $(CC_OPTS) -L ../../lib -lopensrf_transport -lxml2 router_register.c -o router_register - -#router_query: router_query.c -# $(CC) $(CC_OPTS) -L ../../lib -lopensrf_transport -lxml2 router_query.c -o router_query - -# The router is compiled as a static binary because of some -# necessary #defines that would break the library router: router.c $(LIB_SOURCES) $(CC) $(LD_OPTS) -D_ROUTER $(CC_OPTS) $(LIB_SOURCES) router.c -o $@ diff --git a/src/srfsh/Makefile b/src/srfsh/Makefile index 254ae1b..22dc47a 100644 --- a/src/srfsh/Makefile +++ b/src/srfsh/Makefile @@ -5,6 +5,9 @@ EXE_LD_OPTS = -L $(LIB_DIR) -lreadline -lxml2 -lopensrf_transport -lopensrf_stac all: srfsh +install: srfsh + cp srfsh ../../bin + srfsh: lib $(CC) $(CC_OPTS) $(EXE_LD_OPTS) srfsh.c -o $@ -- 2.11.0