$NetBSD: patch-al,v 1.2 2001/02/14 11:19:17 jtb Exp $

--- cf/pkg_tk.in.orig	Wed Feb 14 07:53:54 2001
+++ cf/pkg_tk.in
@@ -22,28 +22,27 @@
 # Targets
 
 install_plserver:
-	@-if test ! -d $(TCL_DIR); then mkdir -p $(TCL_DIR); fi; \
+	-$(BSD_INSTALL_DATA_DIR) $(TCL_DIR); \
 	  if test $(SHARED) = 1; then \
 	      $(LDC) $(LDC_FLAGS) plserver$O $(LIB_INSTALL) \
 		  -o plserver$E $(LDC_LIBS) $(INSTALL_RPATH); \
 	  fi; \
-	  strip plserver$E; \
-	  $(CP) plserver$E $(BIN_DIR)
+	  $(BSD_INSTALL_PROGRAM) plserver$E $(BIN_DIR)
 
 
 install_tk_scripts:
-	@-cd $(top_srcdir)/bindings/tk; \
-	  $(CP) pltk.h $(INCLUDE_DIR); \
-	  $(CP) *.itk *.tcl *.pal $(TCL_DIR)
+	-cd $(top_srcdir)/bindings/tk; \
+	  $(BSD_INSTALL_DATA) pltk.h $(INCLUDE_DIR); \
+	  $(BSD_INSTALL_DATA) *.itk *.tcl *.pal $(TCL_DIR)
 
 # N.B. this target depends on install_tcl_demos to work properly because the
 # symbolic links below are set up by real files in tcl/x??.tcl that must
 # exist.  However, AWI hesitates to put in the dependence because it might
 # just simply mean the rules for install_tcl_demos got executed twice.
 install_tk_demos:
-	@-if test ! -d $(DEMOS_DIR)/tk; then mkdir -p $(DEMOS_DIR)/tk; fi; \
+	-$(BSD_INSTALL_DATA_DIR) $(DEMOS_DIR)/tk; \
 	  $(LN) ../Makefile $(DEMOS_DIR)/tk; \
-	  cd $(top_srcdir)/examples/tk; $(CP) $(TK_DEMOS) $(DEMOS_DIR)/tk ; \
+	  cd $(top_srcdir)/examples/tk; $(BSD_INSTALL_DATA) $(TK_DEMOS) $(DEMOS_DIR)/tk ; \
 	  cd $(DEMOS_DIR)/tk ; \
 	  for filename in ../tcl/x??.tcl ; \
 	  do  \
