blob: f207d68a2a5b1983f0fa46567a4242952ccd3020 [file] [log] [blame]
DIRS = $(filter %/, $(wildcard */))
COMMANDS = distro source-build build dput clean
all:
@echo "Available commands:"
@\
for command in ${COMMANDS}; do \
echo " $$command"; \
done
$(COMMANDS): ${DIRS}
@\
for dir in ${DIRS}; do \
(cd $$dir && $(MAKE) $@) ; \
done
deb: ${DIRS}
mkdir .deb || true
@\
for dir in ${DIRS}; do \
(cd $$dir && $(MAKE) build && cp work/*.deb ../.deb/) ; \
done