Root/Makefile.recurse

Source at commit c3ac7d9cb8ff9909ad82a2ff952a25b7312408af created 13 years 1 month ago.
By Werner Almesberger, atusb/fw3/README: build instructions for firmware and prerequisites
1#
2# Makefile.recurse - Recursively build a few standard targets
3#
4# Written 2008-2010 by Werner Almesberger
5# Copyright 2008-2010 Werner Almesberger
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12
13
14.PHONY: all install uninstall clean spotless
15
16all:
17        for d in $(TARGET_ONLY_DIRS) $(DIRS); \
18          do make -C $$d all || exit 1; done
19
20install:
21        for d in $(DIRS); do make -C $$d install || exit 1; done
22
23uninstall:
24        for d in $(DIRS); do make -C $$d uninstall || exit 1; done
25
26clean:
27        for d in $(DIRS) $(TARGET_ONLY_DIRS); do \
28          make -C $$d clean || exit 1; done
29
30spotless:
31        for d in $(DIRS) $(TARGET_ONLY_DIRS); do \
32          make -C $$d spotless || exit 1; done
33

Archive Download this file



interactive