Mercurial > pt1.oyama
comparison Makefile @ 139:5eab7c73a28a
Add PT3 driver
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Sat, 28 Jul 2012 16:05:28 +0900 |
parents | 4f6d9621ee00 |
children |
comparison
equal
deleted
inserted
replaced
138:097d5aaf6b07 | 139:5eab7c73a28a |
---|---|
5 | 5 |
6 DISTFILE = recpt1-$(VERSION).tar.bz2 | 6 DISTFILE = recpt1-$(VERSION).tar.bz2 |
7 | 7 |
8 EXTRADIST = configure \ | 8 EXTRADIST = configure \ |
9 | 9 |
10 EXTRALIBS = libupnp-1.6.6 \ | |
11 libdlna-0.2.3 \ | |
12 | |
13 SUBDIRS = src \ | 10 SUBDIRS = src \ |
11 driver \ | |
12 pt3 \ | |
14 | 13 |
15 all: | 14 all: |
16 for subdir in $(SUBDIRS); do \ | 15 for subdir in $(SUBDIRS); do \ |
17 $(MAKE) -C $$subdir $@; \ | 16 $(MAKE) -C $$subdir $@; \ |
18 done | 17 done |
19 | 18 |
20 clean: | 19 clean: |
21 for subdir in $(SUBDIRS); do \ | 20 for subdir in $(SUBDIRS); do \ |
22 $(MAKE) -C $$subdir $@; \ | 21 $(MAKE) -C $$subdir $@; \ |
23 done | 22 done |
24 for subdir in $(EXTRALIBS); do \ | |
25 $(MAKE) uninstall; \ | |
26 $(MAKE) -C $$subdir $@; \ | |
27 done | |
28 | 23 |
29 distclean: clean | 24 distclean: clean |
30 for subdir in $(SUBDIRS); do \ | 25 for subdir in $(SUBDIRS); do \ |
31 $(MAKE) -C $$subdir $@; \ | |
32 done | |
33 for subdir in $(EXTRALIBS); do \ | |
34 $(MAKE) uninstall; \ | |
35 $(MAKE) -C $$subdir $@; \ | 26 $(MAKE) -C $$subdir $@; \ |
36 done | 27 done |
37 -$(RM) -f config.log | 28 -$(RM) -f config.log |
38 -$(RM) -f config.mak | 29 -$(RM) -f config.mak |
39 -$(RM) -f config.h | 30 -$(RM) -f config.h |
43 for subdir in $(SUBDIRS); do \ | 34 for subdir in $(SUBDIRS); do \ |
44 $(MAKE) -C $$subdir $@; \ | 35 $(MAKE) -C $$subdir $@; \ |
45 done | 36 done |
46 | 37 |
47 .PHONY: clean distclean install | 38 .PHONY: clean distclean install |
39 | |
40 uninstall: | |
41 echo a > /dev/null | |
48 | 42 |
49 dist: | 43 dist: |
50 -$(RM) $(DISTFILE) | 44 -$(RM) $(DISTFILE) |
51 dist=$(shell pwd)/recpt1-$(VERSION) && \ | 45 dist=$(shell pwd)/recpt1-$(VERSION) && \ |
52 for subdir in . $(SUBDIRS); do \ | 46 for subdir in . $(SUBDIRS); do \ |