blob: f207d68a2a5b1983f0fa46567a4242952ccd3020 [file] [log] [blame]
Alexander Afanasyevc5103862014-05-07 19:24:25 -07001DIRS = $(filter %/, $(wildcard */))
2
Alexander Afanasyev2811bdd2014-05-26 07:24:01 -07003COMMANDS = distro source-build build dput clean
Alexander Afanasyevc5103862014-05-07 19:24:25 -07004
5all:
6 @echo "Available commands:"
7 @\
8for command in ${COMMANDS}; do \
9echo " $$command"; \
10done
11
12
13$(COMMANDS): ${DIRS}
14 @\
15for dir in ${DIRS}; do \
16 (cd $$dir && $(MAKE) $@) ; \
17done
Alexander Afanasyev2811bdd2014-05-26 07:24:01 -070018
19deb: ${DIRS}
20 mkdir .deb || true
21 @\
22for dir in ${DIRS}; do \
23 (cd $$dir && $(MAKE) build && cp work/*.deb ../.deb/) ; \
24done
25