.PHONY: all clean install
-SUBDIRS = ${LIBLTDLPATH} src raddb scripts doc
+SUBDIRS = $(LTDL_SUBDIRS) src raddb scripts doc
WHAT_TO_MAKE = all
all:
# Many of the platform-specific packaging tools use the $(R) variable
# when creating their packages.
#
+# For compatibility with typical GNU packages (e.g. as seen in libltdl),
+# we make sure DESTDIR is defined.
+#
+export DESTDIR := $(R)
install:
$(INSTALL) -d -m 755 $(R)$(sbindir)
$(INSTALL) -d -m 755 $(R)$(bindir)