tmkfile - mkports - recipes for building multiple softwares with mk(1)
(HTM) git clone git://z3bra.org/mkports
(DIR) Log
(DIR) Files
(DIR) Refs
---
tmkfile (735B)
---
1 ALL = `{ls | grep -vE '[A-Z]+|[a-z]*\.mk|mkfile'}
2
3 <deps.mk
4 <config.mk
5
6 default:QV:
7 echo "no default rule."
8 echo "* <port>"
9 echo "* all"
10 echo "* clean"
11 echo "* distclean"
12
13 all:QV: ${ALL}
14 echo you\'re done.
15
16 # due to a bug in mk(1), you need to use the -s flag when
17 # trying to build multiple targets from the cli, otherwise
18 # the recipe will be executed one more time for the fake
19 # target "command line arguments"
20 NPROC = 1
21 %:V:
22 pm -i $stem >/dev/null 2>&1 && exit 0
23 for d in $prereq; do pm -af ${REPO}/${d}@*.tbz; done
24 cd $stem
25 env -i PATH=$PATH mk
26 env -i PATH=$PATH mk clean
27
28 clean:QV:
29 pm -d $(pm -i | cut -f1)
30 for p in ${ALL}; do (cd $p; mk clean); done
31
32 distclean:QV:
33 for p in ${ALL}; do (cd $p; mk distclean); done