Makefile 1007 Bytes
Newer Older
1
TOPDIR = /usr/lyskom
Per Cederqvist's avatar
.  
Per Cederqvist committed
2
3
4
5
SCRIPTDIR = $(TOPDIR)/scripts

include $(SCRIPTDIR)/import.make

6
SUBDIRS = doc junk scripts src
Per Cederqvist's avatar
.  
Per Cederqvist committed
7

8
9
10
11
12
13
14
15
16
17
18
19
all: includes libraries binaries

includes:
	-mkdir $(INCLUDEDIR)
	for i in $(SUBDIRS) ;	\
	do	\
		echo making includes in directory $$i; \
		(cd $$i; $(MAKE) $(EXPORTS) includes)	\
	done


libraries:
Per Cederqvist's avatar
Per Cederqvist committed
20
	-mkdir $(LIBDIR)
Per Cederqvist's avatar
.  
Per Cederqvist committed
21
22
	for i in $(SUBDIRS) ;	\
	do	\
23
24
25
26
27
28
29
30
31
32
		echo making libraries in directory $$i; \
		(cd $$i; $(MAKE) $(EXPORTS) libraries)	\
	done


binaries:
	for i in $(SUBDIRS) ;	\
	do	\
		echo making binaries in directory $$i; \
		(cd $$i; $(MAKE) $(EXPORTS) binaries)	\
Per Cederqvist's avatar
.  
Per Cederqvist committed
33
34
35
36
37
38
39
	done


install:
	for i in $(SUBDIRS) ;	\
	do	\
		echo making install in directory $$i; \
40
		(cd $$i; $(MAKE) $(EXPORTS) install)	\
Per Cederqvist's avatar
.  
Per Cederqvist committed
41
42
	done

43
44

depend: includes
Per Cederqvist's avatar
.  
Per Cederqvist committed
45
46
47
	for i in $(SUBDIRS) ;	\
	do	\
		echo making depend in directory $$i; \
48
		(cd $$i; $(MAKE) $(EXPORTS) depend);	\
Per Cederqvist's avatar
.  
Per Cederqvist committed
49
50
51
52
	done


clean:
Per Cederqvist's avatar
Per Cederqvist committed
53
	$(RM) *~ core
Per Cederqvist's avatar
.  
Per Cederqvist committed
54
55
56
	for i in $(SUBDIRS); \
	do \
	   echo making clean in directory $$i; \
57
	   (cd $$i; $(MAKE) $(EXPORTS) clean) \
Per Cederqvist's avatar
.  
Per Cederqvist committed
58
	done