blob: a64e498c98bd22e7c56ea0972d298387b620c1e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# $Id$
export SHELL = /bin/sh
.PHONY : test log all clean distclean uninstall
DEST ?= DIST
MKINSTALLDIRS = ./bcfg2-site/bcfg2-site-RENAME/mkinstalldirs
log :
@printf "Building in background, and logging to ./make.log\n"
( $(MAKE) all > ./make.log 2>&1 ) &
all : distclean
$(MAKE) -C ./encap-profiles all
$(MAKE) -C ./bcfg2-site all
$(MAKE) -C ./makeself-dist all
if [ ! -d $(DEST) ]; then $(MKINSTALLDIRS) $(DEST); fi
cp makeself-dist/*.run $(DEST)
cp encap-profiles/*.tar.gz $(DEST)
@printf "\n\n### encap build finished...\n"
@printf "## Client install self-extracting/installing package is:\n"
@printf "%s\n" "`ls $(DEST)/*.run 2>/dev/null`"
@printf "\n"
clean :
-rm ./*.log ./*~ ./\#*
distclean : clean
-rm -rf $(DEST) bcfg2-site/bcfg2-site-[a-z]* makeself-dist/bcfg2-*
uninstall : distclean
$(MAKE) -C ./encap-profiles uninstall
$(MAKE) -C ./bcfg2-site distclean
$(MAKE) -C ./makeself-dist distclean
|