summaryrefslogblamecommitdiffstats
path: root/tools/build/scripts/Makefile.in
blob: 0cf29845f475bd2acaf35a410e60a7fc444a2e82 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                  


                              
 

                   




                                         
                                                  



                                      

                                                                      
 


                                     

                                  

           
                                     
 
                          
                                                
 
                                      



                                                                              
#
# $Id$
#
# RTEMS build tools
# NOTE: of course we can't use any of these tools
#		in this Makefile.  Most notably: install-if-change
#

@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ../../..
subdir = c/build-tools/scripts

INSTALL = @INSTALL@

RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
PROJECT_ROOT = @PROJECT_ROOT@

VPATH = @srcdir@

include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
include $(RTEMS_ROOT)/make/leaf.cfg

DESTDIR=$(PROJECT_RELEASE)/build-tools

BUILD_PGMS=install-if-change rcs-clean lock-directory unlock-directory
PGMS = $(BUILD_PGMS) search-id.sh

CLEAN_ADDITIONS += $(BUILD_PGMS)

INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%)

all:	$(DESTDIR) $(PGMS) install

$(DESTDIR):
	@top_srcdir@/mkinstalldirs $@

$(INSTALLED_PGMS): $(PGMS)
	$(INSTALL) $(INSTBINFLAGS) $^ $(DESTDIR)

install:  $(DESTDIR) $(INSTALLED_PGMS)

%: $(srcdir)/%.in $(top_builddir)/config.status
	cd $(top_builddir) \
	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status