mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
default sysconfdir subdirectory is openldap instead of ldap.
This removes conflicts with other ldap subsystems. Should
be configure option.
*.conf files are now preserved. A *.conf.default are always
created with the latest conf.
*.help and ldapfriendly are now placed in $(datadir)/$(ldap_subdir)
updated man pages to reflect changes.
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
##
|
|
## Makefile for gopher clients
|
|
##
|
|
PROGRAMS= go500gw go500
|
|
|
|
SRCS= go500.c go500gw.c
|
|
XSRCS= gwversion.c goversion.c
|
|
GOOBJS = go500.o
|
|
GWOBJS = go500gw.o
|
|
|
|
LDAP_INCDIR= ../../include
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
XLIBS = -llutil @LUTIL_LIBS@
|
|
|
|
go500 : goversion.o
|
|
$(LTLINK) -o $@ $(GOOBJS) goversion.o $(LIBS)
|
|
|
|
go500gw : gwversion.o
|
|
$(LTLINK) -o $@ $(GWOBJS) gwversion.o $(LIBS)
|
|
|
|
goversion.c: ${GOOBJS} $(LDAP_LIBDEPEND)
|
|
$(RM) $@
|
|
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
|
|
t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
-e "s|%VERSION%|$${v}|" \
|
|
< $(srcdir)/Version.c > $@)
|
|
|
|
gwversion.c: ${GWOBJS} $(LDAP_LIBDEPEND)
|
|
$(RM) $@
|
|
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
|
|
t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
-e "s|%VERSION%|$${v}|" \
|
|
< $(srcdir)/Versiongw.c > $@)
|
|
|
|
install-local: $(PROGRAMS) go500gw.help FORCE
|
|
-$(MKDIR) $(libexecdir) $(datadir)
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 go500 $(libexecdir)
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 go500gw $(libexecdir)
|
|
-$(MV) $(datadir)/go500gw.help $(datadir)/go500gw.help-
|
|
$(INSTALL) $(INSTALLFLAGS) -m 644 go500gw.help $(datadir)
|