tags 220525 + patch
thanks
Hi,
The attached patch (which really comes from FreeBSD), makes the "install"
target for libdst.a a bit more useful than ISC's default.
--- dst/Makefile.dist.orig Thu Jun 10 19:59:28 2004
+++ dst/Makefile.dist Wed May 4 12:45:44 2005
@@ -30,12 +30,24 @@ CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUD
all: libdst.a
-install:
-
libdst.a: $(OBJ)
rm -f dst.a
ar cruv libdst.a $(OBJ)
$(RANLIB) libdst.a
+
+install: all
+ for dir in $(LIBDIR);\
+ do \
+ foo=""; \
+ for bar in `echo $(DESTDIR)$${dir} |tr / ' '`; do \
+ foo=$${foo}/$$bar; \
+ if [ ! -d $$foo ]; then \
+ mkdir $$foo; \
+ chmod 755 $$foo; \
+ fi; \
+ done; \
+ done
+ $(INSTALL) libdst.a $(DESTDIR)$(LIBDIR)
depend:
$(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC)