| 1 |
|
| 2 |
stoptheunwary: |
| 3 |
$(error "*** You are in the GAR directory and probably didn't mean to call make") |
| 4 |
|
| 5 |
FILTER_DIRS = CVS/ bin/ meta/ |
| 6 |
# top-level Makefile for the entire tree. |
| 7 |
%: |
| 8 |
@for i in $(filter-out $(FILTER_DIRS),$(wildcard */)) ; do \ |
| 9 |
$(MAKE) -C $$i $* ; \ |
| 10 |
done |
| 11 |
|
| 12 |
paranoid-%: |
| 13 |
@for i in $(filter-out $(FILTER_DIRS),$(wildcard */)) ; do \ |
| 14 |
$(MAKE) -C $$i $@ || exit 2; \ |
| 15 |
done |
| 16 |
|
| 17 |
unbuilt: |
| 18 |
@(gfind . -mindepth 3 -maxdepth 3 -name work | cut -d/ -f 3; gfind . -mindepth 2 -maxdepth 2 | cut -d/ -f3) | sort | uniq -u |
| 19 |
|
| 20 |
export BUILDLOG ?= $(shell pwd)/buildlog.txt |
| 21 |
|
| 22 |
report-%: |
| 23 |
@echo "$@ started at $$(date)" >> $(BUILDLOG) |
| 24 |
@for i in $(filter-out $(FILTER_DIRS),$(wildcard */)) ; do \ |
| 25 |
$(MAKE) -C $$i $@ || echo " make $@ in category $$i failed" >> $(BUILDLOG); \ |
| 26 |
done |
| 27 |
@echo "$@ completed at $$(date)" >> $(BUILDLOG) |
| 28 |
|
| 29 |
pkgdesc = `/bin/perl -ne '/DESCRIPTION\s+=\s+(.+)$$/ && print $$1' $(1)/Makefile` |
| 30 |
cvsdesc: |
| 31 |
@for package in $(shell gfind . -type d -mindepth 2 -maxdepth 2 -not -name 'CVS' -a -not -name '00CPAN_Module_Template' | gsed -e 's/^\.\///') ; do \ |
| 32 |
printf "%-36s%s\n" sunx/$$package "$(call pkgdesc,$$package)" ; \ |
| 33 |
done |
| 34 |
|
| 35 |
GARDIR=$(CURDIR) |
| 36 |
include gar.mk |
| 37 |
|
| 38 |
pkgclean: |
| 39 |
@if test -d "$(DESTBUILD)" ; then \ |
| 40 |
echo " ==> Removing $(DESTBUILD)" ; \ |
| 41 |
rm -rf $(DESTBUILD) ; \ |
| 42 |
fi |
| 43 |
@if test -d "$(SPKG_SPOOLDIR)" ; then \ |
| 44 |
echo " ==> Removing $(SPKG_SPOOLDIR)" ; \ |
| 45 |
rm -rf $(SPKG_SPOOLDIR) ; \ |
| 46 |
fi |
| 47 |
|
| 48 |
.PHONY: unbuilt |