1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 23# 24# Copyright 2010, Richard Lowe 25# 26# Copyright 2020 Joyent, Inc. 27# Copyright 2020 OmniOS Community Edition (OmniOSce) Association. 28# Copyright 2022 Jason King 29 30SHELL=/usr/bin/ksh93 31 32SCRIPTS= \ 33 bldenv \ 34 nightly 35 36SHFILES= \ 37 Install \ 38 build_cscope \ 39 bringovercheck \ 40 checkpaths \ 41 cstyle \ 42 elfcmp \ 43 flg.flp \ 44 genoffsets \ 45 onu \ 46 protocmp.terse \ 47 sccscheck \ 48 webrev \ 49 which_scm \ 50 ws \ 51 xref 52 53PERLFILES= \ 54 check_rtime \ 55 interface_check \ 56 interface_cmp \ 57 jstyle \ 58 validate_flg \ 59 validate_paths \ 60 wdiff 61 62PERLMODULES= \ 63 onbld_elfmod.pm \ 64 onbld_elfmod_vertype.pm 65 66 67PYFILES= \ 68 cddlchk \ 69 copyrightchk \ 70 git-pbchk \ 71 hdrchk \ 72 mapfilechk \ 73 validate_pkg \ 74 wscheck \ 75 wsdiff 76 77SCRIPTLINKS= \ 78 git-nits 79 80MAN1ONBLDFILES= \ 81 Install.1onbld \ 82 bldenv.1onbld \ 83 bringovercheck.1onbld \ 84 cddlchk.1onbld \ 85 checkpaths.1onbld \ 86 check_rtime.1onbld \ 87 ctfconvert.1onbld \ 88 cstyle.1onbld \ 89 flg.flp.1onbld \ 90 git-pbchk.1onbld \ 91 hdrchk.1onbld \ 92 interface_check.1onbld \ 93 interface_cmp.1onbld \ 94 jstyle.1onbld \ 95 mapfilechk.1onbld \ 96 nightly.1onbld \ 97 onu.1onbld \ 98 sccscheck.1onbld \ 99 webrev.1onbld \ 100 which_scm.1onbld \ 101 ws.1onbld \ 102 wsdiff.1onbld \ 103 xref.1onbld 104 105MAN1ONBLDLINKS= \ 106 git-nits.1onbld 107 108MAKEFILES= \ 109 xref.mk 110 111ETCFILES= \ 112 its.conf \ 113 its.reg 114 115EXCEPTFILES= \ 116 check_rtime \ 117 interface_check \ 118 interface_cmp 119 120CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh 121 122include ../Makefile.tools 123 124ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%) 125ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%) 126 127$(ROOTONBLDETCFILES) := FILEMODE= 644 128$(ROOTONBLDEXCEPTFILES) := FILEMODE= 644 129$(ROOTONBLDPERLMODULES) := FILEMODE= 644 130$(ROOTONBLDMAKEFILES) := FILEMODE= 644 131$(ROOTONBLDMAN1ONBLDFILES) := FILEMODE= 644 132 133.KEEP_STATE: 134 135all: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \ 136 $(MAN1ONBLDFILES) $(MAKEFILES) $(SCRIPTS) 137 138onu.sh: onu.sh.in 139 $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON3_VERSION):g" < onu.sh.in > $@ 140 141$(ROOTONBLDBIN)/git-nits: 142 $(RM) $(ROOTONBLDBIN)/git-nits 143 $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits 144 145$(ROOTONBLDMAN1ONBLD)/git-nits.1onbld: 146 $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld 147 $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld 148 149install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \ 150 $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES) \ 151 $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES) \ 152 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES) \ 153 $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS) \ 154 $(ROOTONBLDSCRIPTS) 155 156clean: 157 $(RM) $(CLEANFILES) 158 159bldenv.1onbld: bldenv 160 $(RM) "$@" 161 (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \ 162 sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \ 163 -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD "September 4, 2018"/' \ 164 -e 's/.OP \([a-z]\) - flag -/.OP \\-\1/g' \ 165 -e 's/(1)/(1ONBLD)/' > "$@" 166 167# 168# Not run by default: bootstrap... 169check: 170 $(ROOTONBLDBINMACH)/mandoc -Tlint -Wwarning $(MAN1ONBLDFILES) 171 172include ../Makefile.targ 173 174