open-src/lib/libowconfig/sun-src/Makefile
changeset 970 272328fe1b4a
parent 943 294f64612d23
--- a/open-src/lib/libowconfig/sun-src/Makefile	Wed Jun 30 14:10:39 2010 -0700
+++ b/open-src/lib/libowconfig/sun-src/Makefile	Fri Jul 02 21:03:57 2010 -0700
@@ -2,7 +2,7 @@
 #
 # libowconfig Makefile
 #
-# Copyright (c) 1994, 2009, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a
 # copy of this software and associated documentation files (the "Software"),
@@ -58,4 +58,6 @@
 install: libowconfig.so.0
 	mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(INCDIR)
 	$(INSTALL) libowconfig.so.0 $(DESTDIR)$(libdir)/libowconfig.so.0
-	$(INSTALL) Sunowconfig.h $(DESTDIR)$(INCDIR)/Sunowconfig.h
+	@rm -f $(DESTDIR)$(libdir)/libowconfig.so
+	ln -s libowconfig.so.0 $(DESTDIR)$(libdir)/libowconfig.so
+	$(INSTALL) -m 0444 Sunowconfig.h $(DESTDIR)$(INCDIR)/Sunowconfig.h