nice version.h

This commit is contained in:
Nick S. Grechukh 2009-07-29 17:52:02 +03:00
parent 4bfc2ac6a6
commit 376fc7f58d
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ $(FRONTEND_OBJS): $(L)-%.o: %.c
$(COMPILE) $(INCLUDES) -c $< -o $@
version.h:
echo -e \#define VERSION \"\" \\n\#define DISTRIB_NAME \"ALT Linux $(shell date +%Y%m%d)\" > $@
echo -e \#define VERSION \"$(version)\" \\n\#define DISTRIB_NAME \"ALT Linux\" > $@
gencpio: gen_init_cpio.c
$(CC) $(CFLAGS) $(DEFS) -o $@ $^

View File

@ -28,7 +28,7 @@ including init and various helpers for hw probing and bootstrapping.
%setup
%build
make %{?_with_shell:WITH_SHELL=t} %{?_with_splash:WITH_SPLASH=t} libdir=%_libdir
make %{?_with_shell:WITH_SHELL=t} %{?_with_splash:WITH_SPLASH=t} libdir=%_libdir version=%version-%release
%install
%make_install DESTDIR=%buildroot libdir=%_libdir install