gils example installed (bug #2684)
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 18 Mar 2009 15:18:33 +0000 (16:18 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 18 Mar 2009 15:18:33 +0000 (16:18 +0100)
examples/gils/Makefile.am

index a9e8127..eba7697 100644 (file)
@@ -1,8 +1,16 @@
 
-EXTRA_DIST = zebra.cfg 
+gilsdatadir=$(datadir)/$(PACKAGE)$(PACKAGE_SUFFIX)-examples/gils
+       
+gilsdata_DATA = zebra.cfg
 
 clean:
-       rm -f *.mf *..LCK zebrasrv.pid
+       rm -f *.mf *.LCK zebrasrv.pid
+
+install-data-hook:
+       test -z "$(DESTDIR)$(gilsdatadir)/records" || $(MKDIR_P) "$(DESTDIR)$(gilsdatadir)/records"
+       for p in $(srcdir)/records/*.grs; do \
+                $(INSTALL_DATA) $$p $(DESTDIR)$(gilsdatadir)/records; \
+        done
 
 dist-hook:
        -mkdir $(distdir)/records