michael@0: # michael@0: # Copyright 2005 Sun Microsystems, Inc. All rights reserved. michael@0: # Use is subject to license terms. michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: # michael@0: michael@0: include ../proto64.mk michael@0: michael@0: pkginfo: pkginfo.tmpl ../awk_pkginfo michael@0: $(RM) $@; nawk -f ../awk_pkginfo $@.tmpl > $@ michael@0: michael@0: prototype: prototype_com prototype_$(MACH) michael@0: cat prototype_$(MACH) | sed -e \ michael@0: '/^!include[ ][ ]*prototype_com/ r ./prototype_com' \ michael@0: -e 's/^!include[ ][ ]*prototype_com//g' \ michael@0: | sed $(sed_proto64) >prototype michael@0: michael@0: pkg: $(PKGARCHIVE) prototype michael@0: pkgmk -f prototype -d $(PKGARCHIVE) -r $(ROOT) -o $(PACKAGE) michael@0: michael@0: $(PKGARCHIVE): michael@0: [ -d $(PKGARCHIVE) ] || mkdir -p $(PKGARCHIVE) michael@0: michael@0: $(DATAFILES):: %: ../common_files/% michael@0: $(RM) $@; cp ../common_files/$@ $@ michael@0: michael@0: $(MACHDATAFILES): %: ../common_files/%_$(MACH) michael@0: $(RM) $@; cp ../common_files/$@_$(MACH) $@ michael@0: michael@0: clobber clean:: michael@0: -$(RM) $(CLOBBERFILES) $(CLEANFILES) michael@0: michael@0: .PHONY: pkg