| 56 rebuild_if_missing: |
56 rebuild_if_missing: |
| 57 if test -f $(build_dir)/libucx_static$(STLIB_EXT) && test -f $(build_dir)/libucx$(SHLIB_EXT); \ |
57 if test -f $(build_dir)/libucx_static$(STLIB_EXT) && test -f $(build_dir)/libucx$(SHLIB_EXT); \ |
| 58 then : ; else cd $(root_dir); $(MAKE) compile; fi |
58 then : ; else cd $(root_dir); $(MAKE) compile; fi |
| 59 |
59 |
| 60 install: rebuild_if_missing |
60 install: rebuild_if_missing |
| 61 $(MKDIR) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)/cx $(DESTDIR)$(libdir)/pkgconfig |
61 $(MKDIR) $(DESTDIR)$(libdir)/ $(DESTDIR)$(includedir)/cx/ $(DESTDIR)$(pkgconfigdir)/ |
| 62 $(RMFILE) $(DESTDIR)$(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR) |
62 $(RMFILE) $(DESTDIR)$(libdir)/libucx$(SHLIB_EXT).$(LIBVERSION_MAJOR) |
| 63 $(RMFILE) $(DESTDIR)$(libdir)/libucx$(SHLIB_EXT) |
63 $(RMFILE) $(DESTDIR)$(libdir)/libucx$(SHLIB_EXT) |
| 64 $(COPYFILE) $(build_dir)/libucx_static$(STLIB_EXT) $(DESTDIR)$(libdir)/libucx_static$(STLIB_EXT) |
64 $(COPYFILE) $(build_dir)/libucx_static$(STLIB_EXT) $(DESTDIR)$(libdir)/libucx_static$(STLIB_EXT) |
| 65 $(SHELL) "$(INSTALL_LIB)" "$(build_dir)/libucx$(SHLIB_EXT)" "$(libdir)" $(LIBVERSION) $(LIBVERSION_MAJOR) "$(DESTDIR)" |
65 $(SHELL) "$(INSTALL_LIB)" "$(build_dir)/libucx$(SHLIB_EXT)" "$(libdir)" $(LIBVERSION) $(LIBVERSION_MAJOR) "$(DESTDIR)" |
| 66 $(COPYALL) $(root_dir)/src/cx $(DESTDIR)$(includedir) |
66 $(COPYALL) $(root_dir)/src/cx $(DESTDIR)$(includedir) |