summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-16 20:13:04 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-19 09:31:33 +0200
commitf4eb4e58648a9746f7a4ca20cea716dd69137fad (patch)
tree389dcdce5b6cb240e6ee5cf72b6267344e37a322 /Makefile
parentf5237d3be40c8c96fa3ec5a0aef889cdf12f2bbf (diff)
downloadcryptodev-linux-f4eb4e58648a9746f7a4ca20cea716dd69137fad.tar.gz
cryptodev-linux-f4eb4e58648a9746f7a4ca20cea716dd69137fad.tar.xz
cryptodev-linux-f4eb4e58648a9746f7a4ca20cea716dd69137fad.zip
Don't recompile cryptodev_main.o all the time
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f5f6dbf..958b1cf 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@ cryptodev-objs = cryptodev_main.o cryptodev_cipher.o ncr.o \
obj-m += cryptodev.o
build:
- @echo "#define VERSION \"$(VERSION)\"" > version.h
+ @make version.h
make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules
install:
@@ -106,3 +106,6 @@ dist: clean
@gpg --output $(OUTPUT).sig -sb $(OUTPUT)
@gpg --verify $(OUTPUT).sig $(OUTPUT)
@mv $(OUTPUT) $(OUTPUT).sig releases/
+
+version.h: Makefile
+ @echo "#define VERSION \"$(VERSION)\"" > version.h