GNUmakefile 814 Bytes
Newer Older
1 2 3 4 5 6 7 8
#
# EMULAB-COPYRIGHT
# Copyright (c) 2007 University of Utah and the Flux Group.
# All rights reserved.
#
# Standalone makefile for building Flexlab binaries
#

Robert Ricci's avatar
Robert Ricci committed
9
SUBDIRS = libnetmon magent iperfd magent/UDP/UdpServerDir
10 11 12 13 14 15 16 17 18 19

all:   all-subdirs
clean: clean-subdirs

# How to recursively descend into subdirectories to make general
# targets such as `all'.
%.MAKE:
	@$(MAKE) -C $(dir $@) $(basename $(notdir $@))
%-subdirs: $(addsuffix /%.MAKE,$(SUBDIRS)) ;

20 21 22 23 24 25 26 27 28 29 30 31 32 33
#
# Rules for making a distribution
#

# Files and directories to exclude
DISTFILE=flexlab-dist.tar.gz
EXCLUDES=CVS stub *.tar.gz supafly $(DISTFILE) *.core .\#* bgmon *.bak \
	 db doc schedmon iplane parastream .??*
	 
EXCLUDE_TARSTR=$(foreach pat,$(EXCLUDES),--exclude '$(pat)')

dist:
	$(MAKE) clean
	gtar czvf $(DISTFILE) $^ $(EXCLUDE_TARSTR) -C ../ pelab/