27 lines
784 B
Makefile
27 lines
784 B
Makefile
|
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<69>\
|
|||
|
> $(DESTDIR)/$(schemedir)/load-ldap.scm
|