Mercurial > pt1.oyama
annotate Makefile @ 138:097d5aaf6b07
Fix problem BS-23 can not be recorded.
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Mon, 02 Jul 2012 20:19:00 +0900 |
parents | 4f6d9621ee00 |
children | 5eab7c73a28a |
rev | line source |
---|---|
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 | |
129
4f6d9621ee00
add multi session streaming & add depending librarys.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
10 EXTRALIBS = libupnp-1.6.6 \ |
4f6d9621ee00
add multi session streaming & add depending librarys.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
11 libdlna-0.2.3 \ |
4f6d9621ee00
add multi session streaming & add depending librarys.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
12 |
125 | 13 SUBDIRS = src \ |
14 | |
15 all: | |
16 for subdir in $(SUBDIRS); do \ | |
17 $(MAKE) -C $$subdir $@; \ | |
18 done | |
19 | |
20 clean: | |
21 for subdir in $(SUBDIRS); do \ | |
22 $(MAKE) -C $$subdir $@; \ | |
23 done | |
129
4f6d9621ee00
add multi session streaming & add depending librarys.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
24 for subdir in $(EXTRALIBS); do \ |
4f6d9621ee00
add multi session streaming & add depending librarys.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
25 $(MAKE) uninstall; \ |
4f6d9621ee00
add multi session streaming & add depending librarys.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
26 $(MAKE) -C $$subdir $@; \ |
4f6d9621ee00
add multi session streaming & add depending librarys.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
27 done |
125 | 28 |
29 distclean: clean | |
30 for subdir in $(SUBDIRS); do \ | |
31 $(MAKE) -C $$subdir $@; \ | |
32 done | |
129
4f6d9621ee00
add multi session streaming & add depending librarys.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
33 for subdir in $(EXTRALIBS); do \ |
4f6d9621ee00
add multi session streaming & add depending librarys.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
34 $(MAKE) uninstall; \ |
4f6d9621ee00
add multi session streaming & add depending librarys.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
35 $(MAKE) -C $$subdir $@; \ |
4f6d9621ee00
add multi session streaming & add depending librarys.
Naoya OYAMA <naoya.oyama@gmail.com>
parents:
125
diff
changeset
|
36 done |
125 | 37 -$(RM) -f config.log |
38 -$(RM) -f config.mak | |
39 -$(RM) -f config.h | |
40 | |
41 | |
42 install: | |
43 for subdir in $(SUBDIRS); do \ | |
44 $(MAKE) -C $$subdir $@; \ | |
45 done | |
46 | |
47 .PHONY: clean distclean install | |
48 | |
49 dist: | |
50 -$(RM) $(DISTFILE) | |
51 dist=$(shell pwd)/recpt1-$(VERSION) && \ | |
52 for subdir in . $(SUBDIRS); do \ | |
53 mkdir -p "$$dist/$$subdir"; \ | |
54 $(MAKE) -C $$subdir dist-all DIST="$$dist/$$subdir"; \ | |
55 done && \ | |
56 tar cjf $(DISTFILE) recpt1-$(VERSION) | |
57 -$(RM) -rf recpt1-$(VERSION) | |
58 | |
59 dist-all: | |
60 cp $(SRCS) Makefile $(DIST) | |
61 | |
62 .PHONY: dist dist-all |