Makefile 750 Bytes
Newer Older
1
TOPDIR = /usr/lyskom/src
Per Cederqvist's avatar
.  
Per Cederqvist committed
2
3
4
5
6
7
8
9
10
11
SCRIPTDIR = $(TOPDIR)/scripts

include $(SCRIPTDIR)/import.make

SUBDIRS = doc include junk lib scripts src

all:
	for i in $(SUBDIRS) ;	\
	do	\
		echo making all in directory $$i; \
12
		(cd $$i; $(MAKE) $(EXPORTS) all)	\
Per Cederqvist's avatar
.  
Per Cederqvist committed
13
14
15
16
17
18
19
	done


install:
	for i in $(SUBDIRS) ;	\
	do	\
		echo making install in directory $$i; \
20
		(cd $$i; $(MAKE) $(EXPORTS) install)	\
Per Cederqvist's avatar
.  
Per Cederqvist committed
21
22
23
	done

depend:
24
25
	(cd src/include; make $(EXPORTS) install)
	(cd src/libraries; make $(EXPORTS) install-headers)
Per Cederqvist's avatar
.  
Per Cederqvist committed
26
27
28
	for i in $(SUBDIRS) ;	\
	do	\
		echo making depend in directory $$i; \
29
		(cd $$i; $(MAKE) $(EXPORTS) depend);	\
Per Cederqvist's avatar
.  
Per Cederqvist committed
30
31
32
33
34
35
36
37
	done


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