Fix profilePath for examples ZEB-665
[idzebra-moved-to-github.git] / examples / gils / Makefile.am
index 90c396b..c259a29 100644 (file)
@@ -1,9 +1,21 @@
-# $Id: Makefile.am,v 1.3 2004-03-09 19:42:02 adam Exp $
 
-EXTRA_DIST = zebra.cfg 
+gilsdatadir=$(datadir)/$(PACKAGE)$(PACKAGE_SUFFIX)-examples/gils
+       
+gilsdata_DATA = zebra.cfg
+
+EXTRA_DIST = $(gilsdata_DATA)
 
 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
+
+uninstall-hook:
+       rm -r $(DESTDIR)$(gilsdatadir)/records
 
 dist-hook:
        -mkdir $(distdir)/records