source: trunk/base/Mk/dports.subdir.mk @ 3314

Last change on this file since 3314 was 2770, checked in by ssen, 17 years ago

Support a "make distclean" target. "clean" just removes built binaries
and config files. "distclean" restores the source tree to a fresh checkout
Bug: 597
Submitted by: Shantonu Sen <ssen@…>

  • Property svn:eol-style set to native
File size: 563 bytes
Line 
1.PHONY : all
2.PHONY : clean distclean
3.PHONY : install
4
5all::
6        @for subdir in $(SUBDIR); do\
7                echo ===\> making $@ in ${DIRPRFX}$$subdir; \
8                ( cd $$subdir && $(MAKE) DIRPRFX=${DIRPRFX}$$subdir/ $@) || exit 1; \
9        done
10
11clean distclean::
12        @for subdir in $(SUBDIR); do\
13                echo ===\> making $@ in ${DIRPRFX}$$subdir; \
14                ( cd $$subdir && $(MAKE) DIRPRFX=${DIRPRFX}$$subdir/ $@) || exit 1; \
15        done
16
17install::
18        @for subdir in $(SUBDIR); do\
19                echo ===\> making $@ in ${DIRPRFX}$$subdir; \
20                ( cd $$subdir && $(MAKE) DIRPRFX=${DIRPRFX}$$subdir/ $@) || exit 1; \
21        done
Note: See TracBrowser for help on using the repository browser.