mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
(include/preface.h): Make substitutions for macro name, as well as value.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1421 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a8ae3dddbb
commit
287f653518
1 changed files with 7 additions and 5 deletions
|
@ -572,12 +572,14 @@ dynamic-load.h: ../config.status
|
|||
|
||||
include/preface.h: include/preface.h.in ../Version
|
||||
rm -f $@
|
||||
sed -e "s/@VERSION@/$(VERSION)/" \
|
||||
sed -e "s/@VERSION@/$(LIBRARY_VAR)_VERSION $(VERSION)/" \
|
||||
< $< | \
|
||||
sed -e "s/@MAJOR_VERSION@/$(MAJOR_VERSION)/" | \
|
||||
sed -e "s/@MINOR_VERSION@/$(MINOR_VERSION)/" | \
|
||||
sed -e "s/@SUBMINOR_VERSION@/$(SUBMINOR_VERSION)/" | \
|
||||
sed -e "s/@GCC_VERSION@/$(GCC_VERSION)/" \
|
||||
sed -e "s/@MAJOR_VERSION@/$(LIBRARY_VAR)_MAJOR_VERSION $(MAJOR_VERSION)/" | \
|
||||
sed -e "s/@MINOR_VERSION@/$(LIBRARY_VAR)_MINOR_VERSION $(MINOR_VERSION)/" | \
|
||||
sed -e "s/@SUBMINOR_VERSION@/$(LIBRARY_VAR)_SUBMINOR_VERSION $(SUBMINOR_VERSION)/" | \
|
||||
sed -e "s/@GCC_VERSION@/$(LIBRARY_VAR)_GCC_VERSION $(GCC_VERSION)/" | \
|
||||
sed -e "s/@LIBRARY_NAME@/$(LIBRARY_VAR)_LIBRARY_NAME $(LIBRARY_NAME)/" | \
|
||||
sed -e "s/@PACKAGE_NAME@/$(LIBRARY_VAR)_PACKAGE_NAME $(PACKAGE_NAME)/" \
|
||||
> $@
|
||||
preface$(OEXT): include/preface.h
|
||||
|
||||
|
|
Loading…
Reference in a new issue