Mercurial > vloopback
comparison Makefile @ 9:00bb25bff577
Improve Makefile
author | AngelCarpintero |
---|---|
date | Sun, 31 Aug 2008 17:28:08 +0000 |
parents | 80590d10a596 |
children | bce647a9dd4b |
comparison
equal
deleted
inserted
replaced
8:80590d10a596 | 9:00bb25bff577 |
---|---|
22 KSRC := /lib/modules/$(KVER)/build | 22 KSRC := /lib/modules/$(KVER)/build |
23 endif | 23 endif |
24 endif | 24 endif |
25 | 25 |
26 | 26 |
27 default: all examples | |
27 | 28 |
28 all default: | 29 all: |
29 $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules | 30 $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules |
30 | 31 |
31 install: | 32 install: |
32 install -d $(DEST) | 33 install -d $(DEST) |
33 install -m 644 -c $(MODULENAME).ko $(DEST) | 34 install -m 644 -c $(MODULENAME).ko $(DEST) |
34 -/sbin/depmod -a | 35 -/sbin/depmod -a |
35 | 36 |
36 | 37 examples: |
38 $(MAKE) -C example | |
39 | |
37 uninstall: | 40 uninstall: |
38 rm -f $(DEST)/$(MODULENAME).ko | 41 rm -f $(DEST)/$(MODULENAME).ko |
39 -/sbin/depmod -a | 42 -/sbin/depmod -a |
40 clean: | 43 clean: |
41 rm -f .*.cmd *.o *.mod.c *.ko .v* *~ core Modules.symvers Module.symvers | 44 rm -f .*.cmd *.o *.mod.c *.ko .v* *~ core Modules.symvers Module.symvers |
42 rm -rf .tmp_versions/ | 45 rm -rf .tmp_versions/ |
43 rm -f example/dummy example/feed example/resize example/invert | 46 rm -f example/dummy example/feed example/resize example/invert |
44 | 47 |
45 dist: clean | 48 dist: clean |
46 cd .. ; tar cfvz vloopback-$(VERSION).tar.gz --exclude='.svn' $(VERSION)/ | 49 cd .. ; tar cfvz $(MODULENAME)-$(VERSION).tar.gz --exclude='.svn' $(VERSION)/ |
47 endif | 50 endif |