1*d996a567SRobert Mustacchi# 2*d996a567SRobert Mustacchi# This file and its contents are supplied under the terms of the 3*d996a567SRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0. 4*d996a567SRobert Mustacchi# You may only use this file in accordance with the terms of version 5*d996a567SRobert Mustacchi# 1.0 of the CDDL. 6*d996a567SRobert Mustacchi# 7*d996a567SRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this 8*d996a567SRobert Mustacchi# source. A copy of the CDDL is also available via the Internet at 9*d996a567SRobert Mustacchi# http://www.illumos.org/license/CDDL. 10*d996a567SRobert Mustacchi# 11*d996a567SRobert Mustacchi 12*d996a567SRobert Mustacchi# 13*d996a567SRobert Mustacchi# Copyright 2020 Oxide Computer Company 14*d996a567SRobert Mustacchi# 15*d996a567SRobert Mustacchi 16*d996a567SRobert Mustacchiinclude $(SRC)/cmd/Makefile.cmd 17*d996a567SRobert Mustacchiinclude $(SRC)/test/Makefile.com 18*d996a567SRobert Mustacchi 19*d996a567SRobert MustacchiROOTOPTPKG = $(ROOT)/opt/util-tests/tests/head 20*d996a567SRobert MustacchiPROG = head_test 21*d996a567SRobert MustacchiDATAFILES = \ 22*d996a567SRobert Mustacchi 5221.in \ 23*d996a567SRobert Mustacchi 5221.out \ 24*d996a567SRobert Mustacchi multi.1.out \ 25*d996a567SRobert Mustacchi multi.4.out \ 26*d996a567SRobert Mustacchi rings.1.out \ 27*d996a567SRobert Mustacchi rings.2.out \ 28*d996a567SRobert Mustacchi rings.3.out \ 29*d996a567SRobert Mustacchi rings.5.out \ 30*d996a567SRobert Mustacchi rings.in \ 31*d996a567SRobert Mustacchi stdin-nul.1.out \ 32*d996a567SRobert Mustacchi stdin-nul.2.out \ 33*d996a567SRobert Mustacchi stdin-nul.3.out \ 34*d996a567SRobert Mustacchi stdin.1.out \ 35*d996a567SRobert Mustacchi stdin.11.out \ 36*d996a567SRobert Mustacchi stdin.2.out \ 37*d996a567SRobert Mustacchi stdin.3.out \ 38*d996a567SRobert Mustacchi stdin.5.out \ 39*d996a567SRobert Mustacchi stdin.multi.out \ 40*d996a567SRobert Mustacchi stdin.nonewline.out 41*d996a567SRobert Mustacchi 42*d996a567SRobert Mustacchi 43*d996a567SRobert MustacchiROOTPROG = $(PROG:%=$(ROOTOPTPKG)/%) 44*d996a567SRobert MustacchiROOTDATA = $(DATAFILES:%=$(ROOTOPTPKG)/%) 45*d996a567SRobert Mustacchi 46*d996a567SRobert Mustacchi$(ROOTDATA) := FILEMODE = 0444 47*d996a567SRobert Mustacchi 48*d996a567SRobert Mustacchiall: 49*d996a567SRobert Mustacchi 50*d996a567SRobert Mustacchiinstall: $(ROOTPROG) $(ROOTDATA) 51*d996a567SRobert Mustacchi 52*d996a567SRobert Mustacchilint: 53*d996a567SRobert Mustacchi 54*d996a567SRobert Mustacchiclobber: clean 55*d996a567SRobert Mustacchi 56*d996a567SRobert Mustacchiclean: 57*d996a567SRobert Mustacchi 58*d996a567SRobert Mustacchi$(CMDS): $(TESTDIR) 59*d996a567SRobert Mustacchi 60*d996a567SRobert Mustacchi$(ROOTOPTPKG): 61*d996a567SRobert Mustacchi $(INS.dir) 62*d996a567SRobert Mustacchi 63*d996a567SRobert Mustacchi$(ROOTOPTPKG)/%: %.ksh $(ROOTOPTPKG) 64*d996a567SRobert Mustacchi $(INS.rename) 65*d996a567SRobert Mustacchi 66*d996a567SRobert Mustacchi$(ROOTOPTPKG)/%: % $(ROOTOPTPKG) 67*d996a567SRobert Mustacchi $(INS.file) 68