Makefile

changeset 259
6c8d5f8a1d6f
parent 251
7534cb97b9ab
child 287
99bcd7915a0d
equal deleted inserted replaced
258:571b62700df6 259:6c8d5f8a1d6f
36 # osx 36 # osx
37 # 37 #
38 38
39 CONF=gcc 39 CONF=gcc
40 PREFIX=/usr 40 PREFIX=/usr
41 DESTDIR=$(PREFIX)
42 41
43 include $(CONF).mk 42 include $(CONF).mk
44 43
45 all: build/tool build/ucx build/libidav build/test ucx libidav dav test 44 all: build/tool build/ucx build/libidav build/test ucx libidav dav test
46 45
73 72
74 clean: FORCE 73 clean: FORCE
75 $(RM) $(RMFLAGS) -R build/ 74 $(RM) $(RMFLAGS) -R build/
76 75
77 install: FORCE 76 install: FORCE
78 @echo "install to $(DESTDIR)" 77 @echo "install to $(DESTDIR)$(PREFIX)"
79 ./install-sh -d $(DESTDIR)/bin 78 ./install-sh -d $(DESTDIR)$(PREFIX)/bin
80 ./install-sh build/dav $(DESTDIR)/bin 79 ./install-sh build/dav $(DESTDIR)$(PREFIX)/bin
81 ./install-sh build/dav-sync $(DESTDIR)/bin 80 ./install-sh build/dav-sync $(DESTDIR)$(PREFIX)/bin
82 81
83 FORCE: 82 FORCE:
84 83

mercurial