[BACK]Return to taskregdefs.am CVS log [TXT][DIR] Up to [Development] / failsafe / FailSafe-mgr / taskRegistry

File: [Development] / failsafe / FailSafe-mgr / taskRegistry / taskregdefs.am (download)

Revision 1.1, Wed Jun 7 04:26:11 2000 UTC (17 years, 4 months ago) by rusty
Branch: MAIN

copied from Makefile

include $(top_srcdir)/common.am

#CATEGORY = $(shell pwd | sed -e 's/^.*\/\([^\/]*\)$$/\1/')

checktasks:
	@TASKS='$(TASKS)' ; if [ "$$TASKS" != "" ]; then \
		for task in $$TASKS; do \
			file=$(top_srcdir)/packages/`echo $$task | \
				sed -e 's/^[0-9]*\.//' | \
				sed -e 's/\./\//g'`.class; \
			echo "checking task $$task"; \
			if test -f $$file -o -f $$task.noerror; then :; \
			else echo Error: $$file does not exist; exit 1; \
			fi; \
		done; \
	fi

##all-local: checktasks

install-data-local: checktasks
	@TASKS='$(TASKS)' ; if [ "$$TASKS" != "" ]; then \
		CATEGORY=`pwd | sed -e 's/^.*\/\([^\/]*\)$$/\1/'` ; \
##		echo "\$$CATEGORY == $$CATEGORY"; \
		$(mkinstalldirs) $(DESTDIR)$(RHTASKREGDIR)/$$CATEGORY; \
		for task in $$TASKS; do \
##			echo $(INSTALL_TASK); $(INSTALL_TASK); \
			$(INSTALL_DATA) $$task $(DESTDIR)$(RHTASKREGDIR)/$$CATEGORY; \
		done; \
	fi

EXTRA_DIST += $(TASKS)


##RHDEPTH = ../..
##include $(RHDEPTH)/rhdefs
##
##CATEGORY = `pwd | sed -e 's/^.*\/\([^\/]*\)$$/\1/'`
##
##INSTALL_TASK = $(INSTALL) -m 444 -idb SERVER \
##	-F $(RHTASKREGISTRYDIR)/$(CATEGORY) $$task
##
##default: checktasks
##
##include $(RHRULES)
##
##install: default
##	@TASKS='$(TASKS)' ; if [ "$$TASKS" != "" ]; then \
##		for task in $$TASKS; do \
##			echo $(INSTALL_TASK); $(INSTALL_TASK); \
##		done; \
##	fi
##
##checktasks: $(_FORCE)
##	@TASKS='$(TASKS)' ; if [ "$$TASKS" != "" ]; then \
##		for task in $$TASKS; do \
##			file=$(RHDEPTH)/packages/`echo $$task | \
##				sed -e 's/^[0-9]*\.//' | \
##				sed -e 's/\./\//g'`.class; \
##			if test -f $$file -o -f $$task.noerror; then :; \
##			else echo Error: $$file does not exist; exit 1; \
##			fi; \
##		done; \
##	fi