view Makefile @ 170:4f3640bf350d

Change display name of DLNA. - old_display name: (recpt1:devN) - new_display name: (hostname: /dev/ptXdevY) - change UUID format.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Wed, 17 Oct 2012 23:47:16 +0900
parents 5eab7c73a28a
children
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 \

SUBDIRS = src \
          driver \
          pt3 \

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

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

distclean: clean
	for subdir in $(SUBDIRS); do \
	  $(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

uninstall:
	echo a > /dev/null

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