src/Makefile

changeset 1529
a145f47cc0a7
parent 1523
b5c32391802f
equal deleted inserted replaced
1528:6a687a7caed8 1529:a145f47cc0a7
40 --root $(root_dir)/src \ 40 --root $(root_dir)/src \
41 --exclude-directories $(build_dir)/tests \ 41 --exclude-directories $(build_dir)/tests \
42 $(build_dir) 42 $(build_dir)
43 43
44 $(build_dir)/coverage: 44 $(build_dir)/coverage:
45 $(MKDIR) $@ 45 $(MKDIR) $@/
46 46
47 $(build_dir)/%.gcda: 47 $(build_dir)/%.gcda:
48 test -f "$@" 48 test -f "$@"
49 49
50 $(build_dir)/libucx_static$(STLIB_EXT): $(OBJ) 50 $(build_dir)/libucx_static$(STLIB_EXT): $(OBJ)
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)

mercurial