125
|
1 ifeq (,$(wildcard config.mak))
|
|
2 $(error "config.mak is not present, run configure !")
|
|
3 endif
|
|
4 include config.mak
|
|
5
|
|
6 DISTFILE = recpt1-$(VERSION).tar.bz2
|
|
7
|
|
8 EXTRADIST = configure \
|
|
9
|
|
10 SUBDIRS = src \
|
139
|
11 driver \
|
|
12 pt3 \
|
125
|
13
|
|
14 all:
|
|
15 for subdir in $(SUBDIRS); do \
|
|
16 $(MAKE) -C $$subdir $@; \
|
|
17 done
|
|
18
|
|
19 clean:
|
|
20 for subdir in $(SUBDIRS); do \
|
|
21 $(MAKE) -C $$subdir $@; \
|
|
22 done
|
|
23
|
|
24 distclean: clean
|
|
25 for subdir in $(SUBDIRS); do \
|
|
26 $(MAKE) -C $$subdir $@; \
|
|
27 done
|
|
28 -$(RM) -f config.log
|
|
29 -$(RM) -f config.mak
|
|
30 -$(RM) -f config.h
|
|
31
|
|
32
|
|
33 install:
|
|
34 for subdir in $(SUBDIRS); do \
|
|
35 $(MAKE) -C $$subdir $@; \
|
|
36 done
|
|
37
|
|
38 .PHONY: clean distclean install
|
|
39
|
139
|
40 uninstall:
|
|
41 echo a > /dev/null
|
|
42
|
125
|
43 dist:
|
|
44 -$(RM) $(DISTFILE)
|
|
45 dist=$(shell pwd)/recpt1-$(VERSION) && \
|
|
46 for subdir in . $(SUBDIRS); do \
|
|
47 mkdir -p "$$dist/$$subdir"; \
|
|
48 $(MAKE) -C $$subdir dist-all DIST="$$dist/$$subdir"; \
|
|
49 done && \
|
|
50 tar cjf $(DISTFILE) recpt1-$(VERSION)
|
|
51 -$(RM) -rf recpt1-$(VERSION)
|
|
52
|
|
53 dist-all:
|
|
54 cp $(SRCS) Makefile $(DIST)
|
|
55
|
|
56 .PHONY: dist dist-all
|