2003-01-04 05:14:13 +03:00
|
|
|
#
|
2004-11-29 19:26:03 +03:00
|
|
|
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
|
2003-01-04 05:14:13 +03:00
|
|
|
# Use is subject to license terms.
|
|
|
|
#
|
2004-11-29 19:26:03 +03:00
|
|
|
#ident "$Id: Makefile.targ,v 1.5 2004-11-29 16:26:02 christophe.ravel.bugs%sun.com Exp $"
|
2003-01-04 05:14:13 +03:00
|
|
|
#
|
|
|
|
|
2004-11-29 19:26:03 +03:00
|
|
|
include $(srcdir)/../proto64.mk
|
|
|
|
|
2003-01-04 05:14:13 +03:00
|
|
|
pkginfo: pkginfo.tmpl ../awk_pkginfo
|
|
|
|
$(RM) $@; nawk -f ../awk_pkginfo $< > $@
|
|
|
|
|
2004-11-29 19:26:03 +03:00
|
|
|
pkg: $(PKGARCHIVE) prototype_$(MACH)
|
2003-01-04 05:14:13 +03:00
|
|
|
cp $(srcdir)/prototype_com .
|
2004-11-29 19:26:03 +03:00
|
|
|
cat $(srcdir)/prototype_$(MACH) | sed $(sed_proto64) > prototype_$(MACH)
|
2003-01-04 05:14:13 +03:00
|
|
|
cp $(srcdir)/depend .
|
|
|
|
pkgmk -f prototype_$(MACH) -d $(PKGARCHIVE) -r $(ROOT) -o $(PACKAGE)
|
|
|
|
|
|
|
|
$(PKGARCHIVE):
|
|
|
|
[ -d $(PKGARCHIVE) ] || mkdir -p $(PKGARCHIVE)
|
|
|
|
|
|
|
|
$(DATAFILES): %: $(srcdir)/../common_files/%
|
|
|
|
$(RM) $@; cp $(srcdir)/../common_files/$@ $@
|
|
|
|
|
|
|
|
clobber clean::
|
|
|
|
-$(RM) $(CLOBBERFILES) $(CLEANFILES)
|
|
|
|
|
|
|
|
.PHONY: pkg
|