aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 09fcb5e2d78523f8317990aecb43082665457bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $Id$
#
# Main Makefile for the autofs user-space tools
#
SUBDIRS = daemon modules man
INCDIRS = include samples
INCFILES = COPYING COPYRIGHT NEWS README TODO Makefile Makefile.rules \
	   .version *.diff

.PHONY: daemon all kernel clean install install_kernel mrproper
.PHONY: distclean backup

daemon:
	for i in $(SUBDIRS); do $(MAKE) -C $$i all; done 

kernel:
	if [ -d kernel ]; then $(MAKE) -C kernel all; fi

all:	daemon kernel

clean:
	for i in $(SUBDIRS) kernel; do \
		if [ -d $$i ]; then $(MAKE) -C $$i clean; fi; done 	

install:
	for i in $(SUBDIRS); do $(MAKE) -C $$i install; done 	

install_kernel:
	if [ -d kernel ]; then $(MAKE) -C kernel install; fi

mrproper distclean: clean
	find . -noleaf \( -name '*~' -o -name '#*' -o -name '*.orig' -o -name '*.rej' -o -name '*.old' \) -print0 | xargs -0 rm -f

TODAY := $(shell date +'%Y%m%d')

backup: mrproper
	cd .. ; tar cf - autofs | gzip -9 > autofs-bu-$(TODAY).tar.gz 

-include Makefile.private