[r24]: / LIME-examples / Makerules  Maximize  Restore  History

Download this file

47 lines (37 with data), 1.3 kB

##################################################################
# Common rules for all example programs
#
#Copyright 2008 Pjotr Kourzanov
#
#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.
#
#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

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

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

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

cleanup::
	rm -f *-full.dot

ppurge:
	hg purge -p .

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

%-full.dot: %.gxf
	gxfdump -vrelax=1 -vOP=dot -vnode_detail=1 -vedge_detail=1 $< >$@

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