|
Revision 346, 1.4 kB
(checked in by dwalker, 9 years ago)
|
|
there is no share subdir
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | SUBDIRS = src |
|---|
| 2 | |
|---|
| 3 | .PHONY: all_recursive install_recursive clean_recursive distclean_recursive \ |
|---|
| 4 | all clean distclean install |
|---|
| 5 | |
|---|
| 6 | all_recursive install_recursive clean_recursive distclean_recursive: |
|---|
| 7 | @for subdir in $(SUBDIRS); do \ |
|---|
| 8 | target=`echo $@ | sed s/_recursive//`; \ |
|---|
| 9 | echo "Making $$target in $$subdir"; \ |
|---|
| 10 | (cd $$subdir && $(MAKE) $$target); \ |
|---|
| 11 | done |
|---|
| 12 | |
|---|
| 13 | all: all_recursive |
|---|
| 14 | |
|---|
| 15 | clean: clean_recursive |
|---|
| 16 | |
|---|
| 17 | distclean: distclean_recursive |
|---|
| 18 | $(RM) config.cache config.log config.status Makefile config.h \ |
|---|
| 19 | confdefs.h *~ |
|---|
| 20 | |
|---|
| 21 | install: install_recursive |
|---|
| 22 | |
|---|
| 23 | cvs-clean: |
|---|
| 24 | @if test ! -d CVS; then \ |
|---|
| 25 | echo "you don't have a toplevel CVS directory."; \ |
|---|
| 26 | echo "You most certainly didn't use cvs to get these sources."; \ |
|---|
| 27 | echo "But this function depends on cvs's informations."; \ |
|---|
| 28 | exit 1 ;\ |
|---|
| 29 | fi;\ |
|---|
| 30 | pwd=`pwd` ;\ |
|---|
| 31 | dirs=`find . -type d | grep -v CVS | sed -e "s#^./##"` ;\ |
|---|
| 32 | for i in $$dirs; do \ |
|---|
| 33 | if test ! -d $$pwd/$$i/CVS; then \ |
|---|
| 34 | echo "D $$i" ;\ |
|---|
| 35 | rm -rf $$pwd/$$i; \ |
|---|
| 36 | continue; \ |
|---|
| 37 | fi ;\ |
|---|
| 38 | cd $$pwd/$$i ;\ |
|---|
| 39 | for f in * .*; do \ |
|---|
| 40 | if test ! -d $$f; then \ |
|---|
| 41 | if grep "^/$$f/" CVS/Entries >/dev/null; then \ |
|---|
| 42 | a="b"; \ |
|---|
| 43 | else \ |
|---|
| 44 | echo "F $$i/$$f"; \ |
|---|
| 45 | rm -f $$pwd/$$i/$$f; \ |
|---|
| 46 | fi; \ |
|---|
| 47 | fi ; \ |
|---|
| 48 | done; \ |
|---|
| 49 | done |
|---|