Makefile
author Heinz Junkes <junkes@fhi-berlin.mpg.de>
Tue, 28 Oct 2014 04:47:56 +0100
changeset 4 f4ddf0ee30a9
parent 1 425def26d5f1
permissions -rw-r--r--
new structure, local EPICS-base and support files, not included in repo

#Makefile at top of application tree
TOP = .
include $(TOP)/configure/CONFIG
DIRS := $(DIRS) $(filter-out $(DIRS), configure)
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *App))
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard iocBoot))

define DIR_template
 $(1)_DEPEND_DIRS = configure
endef
$(foreach dir, $(filter-out configure,$(DIRS)),$(eval $(call DIR_template,$(dir))))

iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS))

include $(TOP)/configure/RULES_TOP

all:
	cp -rf iocBoot /srv/ioc/sys
	cp -rf bin /srv/ioc/sys
	cp -rf db /srv/ioc/sys
	cp -rf dbd /srv/ioc/sys