1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 #
  12 # Copyright (c) 2012 by Delphix. All rights reserved.
  13 # Copyright 2016 Nexenta Systems, Inc.  All rights reserved.
  14 #
  15 include $(SRC)/Makefile.master
  16 
  17 ROOTOPTPKG = $(ROOT)/opt/nfsgen-tests
  18 NFSV4DIR = $(ROOTOPTPKG)/bin/nfsv4
  19 NFSV4SH = $(NFSV4DIR)
  20 
  21 DESC = stf_description
  22 PROGS = configure srv_setup unconfigure
  23 
  24 STFDESC = $(DESC:%=$(NFSV4DIR)/%)
  25 SHS = $(PROGS:%=$(NFSV4SH)/%)
  26 $(STFDESC) := FILEMODE = 0444
  27 $(SHS) := FILEMODE = 0555
  28 
  29 all lint clean clobber:
  30 
  31 install: $(STFDESC) $(SHS)
  32 
  33 $(STFDESC) : $(NFSV4DIR)
  34 $(SHS): $(NFSV4SH)
  35 
  36 $(NFSV4DIR):
  37         $(INS.dir)
  38 
  39 $(NFSV4SH)/% : %.ksh
  40         $(INS.rename)
  41 
  42 $(NFSV4DIR)/% : %
  43         $(INS.file)