SERVICE.mk revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/*
* -lcs service support
*
* @(#)service (AT&T Research) 1997-11-11
*
* service [ type [ mode ] [ dir ] ] :SERVICE: prerequisites
*
* type defaults to tcp, mode defaults to null
*/
if ! SERVICEDIR
SERVICESUFFIX = .svc
service = $(<:O=1)
if ! ( type = "$(<:O=2:/,/ /G)" )
for opt $(<:O>=3)
if "$(opt:N=-*|*=*)"
else
$$(SERVICEDIR) :INSTALLDIR:
if dir
else
$$(SERVICEDIR)/$(dir)/$(service)/$(service)$(SERVICESUFFIX) :INSTALL: preserve=1 $(mode) $(service)$(SERVICESUFFIX)