Imported Upstream version 1.5
[routino] / xml / Makefile
index c822442..d2364cd 100644 (file)
@@ -1,4 +1,4 @@
-# $Header: /home/amb/routino/xml/RCS/Makefile,v 1.6 2010/07/07 17:25:51 amb Exp $
+# $Header: /home/amb/routino/xml/RCS/Makefile,v 1.8 2010/09/05 18:27:17 amb Exp $
 #
 # XML directory Makefile
 #
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+# Web file paths
+
 WEBDIR=../web/data
 
+# Files to install
+
 FILES=profiles.xml \
       translations.xml \
       tagging.xml
@@ -39,6 +43,16 @@ all :
 
 ########
 
+install: all
+       -[ -d $(DESTDIR)$(datadir) ] || mkdir -p $(DESTDIR)$(datadir)
+       @[ -d $(DESTDIR)$(datadir) ] && \
+         for file in $(FILES); do \
+            echo cp routino-$$file $(DESTDIR)$(datadir)/$$file ;\
+            cp -f routino-$$file $(DESTDIR)$(datadir)/$$file ;\
+         done
+
+########
+
 clean:
        rm -f *~
 
@@ -46,3 +60,8 @@ clean:
 
 distclean: clean
        rm -f $(WEBDIR)/*.xml
+
+########
+
+top=-top
+include ../Makefile