1 | #
|
---|
2 | # Copyright 2002 Sun Microsystems, Inc. All rights reserved.
|
---|
3 | # Use is subject to license terms.
|
---|
4 | #
|
---|
5 | #ident "$Id: Makefile.targ 1 1970-01-01 00:00:00Z vboxsync $"
|
---|
6 | #
|
---|
7 |
|
---|
8 | pkginfo: pkginfo.tmpl ../awk_pkginfo
|
---|
9 | $(RM) $@; nawk -f ../awk_pkginfo $< > $@
|
---|
10 |
|
---|
11 | # we need to copy prototype_sparc to current too find copyright in current
|
---|
12 | prototype: $(srcdir)/prototype_com $(srcdir)/prototype_$(MACH)
|
---|
13 | cat $(srcdir)/prototype_$(MACH) | sed -e \
|
---|
14 | '/^!include[ ][ ]*prototype_com/ r ./prototype_com' \
|
---|
15 | -e 's/^!include[ ][ ]*prototype_com//g' >prototype
|
---|
16 |
|
---|
17 |
|
---|
18 |
|
---|
19 | pkg: $(PKGARCHIVE) prototype
|
---|
20 | cp $(srcdir)/prototype_com .
|
---|
21 | cp $(srcdir)/prototype_$(MACH) .
|
---|
22 | cp $(srcdir)/depend .
|
---|
23 | pkgmk -f prototype_$(MACH) -d $(PKGARCHIVE) -r $(ROOT) -o $(PACKAGE)
|
---|
24 |
|
---|
25 | $(PKGARCHIVE):
|
---|
26 | [ -d $(PKGARCHIVE) ] || mkdir -p $(PKGARCHIVE)
|
---|
27 |
|
---|
28 | $(DATAFILES): %: $(srcdir)/../common_files/%
|
---|
29 | $(RM) $@; cp $(srcdir)/../common_files/$@ $@
|
---|
30 |
|
---|
31 | #$(MACHDATAFILES): %: $(srcdir)/../common_files/%_$(MACH)
|
---|
32 | # $(RM) $@; cp $(srcdir)/../common_files/$@_$(MACH) $@
|
---|
33 | #
|
---|
34 | #$(MACHDATAFILES): %: $(srcdir)/%_$(MACH)
|
---|
35 | # $(RM) $@; cp $(srcdir)/$@_$(MACH) $@
|
---|
36 |
|
---|
37 | clobber clean::
|
---|
38 | -$(RM) $(CLOBBERFILES) $(CLEANFILES)
|
---|
39 |
|
---|
40 | .PHONY: pkg
|
---|