Source

LIME / project / Makerules

Full commit
##################################################################
# Common rules for all example programs
#
#Copyright (C) 2008 NXP Semiconductors B.V.
#
#This file is part of LIME.
#
#LIME is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License version 2
#as published by the Free Software Foundation; either version 2
#of the License, or (at your option) any later version.
#
#LIME is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with LIME.  If not, see <http://www.gnu.org/licenses/>.
##################################################################
ifeq ($(VERBOSE),)
MAKEFLAGS=-s
endif

ifeq ($a,)
a=$(firstword $(subst ., ,$(graphs)))
#_:=$(shell echo a:$a >/dev/stderr)
endif

export dtd_root=$(shell realpath $r)/doc

all all-lime::
	$r/dom/$d/bin/slimer -o $a -i $(SLIMERFLAGS) $(components) -- $(headers) -- $(graphs)

clean:: cleanup
	$r/dom/$d/bin/slimer -o $a -i -d -c $(components) -- $(headers) -- $(graphs)

distclean:: cleanup
	$r/dom/$d/bin/slimer -o $a -i -d -C $(components) -- $(headers) -- $(graphs)

cleanup::
	rm -f *-full.dot *types *imports

ppurge:
	hg purge -p .

export PATH:=$(PATH):$r/bin

%.graph.xml: %.graph
	en2xml $< >$@ || rm $@