xref: /illumos-gate/usr/src/cmd/svr4pkg/pkgscripts/Makefile (revision 82623ab63a7c17ffa0e306afef3be05316812f6e)
15c51f124SMoriah Waterland#
25c51f124SMoriah Waterland# CDDL HEADER START
35c51f124SMoriah Waterland#
45c51f124SMoriah Waterland# The contents of this file are subject to the terms of the
55c51f124SMoriah Waterland# Common Development and Distribution License (the "License").
65c51f124SMoriah Waterland# You may not use this file except in compliance with the License.
75c51f124SMoriah Waterland#
85c51f124SMoriah Waterland# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95c51f124SMoriah Waterland# or http://www.opensolaris.org/os/licensing.
105c51f124SMoriah Waterland# See the License for the specific language governing permissions
115c51f124SMoriah Waterland# and limitations under the License.
125c51f124SMoriah Waterland#
135c51f124SMoriah Waterland# When distributing Covered Code, include this CDDL HEADER in each
145c51f124SMoriah Waterland# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155c51f124SMoriah Waterland# If applicable, add the following below this CDDL HEADER, with the
165c51f124SMoriah Waterland# fields enclosed by brackets "[]" replaced with your own identifying
175c51f124SMoriah Waterland# information: Portions Copyright [yyyy] [name of copyright owner]
185c51f124SMoriah Waterland#
195c51f124SMoriah Waterland# CDDL HEADER END
205c51f124SMoriah Waterland#
215c51f124SMoriah Waterland
225c51f124SMoriah Waterland#
235c51f124SMoriah Waterland# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
245c51f124SMoriah Waterland# Use is subject to license terms.
255c51f124SMoriah Waterland#
265c51f124SMoriah Waterland
275c51f124SMoriah WaterlandPROG=		cmdexec
285c51f124SMoriah Waterland
295c51f124SMoriah WaterlandOBJS=		cmdexec.o
305c51f124SMoriah WaterlandSRCS=           $(OBJS:.o=.c)
315c51f124SMoriah Waterland
325c51f124SMoriah WaterlandCLASS_ACTION_SCRIPTS =  i.awk		\
335c51f124SMoriah Waterland			i.build		\
345c51f124SMoriah Waterland			i.CompCpio	\
3553520bfdSMoriah Waterland			i.preserve	\
365c51f124SMoriah Waterland			i.sed		\
375c51f124SMoriah Waterland			r.awk		\
385c51f124SMoriah Waterland			r.build		\
395c51f124SMoriah Waterland			r.sed
405c51f124SMoriah WaterlandADMINFILE =		default
415c51f124SMoriah Waterland
4262224350SCasper H.S. DikROOTPKGMNFSTDIR=$(ROOT)/var/svc/manifest/system
4362224350SCasper H.S. DikROOTPKGMNFST=   $(ROOTPKGMNFSTDIR)/pkgserv.xml
4462224350SCasper H.S. Dik
4562224350SCasper H.S. Dik$(ROOTPKGMNFST) := FILEMODE = 0444
4662224350SCasper H.S. Dik
475c51f124SMoriah Waterland# cmdexec also installed in usr/sadm/install/scripts
485c51f124SMoriah WaterlandSCRIPTS = $(CLASS_ACTION_SCRIPTS) $(PROG)
495c51f124SMoriah Waterland
505c51f124SMoriah Waterlandinclude $(SRC)/cmd/svr4pkg/Makefile.svr4pkg
515c51f124SMoriah WaterlandCLOBBERFILES += $(CLASS_ACTION_SCRIPTS)
525c51f124SMoriah Waterland
53*82623ab6SMoriah WaterlandROOTLINKS=	$(ROOTCLASS_SCR_DIR)/i.CONFIG.prsv
54*82623ab6SMoriah WaterlandPRESRV=		$(ROOTCLASS_SCR_DIR)/i.preserve
55*82623ab6SMoriah Waterland
565c51f124SMoriah WaterlandLDLIBS  +=      -lpkg
575c51f124SMoriah Waterland
585c51f124SMoriah Waterland.KEEP_STATE:
59*82623ab6SMoriah Waterland
605c51f124SMoriah Waterlandall:	$(PROG) $(CLASS_ACTION_SCRIPTS)
615c51f124SMoriah Waterland
6262224350SCasper H.S. Dikinstall: all $(ROOTCLASS_SCR_FILES) $(ROOTADMIN_SRC_FILE) \
63*82623ab6SMoriah Waterland	$(ROOTPKGMNFST) $(ROOTLINKS)
64*82623ab6SMoriah Waterland
65*82623ab6SMoriah Waterland$(ROOTLINKS): $(ROOTCLASS_SCR_FILES)
66*82623ab6SMoriah Waterland	$(RM) $@
67*82623ab6SMoriah Waterland	$(LN) $(PRESRV) $@
685c51f124SMoriah Waterland
695c51f124SMoriah Waterlandinclude $(SRC)/cmd/svr4pkg/Makefile.svr4pkg.targ
70