Makefile 1 KB
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
20
21
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:
	-$(RM) -r $(LIBDIR)
	mkdir $(LIBDIR)
Per Cederqvist's avatar
.  
Per Cederqvist committed
22
23
	for i in $(SUBDIRS) ;	\
	do	\
24
25
26
27
28
29
30
31
32
33
		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
34
35
36
37
38
39
40
	done


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

44
45

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


clean:
	rm -vf *~ core
	for i in $(SUBDIRS); \
	do \
	   echo making clean in directory $$i; \
58
	   (cd $$i; $(MAKE) $(EXPORTS) clean) \
Per Cederqvist's avatar
.  
Per Cederqvist committed
59
	done