]> matita.cs.unibo.it Git - helm.git/commitdiff
- install/uninstall targets added
authorLuca Padovani <luca.padovani@unito.it>
Wed, 13 Feb 2002 19:17:44 +0000 (19:17 +0000)
committerLuca Padovani <luca.padovani@unito.it>
Wed, 13 Feb 2002 19:17:44 +0000 (19:17 +0000)
- link to personal page now with target="_top"

helm/mowgli/home/html/Makefile
helm/mowgli/home/xsl/person.xsl

index 55c50220e375b7516242f6df2c6cdbeefe64442c..03f9be93d48c5a4c483baebe94b01dd0be631ae1 100644 (file)
@@ -1,6 +1,10 @@
+
+DESTDIR = /tmp/public_html
+
 TEMPLATESROOT = ../templates
 XMLROOT = ../xml
 XSLROOT = ../xsl
+
 DOCUMENTS = \
             index.html \
             home.html \
@@ -153,5 +157,22 @@ clean:
        rm -f $(DOCUMENTS)
 .PHONY: clean
 
+install: $(DOCUMENTS)
+       mkdir -p $(DESTDIR)/html
+       for i in $(dir $(DOCUMENTS)); do \
+               mkdir -p $(DESTDIR)/html/$$i; \
+       done
+       for i in $(DOCUMENTS); do \
+               cp $$i $(DESTDIR)/html/$$i; \
+       done
+       mkdir -p $(DESTDIR)/images
+       cp ../images/*.* $(DESTDIR)/images
+       mkdir -p $(DESTDIR)/style
+       cp ../style/*.css $(DESTDIR)/style
+       sed s/menu\\.html/html\\/menu\\.html/ <index.html | sed s/home\\.html/html\\/home\\.html/ >$(DESTDIR)/index.html
+
+uninstall:
+       rm -rf $(DESTDIR)/*
+
 $(XSLROOT)/%.xsl : $(XSLROOT)/common.xsl
 
index 9cecd5c38d1db052a79b508443fb1a5c1908d90f..61b7e0b7278ee745e95ebcd7f70a59b12ad18753 100644 (file)
@@ -80,7 +80,7 @@
  <xsl:if test="url">
   <p>
    <xsl:text>Home Page: </xsl:text>
-   <a href="{url}">
+   <a target="_top" href="{url}">
     <xsl:value-of select="url"/>
    </a>
   </p>