mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
edd464ee8f
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.
26 lines
787 B
Makefile
26 lines
787 B
Makefile
PROGRAMS= rcpt500
|
|
SRCS= main.c cmds.c help.c query.c
|
|
XSRCS= version.c
|
|
OBJS= main.o cmds.o help.o query.o
|
|
HDRS= rcpt500.h
|
|
|
|
LDAP_INCDIR= ../../include
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
rcpt500 : version.o
|
|
$(LTLINK) -o $@ version.o $(OBJS) $(LIBS)
|
|
|
|
version.c: ${OBJS} $(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 > $@)
|
|
|
|
install-local: $(PROGRAMS) rcpt500.help FORCE
|
|
-$(MKDIR) $(libexecdir) $(datadir)
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 rcpt500 $(libexecdir)
|
|
-$(MV) $(datadir)/rcpt500.help $(datadir)/rcpt500.help-
|
|
$(INSTALL) $(INSTALLFLAGS) -m 644 rcpt500.help $(datadir)
|