diff options
author | Daniel Drake <dsd@laptop.org> | 2009-12-23 12:53:40 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2009-12-23 13:12:09 (GMT) |
commit | bc3a54699bd29ce6b282b8ec06213ad8fad2f0dc (patch) | |
tree | 4115d23f978405463204872ccbe2e28f367fe307 /Makefile | |
parent | a5d6a9ff4650e6fc26d2ea92a795892b1f30ebf3 (diff) |
Make system-installable
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7fdad01 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +export VERSION=$(shell grep "^VERSION=" osbuilder.py | sed 's/^VERSION="\(.*\)"/\1/') +export docdir=$(DESTDIR)/usr/share/doc/olpc-os-builder-$(VERSION) + +all: bin + +bin: + $(MAKE) -C bin + +install: all + install -D -m 0755 osbuilder.py $(DESTDIR)/usr/sbin/olpc-os-builder + sed -i -e 's/^INSTALLED=0/INSTALLED=1/' $(DESTDIR)/usr/sbin/olpc-os-builder + install -d $(docdir) + install -m 0644 -t $(docdir) COPYING doc/README doc/README.devel + $(MAKE) -C bin install + $(MAKE) -C lib install + $(MAKE) -C examples install + $(MAKE) -C modules install +.PHONY: install + +dist: + git archive --prefix=olpc-os-builder-$(VERSION)/ HEAD | bzip2 > olpc-os-builder-$(VERSION).tar.bz2 +.PHONY: dist + +clean: + make -C bin clean +.PHONY: clean |