view Makefile @ 133:0db6ccf0fe31

modify DLNA display name & UUID
author Naoya OYAMA <naoya.oyama@gmail.com>
date Thu, 14 Oct 2010 00:07:05 +0900
parents 4f6d9621ee00
children 5eab7c73a28a
line wrap: on
line source

ifeq (,$(wildcard config.mak))
$(error "config.mak is not present, run configure !")
endif
include config.mak

DISTFILE = recpt1-$(VERSION).tar.bz2

EXTRADIST = configure \

EXTRALIBS = libupnp-1.6.6 \
	libdlna-0.2.3 \

SUBDIRS = src \

all:
	for subdir in $(SUBDIRS); do \
	  $(MAKE) -C $$subdir $@; \
	done

clean:
	for subdir in $(SUBDIRS); do \
	  $(MAKE) -C $$subdir $@; \
	done
	for subdir in $(EXTRALIBS); do \
	  $(MAKE) uninstall; \
	  $(MAKE) -C $$subdir $@; \
	done

distclean: clean
	for subdir in $(SUBDIRS); do \
	  $(MAKE) -C $$subdir $@; \
	done
	for subdir in $(EXTRALIBS); do \
	  $(MAKE) uninstall; \
	  $(MAKE) -C $$subdir $@; \
	done
	-$(RM) -f config.log
	-$(RM) -f config.mak
	-$(RM) -f config.h


install:
	for subdir in $(SUBDIRS); do \
	  $(MAKE) -C $$subdir $@; \
	done

.PHONY: clean distclean install

dist:
	-$(RM) $(DISTFILE)
	dist=$(shell pwd)/recpt1-$(VERSION) && \
	for subdir in . $(SUBDIRS); do \
		mkdir -p "$$dist/$$subdir"; \
		$(MAKE) -C $$subdir dist-all DIST="$$dist/$$subdir"; \
	done && \
	tar cjf $(DISTFILE) recpt1-$(VERSION)
	-$(RM) -rf recpt1-$(VERSION)

dist-all:
	cp $(SRCS) Makefile $(DIST)

.PHONY: dist dist-all