Makefile
raw| 1 | |
| 2 | default: |
| 3 | @echo "Please specify a make target: install, clean, version." |
| 4 | |
| 5 | clean: |
| 6 | rm -f `find . -name \*~` |
| 7 | |
| 8 | # Get the version from usr/sbin/laptop_mode. |
| 9 | VERSION :=$(shell cat usr/sbin/laptop_mode | grep "LMTVERSION=" | sed 's/LMTVERSION=//g') |
| 10 | |
| 11 | version: |
| 12 | @echo $(VERSION) |
| 13 | |
| 14 | install: |
| 15 | ./install.sh |