]> git.sur5r.net Git - openldap/commitdiff
Install schema.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 17 Nov 1999 21:14:22 +0000 (21:14 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 17 Nov 1999 21:14:22 +0000 (21:14 +0000)
servers/slapd/Makefile.in

index 97433dc490a0301624d1d12ce6b3e4eec6e7c35d..07b29b00a79d6dd4aa70569d4a22f8d019a8186a 100644 (file)
@@ -152,7 +152,7 @@ veryclean-local-srv: FORCE
                fi; \
        done
 
-install-local-srv: install-slapd install-conf install-tools
+install-local-srv: install-slapd install-conf install-schema install-tools
 
 install-slapd: FORCE
        -$(MKDIR) $(DESTDIR)$(libexecdir)
@@ -180,6 +180,19 @@ all-cffiles: slapd
        done
        touch all-cffiles
 
+install-schema: FORCE
+       @-$(MKDIR) $(DESTDIR)$(sysconfdir)/schema
+       @for i in schema/*.schema ; do \
+               if test ! -f $(DESTDIR)$(sysconfdir)/$$i; then \
+                       echo "installing $$i in $(sysconfdir)"; \
+                       echo $(INSTALL) $(INSTALLFLAGS) $$i $(DESTDIR)$(sysconfdir)/$$i; \
+                       $(INSTALL) $(INSTALLFLAGS) $$i $(DESTDIR)$(sysconfdir)/$$i; \
+               else \
+                       echo "PRESERVING EXISTING SCHEMA FILE $(DESTDIR)$(sysconfdir)/$$i"; \
+               fi; \
+               $(INSTALL) $(INSTALLFLAGS) $$i $(DESTDIR)$(sysconfdir)/$$i.default ; \
+       done
+
 install-conf: FORCE
        @-$(MKDIR) $(DESTDIR)$(sysconfdir)
        @for i in $(CFFILES); do \