TOPDIR=`pwd` DIRS=ocs ocs-kit-base \ ocs-kit-cacti \ ocs-kit-lava \ ocs-kit-nagios \ ocs-kit-hpc \ ocs-kit-rhel-ofed \ ocs-kit-rhel-java \ ocs-kit-ntop \ ocs-kit-ganglia OBSOLETE_DIRS=\ ocs-kit-intel-cluster-checker all: @for subdir in $(DIRS); do \ ( cd $$subdir; $(MAKE) rpm ); \ done clean: rm -rf BUILD RPMS SRPMS SPECS update: @for subdir in $(DIRS); do \ ( cd $$subdir; echo "Updating $$subdir.spec"; awk -f ../scripts/updrel.awk <$$subdir.spec >$$subdir.spec.new; mv $$subdir.spec.new $$subdir.spec ); \ done rpmlint: @for specfile in `find . -name \*.spec`; do \ echo "Processing spec file $$specfile"; \ rpmlint $$specfile; \ echo ; \ done .PHONY: rpms clean update realclean