WSANOTINITIALISED is an okay error when shutting down WvStreams in win32.
[wvstreams.git] / install.mk
blobd70ad19dd87888f997c4c93fe1e733cf95d191a2
1 ifeq ("$(with_readline)", "no")
2 install: install-shared install-dev install-xplc install-uniconfd
3 else
4 install: install-shared install-dev install-xplc install-uniconfd install-wsd
5 endif
7 install-shared: $(TARGETS_SO)
8 $(INSTALL) -d $(DESTDIR)$(libdir)
9 for i in $(TARGETS_SO); do \
10 $(INSTALL_PROGRAM) $$i.$(SO_VERSION) $(DESTDIR)$(libdir)/ ; \
11 done
12 $(INSTALL) -d $(DESTDIR)$(sysconfdir)
13 $(INSTALL_DATA) uniconf/daemon/uniconf.conf $(DESTDIR)$(sysconfdir)/
15 install-dev: $(TARGETS_SO) $(TARGETS_A)
16 $(INSTALL) -d $(DESTDIR)$(includedir)/wvstreams
17 $(INSTALL_DATA) $(wildcard include/*.h) $(DESTDIR)$(includedir)/wvstreams
18 $(INSTALL) -d $(DESTDIR)$(libdir)
19 for i in $(TARGETS_A); do \
20 $(INSTALL_DATA) $$i $(DESTDIR)$(libdir); \
21 done
22 cd $(DESTDIR)$(libdir) && for i in $(TARGETS_SO); do \
23 rm -f $$i; \
24 $(LN_S) $$i.$(SO_VERSION) $$i; \
25 done
26 $(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig
27 $(INSTALL_DATA) $(filter-out %-uninstalled.pc, $(wildcard pkgconfig/*.pc)) $(DESTDIR)$(libdir)/pkgconfig
28 $(INSTALL) -d $(DESTDIR)$(bindir)
29 $(INSTALL) wvtesthelper wvtestmeter $(DESTDIR)$(bindir)
30 $(INSTALL) -d $(DESTDIR)$(libdir)/valgrind
31 $(INSTALL) wvstreams.supp $(DESTDIR)$(libdir)/valgrind
33 install-uniconfd: uniconfd uniconf/tests/uni uniconf/tests/uni.8
34 $(INSTALL) -d $(DESTDIR)$(bindir)
35 $(INSTALL_PROGRAM) uniconf/tests/uni $(DESTDIR)$(bindir)/
36 $(INSTALL) -d $(DESTDIR)$(sbindir)
37 $(INSTALL_PROGRAM) uniconf/daemon/uniconfd $(DESTDIR)$(sbindir)/
38 $(INSTALL) -d $(DESTDIR)$(localstatedir)/lib/uniconf
39 touch $(DESTDIR)$(localstatedir)/lib/uniconf/uniconfd.ini
40 $(INSTALL) -d $(DESTDIR)$(mandir)/man8
41 $(INSTALL_DATA) uniconf/daemon/uniconfd.8 $(DESTDIR)$(mandir)/man8
42 $(INSTALL_DATA) uniconf/tests/uni.8 $(DESTDIR)$(mandir)/man8
44 install-wsd: ipstreams/tests/wsd
45 $(INSTALL) -d $(DESTDIR)$(bindir)
46 $(INSTALL_PROGRAM) ipstreams/tests/wsd $(DESTDIR)$(bindir)/