xref: /illumos-gate/usr/src/test/net-tests/config/Makefile (revision 6f1fa39e3cf1b335f342bbca41590e9d76ab29b7)
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 2019 Joyent, Inc.
14#
15
16include $(SRC)/Makefile.master
17
18CFGS = ip_forwarding.config
19ROOTOPTPKG = $(ROOT)/opt/net-tests
20ROOTOPTPKGCFG = $(ROOT)/opt/net-tests/config
21ROOTOPTPKGDIRS = $(ROOTOPTPKG) $(ROOTOPTPKGCFG)
22FILES = $(CFGS:%=$(ROOTOPTPKGCFG)/%)
23$(FILES) := FILEMODE = 0644
24
25include $(SRC)/test/Makefile.com
26
27all: $(CFGS)
28
29install: $(ROOTOPTPKG) $(ROOTOPTPKGCFG) $(FILES)
30
31clobber: clean
32	$(RM) $(FILES)
33
34$(ROOTOPTPKGDIRS):
35	$(INS.dir)
36
37$(ROOTOPTPKGCFG)/%: % $(ROOTOPTPKGDIRS)
38	$(INS.file)
39