Commit fd81bd9e authored by Ted Lemon's avatar Ted Lemon

Install libraries and includes.

parent eac1e66f
......@@ -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:
......
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment