lib|rules.mk: Move Windows resource file creation into rules.mk

Move rule for creation of windows resource files into rules.mk,
because it's needed outside of the lib subdir.
This commit is contained in:
Jan Lindemann 2009-08-09 15:32:01 +00:00 committed by Jan Lindemann
commit 3a9e97e677
2 changed files with 12 additions and 12 deletions

View file

@ -72,18 +72,6 @@ echo.contrib-libs:
@echo CONTRIB_LIBS = $(CONTRIB_LIBS)
ifeq ($(TARGET),mingw)
$(WINRES_RC): $(WINRES_RC_TMPL)
cat $< | sed " \
s/__VER_FILEVERSION__/$(MAJOR_VERSION),$(MINOR_VERSION),$(RELEASE_VERSION),$(BUILD_NUMBER)/; \
s/__VER_FILEVERSION_STR__/$(MAJOR_VERSION).$(MINOR_VERSION).$(RELEASE_VERSION).$(BUILD_NUMBER)/; \
s/__VER_DESCRIPTION__/\"$(PROJECT_DESCR)\"/; \
s/__VER_COMPANY_NAME__/\"$(CUSTOMER)\"/; \
" > $@.tmp
mv $@.tmp $@
$(WINRES_O): $(WINRES_RC)
$(WINDRES) $^ -o $@
clean.winres:
rm -f $(WINRES_RC) $(WINRES_O) *.tmp