Mercurial > vloopback
diff Makefile @ 9:00bb25bff577
Improve Makefile
author | AngelCarpintero |
---|---|
date | Sun, 31 Aug 2008 17:28:08 +0000 |
parents | 80590d10a596 |
children | bce647a9dd4b |
line wrap: on
line diff
--- a/Makefile Tue Aug 26 11:50:37 2008 +0000 +++ b/Makefile Sun Aug 31 17:28:08 2008 +0000 @@ -24,8 +24,9 @@ endif +default: all examples -all default: +all: $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules install: @@ -33,7 +34,9 @@ install -m 644 -c $(MODULENAME).ko $(DEST) -/sbin/depmod -a - +examples: + $(MAKE) -C example + uninstall: rm -f $(DEST)/$(MODULENAME).ko -/sbin/depmod -a @@ -43,5 +46,5 @@ rm -f example/dummy example/feed example/resize example/invert dist: clean - cd .. ; tar cfvz vloopback-$(VERSION).tar.gz --exclude='.svn' $(VERSION)/ + cd .. ; tar cfvz $(MODULENAME)-$(VERSION).tar.gz --exclude='.svn' $(VERSION)/ endif