File:  [ELWIX - Embedded LightWeight unIX -] / libaitrpc / debian / Makefile.in
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Tue Oct 29 01:33:15 2024 UTC (5 weeks, 2 days ago) by misho
Branches: MAIN
CVS tags: rpc9_7, RPC9_6, HEAD
Version 9.6

prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@

PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PACKAGE_ARCH = @target_cpu@
PACKAGE_REV = 1

DEBIAN_ARCH = @DEBIAN_ARCH@

INSTALL = @INSTALL@

INC = ../inc
LIB = ../lib

LIBSO = ${PACKAGE_NAME}.so
LIBSO_CLI = ${PACKAGE_NAME}_cli.so

DEBNAME=${PACKAGE_NAME}_${PACKAGE_VERSION}-${PACKAGE_REV}_${DEBIAN_ARCH}

all: depend
	dpkg-deb -b --root-owner-group ${DEBNAME}

depend:
	mkdir -p ${DEBNAME}/DEBIAN
	cp control ${DEBNAME}/DEBIAN
	mkdir -p ${DEBNAME}${includedir}
	mkdir -p ${DEBNAME}${libdir}
	${INSTALL} ${INC}/aitrpc.h ${DEBNAME}${includedir}
	${INSTALL} ${INC}/aitrpc_pkt.h ${DEBNAME}${includedir}
	${INSTALL} ${INC}/aitrpc_cli.h ${DEBNAME}${includedir}
	${INSTALL} ${LIB}/${LIBSO} ${DEBNAME}${libdir}
	ln -sf ${libdir}/${LIBSO} ${DEBNAME}${libdir}/${LIBSO}.${PACKAGE_VERSION}
	${INSTALL} ${LIB}/${LIBSO_CLI} ${DEBNAME}${libdir}
	ln -sf ${libdir}/${LIBSO_CLI} ${DEBNAME}${libdir}/${LIBSO_CLI}.${PACKAGE_VERSION}

clean:
	rm -rf *~
	rm -rf ${DEBNAME}
	rm -rf ${DEBNAME}.deb

install:


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>