diff --git a/dhcpctl/Makefile.dist b/dhcpctl/Makefile.dist index 10940ecc..f554aff1 100644 --- a/dhcpctl/Makefile.dist +++ b/dhcpctl/Makefile.dist @@ -38,7 +38,7 @@ libdhcpctl.a: $(OBJ) $(RANLIB) libdhcpctl.a install: all - for dir in $(LIBMANDIR); do \ + for dir in $(LIBDIR) $(LIBMANDIR) $(INCDIR); do \ foo=""; \ for bar in `echo $(DESTDIR)$${dir} |tr / ' '`; do \ foo=$${foo}/$$bar; \ @@ -48,11 +48,15 @@ install: all fi; \ done; \ done + $(INSTALL) libdhcpctl.a $(DESTDIR)$(LIBDIR) + $(CHMOD) 644 $(DESTDIR)$(LIBDIR)/libdhcpctl.a + $(INSTALL) dhcpctl.h $(DESTDIR)$(INCDIR) + $(CHMOD) 644 $(DESTDIR)$(INCDIR)/dhcpctl.h for man in $(MAN); do \ prefix=`echo $$man |sed -e 's/\.[0-9]$$//'`; \ suffix=`echo $$man |sed -e 's/.*\.\([0-9]\)$$/\1/'`; \ $(MANINSTALL) $(MANFROM) $${prefix}.$(MANCAT)$${suffix} $(MANTO) \ - $(DESTDIR)$(LIBMANDIR)/$(prefix)$(LIBMANEXT); \ + $(DESTDIR)$(LIBMANDIR)/$${prefix}$(LIBMANEXT); \ done depend: diff --git a/omapip/Makefile.dist b/omapip/Makefile.dist index e429be64..cdf280c3 100644 --- a/omapip/Makefile.dist +++ b/omapip/Makefile.dist @@ -40,7 +40,7 @@ libomapi.a: $(OBJ) $(RANLIB) libomapi.a install: all - for dir in $(LIBMANDIR); do \ + for dir in $(LIBDIR) $(LIBMANDIR) $(INCDIR)/omapip; do \ foo=""; \ for bar in `echo $(DESTDIR)$${dir} |tr / ' '`; do \ foo=$${foo}/$$bar; \ @@ -50,11 +50,17 @@ install: all fi; \ done; \ done + $(INSTALL) libomapi.a $(DESTDIR)$(LIBDIR) + $(CHMOD) 644 $(DESTDIR)$(LIBDIR)/libomapi.a + for file in alloc.h buffer.h omapip.h; do \ + $(INSTALL) ../includes/omapip/$$file $(DESTDIR)$(INCDIR)/omapip; \ + $(CHMOD) 644 $(DESTDIR)$(INCDIR)/omapip/$$file; \ + done for man in $(MAN); do \ prefix=`echo $$man |sed -e 's/\.[0-9]$$//'`; \ suffix=`echo $$man |sed -e 's/.*\.\([0-9]\)$$/\1/'`; \ $(MANINSTALL) $(MANFROM) $${prefix}.$(MANCAT)$${suffix} $(MANTO) \ - $(DESTDIR)$(LIBMANDIR)/$(prefix)$(LIBMANEXT); \ + $(DESTDIR)$(LIBMANDIR)/$${prefix}$(LIBMANEXT); \ done depend: