blob: d37676052089f3ed2b9999b6ed92861fd2673967 [file] [log] [blame]
Davide Pesaventoa1ed0da2024-07-15 20:00:22 -04001DIRS := $(wildcard */.)
Alexander Afanasyevc5103862014-05-07 19:24:25 -07002
Davide Pesaventoa1ed0da2024-07-15 20:00:22 -04003COMMANDS := distro source-build build dput clean
Alexander Afanasyevc5103862014-05-07 19:24:25 -07004
Davide Pesaventoa1ed0da2024-07-15 20:00:22 -04005all: help
6
7help:
Alexander Afanasyevc5103862014-05-07 19:24:25 -07008 @echo "Available commands:"
9 @\
Davide Pesaventoa1ed0da2024-07-15 20:00:22 -040010for command in ${COMMANDS}; do \
11 echo " $$command"; \
Alexander Afanasyevc5103862014-05-07 19:24:25 -070012done
13
Alexander Afanasyevc5103862014-05-07 19:24:25 -070014$(COMMANDS): ${DIRS}
15 @\
16for dir in ${DIRS}; do \
17 (cd $$dir && $(MAKE) $@) ; \
18done
Alexander Afanasyev2811bdd2014-05-26 07:24:01 -070019
20deb: ${DIRS}
21 mkdir .deb || true
22 @\
23for dir in ${DIRS}; do \
24 (cd $$dir && $(MAKE) build && cp work/*.deb ../.deb/) ; \
25done
26
Davide Pesaventoa1ed0da2024-07-15 20:00:22 -040027.PHONY: all help deb