HEAD: remove ridiculous dependency of wvmapi (actually wvtnef) on evolution
[wvapps.git] / wvdial / Makefile
blob7fc7e15db0864d2d3e5d94c039ff98f39de9e020
1 ifeq ($(TOPDIR),)
2 TOPDIR=.
3 prefix=/usr/local
4 WVSTREAMS_LIB=$(prefix)/lib
5 WVSTREAMS_SRC=.
6 WVSTREAMS_INC=$(prefix)/include/wvstreams
7 WVSTREAMS_BIN=$(prefix)/bin
8 else
9 XPATH=..
10 endif
12 BINDIR=${prefix}/bin
13 MANDIR=${prefix}/share/man
14 PPPDIR=/etc/ppp/peers
16 include $(TOPDIR)/wvrules.mk
19 default: all papchaptest
20 all: wvdial.a wvdial wvdialconf pppmon
22 wvdial.a: wvdialer.o wvdialtext.o wvmodemscan.o wvpapchap.o wvdialbrain.o \
23 wvdialmon.o
25 wvdial wvdialconf papchaptest pppmon: wvdial.a $(LIBUNICONF)
27 install-bin: all
28 [ -d ${BINDIR} ] || install -d ${BINDIR}
29 [ -d ${PPPDIR} ] || install -d ${PPPDIR}
30 install -m 0755 wvdial wvdialconf ${BINDIR}
31 cp ppp.provider ${PPPDIR}/wvdial
32 cp ppp.provider-pipe ${PPPDIR}/wvdial-pipe
34 install-man:
35 [ -d ${MANDIR}/man1 ] || install -d ${MANDIR}/man1
36 [ -d ${MANDIR}/man5 ] || install -d ${MANDIR}/man5
37 install -m 0644 wvdial.1 wvdialconf.1 ${MANDIR}/man1
38 install -m 0644 wvdial.conf.5 ${MANDIR}/man5
40 install: install-bin install-man
42 uninstall-bin:
43 rm -f ${BINDIR}/wvdial ${BINDIR}/wvdialconf
44 rm -f ${PPPDIR}/wvdial
45 rm -f ${PPPDIR}/wvdial-pipe
47 uninstall-man:
48 rm -f ${MANDIR}/man1/wvdial.1 ${MANDIR}/man1/wvdialconf.1
49 rm -f ${MANDIR}/man5/wvdial.conf.5
51 uninstall: uninstall-bin uninstall-man
53 clean:
54 rm -f wvdial wvdialconf wvdialmon papchaptest pppmon
56 .PHONY: clean all install-bin install-man install uninstall-bin uninstall-man \
57 uninstall