forked from OSchip/llvm-project
Added a set of rules for installing configuration files. You can now say
CONFIG_FILES=a b c in a Makefile and when you "make install" the files a b and c will get installed into the $prefix/etc directory. llvm-svn: 15948
This commit is contained in:
parent
fab530daf2
commit
cc51e7b358
|
@ -455,6 +455,22 @@ all install clean test bytecode stripped-bytecode install-bytecode::
|
|||
done
|
||||
endif
|
||||
|
||||
#---------------------------------------------------------
|
||||
# Handle the CONFIG_FILES options
|
||||
#---------------------------------------------------------
|
||||
ifdef CONFIG_FILES
|
||||
install:: $(sysconfdir) install-config-files
|
||||
|
||||
$(sysconfdir):
|
||||
$(MKDIR) $(sysconfdir)
|
||||
|
||||
install-config-files: $(CONFIG_FILES)
|
||||
$(VERB) echo Installing Configuration Files To $(sysconfdir)
|
||||
$(VERB) for file in $(CONFIG_FILES); do \
|
||||
$(INSTALL) $(SourceDir)/$${file} $(sysconfdir) ; \
|
||||
done
|
||||
endif
|
||||
|
||||
###########################################################################
|
||||
# Library Build Rules:
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue