(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:
Andrew McCallum 1996-04-17 15:40:18 +00:00
parent a8ae3dddbb
commit 287f653518

View file

@ -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