Makefile

changeset 230
4044131874f9
parent 228
9f385abc72fb
child 246
21bb9849a765
equal deleted inserted replaced
229:9db71925eaa8 230:4044131874f9
61 run-debug: test-debug 61 run-debug: test-debug
62 ./build/debug/test/ucxtest$(APP_EXT) 62 ./build/debug/test/ucxtest$(APP_EXT)
63 63
64 debug: ucx-debug test-debug 64 debug: ucx-debug test-debug
65 65
66 install: ucx $(PREFIX)/lib $(PREFIX)/include/ucx 66 install: ucx $(DESTDIR)$(PREFIX)/lib $(DESTDIR)$(PREFIX)/include/ucx
67 cp ./build/release/libucx$(LIB_EXT) $(PREFIX)/lib && \ 67 cp ./build/release/libucx$(LIB_EXT) $(DESTDIR)$(PREFIX)/lib && \
68 cp ./build/release/libucx$(SO_EXT) $(PREFIX)/lib && \ 68 cp ./build/release/libucx$(SO_EXT) $(DESTDIR)$(PREFIX)/lib && \
69 cp ./ucx/*.h $(PREFIX)/include/ucx 69 cp ./ucx/*.h $(DESTDIR)$(PREFIX)/include/ucx
70 70
71 uninstall: 71 uninstall:
72 $(RM) $(RMFLAGS) $(PREFIX)/include/ucx &&\ 72 $(RM) $(RMFLAGS) $(DESTDIR)$(PREFIX)/include/ucx &&\
73 $(RM) $(RMFLAGS) $(PREFIX)/lib/libucx$(LIB_EXT) &&\ 73 $(RM) $(RMFLAGS) $(DESTDIR)$(PREFIX)/lib/libucx$(LIB_EXT) &&\
74 $(RM) $(RMFLAGS) $(PREFIX)/lib/libucx$(SO_EXT) 74 $(RM) $(RMFLAGS) $(DESTDIR)$(PREFIX)/lib/libucx$(SO_EXT)
75 75
76 $(PREFIX)/lib: 76 $(DESTDIR)$(PREFIX)/lib:
77 mkdir -p $(PREFIX)/lib 77 mkdir -p $@
78 78
79 $(PREFIX)/include/ucx: 79 $(DESTDIR)$(PREFIX)/include/ucx:
80 mkdir -p $(PREFIX)/include/ucx 80 mkdir -p $@
81 81
82 clean: FORCE 82 clean: FORCE
83 $(RM) $(RMFLAGS) build 83 $(RM) $(RMFLAGS) build
84 84
85 FORCE: 85 FORCE:

mercurial