Makefile

changeset 154
8346aebfbb7b
parent 152
3238f65db163
child 155
45395ba5ed30
equal deleted inserted replaced
153:2d3d1313862a 154:8346aebfbb7b
41 PREFIX=/usr/local 41 PREFIX=/usr/local
42 42
43 include unix.mk 43 include unix.mk
44 include $(CONF).mk 44 include $(CONF).mk
45 45
46 all: ucx test
47
46 ucx: FORCE 48 ucx: FORCE
47 cd ucx; $(MAKE) CONF=$(CONF) all 49 cd ucx; $(MAKE) CONF=$(CONF) all
48 50
49 test: FORCE ucx 51 test: FORCE ucx
50 cd test; $(MAKE) CONF=$(CONF) all 52 cd test; $(MAKE) CONF=$(CONF) all
51 53
52 run: FORCE test 54 run: FORCE test
53 ./build/test$(APP_EXT) 55 ./build/test$(APP_EXT)
54 56
55 install: ucx | $(PREFIX)/include/ucx $(PREFIX)/lib 57 install: ucx $(PREFIX)/lib $(PREFIX)/include/ucx
56 cp ./build/libucx$(LIB_EXT) $(PREFIX)/lib && \ 58 cp ./build/libucx$(LIB_EXT) $(PREFIX)/lib && \
57 cp ./ucx/*.h $(PREFIX)/include/ucx 59 cp ./ucx/*.h $(PREFIX)/include/ucx
58 60
59 uninstall: 61 uninstall:
60 $(RM) $(RMFLAGS) $(PREFIX)/include/ucx &&\ 62 $(RM) $(RMFLAGS) $(PREFIX)/include/ucx &&\

mercurial