yaws (1.94-1) installapps.diff

Summary

 applications/yapp/Makefile |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

    
download this patch

Patch contents

Patch makes yaws applications installing under /usr/lib/yaws directory
and docs installing to /usr/share/doc/yaws directory.

--- yaws-1.93.orig/applications/yapp/Makefile
+++ yaws-1.93/applications/yapp/Makefile
@@ -24,8 +24,10 @@
 	rm -rf doc/*.html doc/edoc-info doc/stylesheet.css doc/*.png
 
 install: all docs
-	$(INSTALL) -d $(DESTDIR)$(LIBDIR)/$(APPNAME)/ebin
-	$(INSTALL) -d $(DESTDIR)$(LIBDIR)/$(APPNAME)/priv/docroot
-	$(INSTALL) -d $(DESTDIR)$(LIBDIR)/$(APPNAME)/doc
-	(tar cf - ebin priv doc) | (cd $(DESTDIR)$(LIBDIR)/yapp; tar xf - )
+	$(INSTALL) -d $(DESTDIR)/usr/lib/yaws/$(APPNAME)/ebin
+	$(INSTALL) -d $(DESTDIR)/usr/share/yaws-$(APPNAME)
+	$(INSTALL) -d $(DESTDIR)/usr/share/doc/yaws-$(APPNAME)/doc
+	(tar cf - ebin) | (cd $(DESTDIR)/usr/lib/yaws/$(APPNAME); tar xf - )
+	(cd priv/docroot; tar cf - .) | (cd $(DESTDIR)/usr/share/yaws-$(APPNAME); tar xf - )
+	(tar cf - doc) | (cd $(DESTDIR)/usr/share/doc/yaws-$(APPNAME); tar xf - )