Fix rpc_init so it isn't confused by ssh
[nfs-utils.git] / Makefile
1 #
2 # linux-nfs/Makefile
3 #
4
5 SUBDIRS = tools support utils
6 TOP     = 
7
8 all:: config.mk utils/statd/.depend
9 install:: all
10
11 include $(TOP)rules.mk
12
13
14 config.mk:
15         ./configure
16
17 utils/statd/.depend:
18         $(MAKE) $(MFLAGS) dep
19
20 distclean clean::
21         rm -f postscript/*.ps
22         rm -f LOG make.log
23
24 distclean::
25         rm -fr bin
26         rm -f config.cache config.log config.mk config.status
27
28 install:: installman
29         if [ ! -d $(STATEDIR) ]; then mkdir -p $(STATEDIR); fi
30         touch $(STATEDIR)/xtab; chmod 644 $(STATEDIR)/xtab
31         touch $(STATEDIR)/etab; chmod 644 $(STATEDIR)/etab
32         touch $(STATEDIR)/rmtab; chmod 644 $(STATEDIR)/rmtab
33         mkdir -p $(STATEDIR)/sm $(STATEDIR)/sm.bak
34         touch $(STATEDIR)/state
35         chmod go-rwx $(STATEDIR)/sm $(STATEDIR)/sm.bak $(STATEDIR)/state
36         chown $(STATDUSER) $(STATEDIR)/sm $(STATEDIR)/sm.bak $(STATEDIR)/state