Hi,
how can I enforce a certain build order in the top-level Makefile of an
IOC? I need it to be
1. subdirectory *App (also builds a data conversion tool)
2. convert a data file in the $(TOP) directory (using the data
conversion tool)
3. subdirectory doc (uses the converted data file to generate a plot)
See the attached file for my Makefile as it is now. The behavior I see
now is 1 -> 3 -> 2.
Thanks,
Martin
--
Martin Konrad
Control System Engineer
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: [email protected]
#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))
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard opi))
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))
opi_DEPEND_DIRS += $(filter %App,$(DIRS))
include $(TOP)/configure/RULES_TOP
TARGETS += Walls_piston_coordinates.txt
Walls_piston_coordinates.txt : Walls_polar_coordinates.txt $(TOP)/bin/$(EPICS_HOST_ARCH)/transformPolar2Piston
$(TOP)/bin/$(EPICS_HOST_ARCH)/transformPolar2Piston < $< > $@
- Replies:
- Re: order of rules in Makefile Johnson, Andrew N.
- Navigate by Date:
- Prev:
RE: Discussion about licenses, copyrights, business, and source code Vuppala, Vasu
- Next:
PV monitoring and email reporting tool Alex Wallace
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: Discussion about licenses, copyrights, business, and source code Emmanuel Mayssat
- Next:
Re: order of rules in Makefile Johnson, Andrew N.
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|