1 # -*- Makefile -*- rules commonly shared among X consolidation open source dirs |
1 # -*- Makefile -*- rules commonly shared among X consolidation open source dirs |
2 # Makefile.subdirs has rules for recursively iterating through module subdirs |
2 # Makefile.subdirs has rules for recursively iterating through module subdirs |
3 # |
3 # |
4 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. |
4 # Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved. |
5 # |
5 # |
6 # Permission is hereby granted, free of charge, to any person obtaining a |
6 # Permission is hereby granted, free of charge, to any person obtaining a |
7 # copy of this software and associated documentation files (the "Software"), |
7 # copy of this software and associated documentation files (the "Software"), |
8 # to deal in the Software without restriction, including without limitation |
8 # to deal in the Software without restriction, including without limitation |
9 # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
9 # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
58 if [[ -d $$i ]] ; then \ |
58 if [[ -d $$i ]] ; then \ |
59 if [[ -f $$i/Makefile ]] ; then \ |
59 if [[ -f $$i/Makefile ]] ; then \ |
60 $(MAKE) $(MAKEFLAGS) subdirs OS_TARGET=clean OS_SUBDIRS=$$i ; \ |
60 $(MAKE) $(MAKEFLAGS) subdirs OS_TARGET=clean OS_SUBDIRS=$$i ; \ |
61 else ; \ |
61 else ; \ |
62 print "## removing obsolete build directories in open-src/$(DIRNAME)$$i..."; \ |
62 print "## removing obsolete build directories in open-src/$(DIRNAME)$$i..."; \ |
63 ($(START_CMD_ECHO) ; cd $$i && rm -rf build* .checksum* ) ; \ |
63 ($(START_CMD_ECHO) ; cd $$i && rm -rf unpacked-src build* .checksum* ) ; \ |
64 ($(START_CMD_ECHO) ; rmdir $$i ) ; \ |
64 ($(START_CMD_ECHO) ; rmdir $$i ) ; \ |
65 fi ; \ |
65 fi ; \ |
66 fi ; \ |
66 fi ; \ |
67 done ; \ |
67 done ; \ |
68 fi ; \ |
68 fi ; \ |