summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: fc279e26aa6d4ac4b448d08f49990b5574b015d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
SUBDIRS = kernel client server
SRCDIR = .
TO_TAR = ./{Makefile,README,COPYING,CREDITS,{kernel,client,server}/{*.c,*.h,Makefile},common/*.h}

all-recursive:
	for dir in $(SUBDIRS); do cd $$dir; $(MAKE) all; cd ..; done
	
all-clean:
	for dir in $(SUBDIRS); do cd $$dir; $(MAKE) clean; cd ..; done
	
all: all-recursive

clean: all-clean

tar:
	cd $(SRCDIR)
	dirname=`basename $(PWD)`; cd ..; \
	tar czfv $$dirname.tar.gz $$dirname/$(TO_TAR)