Debian Codegraph @

Makefile

raw
1 #
2 # Main Makefile for the autofs user-space tools
3 #
4
5 -include Makefile.conf
6 include Makefile.rules
7
8 .PHONY: daemon all clean samples install install_samples
9 .PHONY: mrproper distclean backup
10
11 all: daemon samples
12
13 daemon:
14 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i all; done
15
16 kernel:
17 set -e; if [ -d kernel ]; then $(MAKE) -C kernel all; fi
18
19 samples:
20 set -e; if [ -d samples ]; then $(MAKE) -C samples all; fi
21
22 fedfs:
23 set -e; if [ -d fedfs ]; then $(MAKE) -C fedfs all; fi
24
25 clean:
26 for i in $(SUBDIRS) samples; do \
27 if [ -d $$i ]; then $(MAKE) -C $$i clean; fi; done
28
29 install:
30 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i install; done
31
32 install_kernel:
33 set -e; if [ -d kernel ]; then $(MAKE) -C kernel install; fi
34
35 install_samples:
36 set -e; if [ -d samples ]; then $(MAKE) -C samples install; fi
37
38 mrproper distclean: clean
39 find . -noleaf \( -name '*~' -o -name '#*' -o -name '*.orig' -o -name '*.rej' -o -name '*.old' \) -print0 | xargs -0 rm -f
40 -rm -f include/config.h Makefile.conf config.* .autofs-*
41 echo x > .autofs-`cat .version`
42 sed -e "s/(\.autofs-[0-9.]\+)/(.autofs-`cat .version`)/" < configure.ac > configure.ac.tmp
43 mv -f configure.ac.tmp configure.ac
44 rm -f configure
45 $(MAKE) configure
46
47 TODAY := $(shell date +'%Y%m%d')
48 PKGDIR := $(shell basename `pwd`)
49 VERSION := $(shell cat .version)
50
51 backup: mrproper
52 cd .. ; tar zcf - $(PKGDIR) | gzip -9 > autofs-$(VERSION)-bu-$(TODAY).tar.gz
53
54 configure: configure.ac aclocal.m4
55 autoconf
56 autoheader
57 rm -rf config.* *.cache
58
59 configure.ac: .version
60 -rm -f .autofs-*
61 echo x > .autofs-`cat .version`
62 sed -e "s/(\.autofs-[0-9.]\+)/(.autofs-`cat .version`)/" < configure.ac > configure.ac.tmp
63 mv -f configure.ac.tmp configure.ac
64
65 -include Makefile.private
66
67