scsh-ldap/scheme/Makefile.am

27 lines
784 B
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

SCSH= @SCSH@
scheme_SCRIPTS=load-ldap.scm
nobase_scheme_SCRIPTS= \
ldap.scm
EXTRA_DIST= load-ldap.scm.in $(nobase_scheme_SCRIPTS)
GENERATED_CODE= const-gen.scm
CLEANFILES= load-ldap.scm $(GENERATED_CODE)
$(GENERATED_CODE):
$(SCSH) -lm ffi-tools-packages.scm -lm ldap-constants.scm \
-o ldap-constants -c '(make-c-files command-line-arguments)' \
`pwd`
load-ldap.scm: $(srcdir)/load-ldap.scm.in
sed -e "s|@scshldapschemedir@|`pwd`/$(srcdir)|g" \
-e "s|@scshldaphost@||g" \
-e "s|@scshldaplibdir@|`pwd`/../c/.libs|g" \
$< > $@
install-data-hook:
sed -e "s|@scshldapschemedir@|$(schemedir)|g" \
-e "s|@scshldaphost@|(host)|g" \
-e "s|@scshldaplibdir@|$(libdir)|g" \
$(srcdir)/load-ldap.scm.in \
> $(DESTDIR)/$(schemedir)/load-ldap.scm