xref: /illumos-gate/usr/src/test/util-tests/tests/rm/Makefile (revision 209df9ee79dbb44437103a136f447c6c3a6cd4b7)
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#
13# Copyright 2026 Oxide Computer Company
14#
15
16SCRIPTS = rm-test
17
18ROOTOPTDIR = $(ROOT)/opt/util-tests/tests
19ROOTOPTRM = $(ROOTOPTDIR)/rm
20ROOTOPTPROGS = $(SCRIPTS:%=$(ROOTOPTRM)/%)
21
22include $(SRC)/cmd/Makefile.cmd
23
24.KEEP_STATE:
25
26all: $(PROGS)
27
28install: $(ROOTOPTPROGS)
29
30clean:
31	$(RM) *.o
32
33$(ROOTOPTPROGS): $(PROGS) $(ROOTOPTRM)
34
35$(ROOTOPTDIR):
36	$(INS.dir)
37
38$(ROOTOPTRM): $(ROOTOPTDIR)
39	$(INS.dir)
40
41$(ROOTOPTRM)/%: %
42	$(INS.file)
43
44$(ROOTOPTRM)/%: %.ksh
45	$(INS.rename)
46
47clobber: clean
48	$(RM) $(PROGS)
49
50FRC:
51