author | root@rika |
Thu, 23 Apr 2009 19:10:12 +0200 | |
changeset 30 | 7fd00015f62f |
parent 4 | df6a40031aa5 |
permissions | -rw-r--r-- |
root@4 | 1 |
# |
root@4 | 2 |
# Makefile for the GraphLCD driver library, graphics library and tools |
root@4 | 3 |
# |
root@4 | 4 |
|
root@4 | 5 |
PROJECT = graphlcd-base |
root@4 | 6 |
VERSION = 0.1.5 |
root@4 | 7 |
ARCHIVE = $(PROJECT)-$(VERSION) |
root@4 | 8 |
PACKAGE = $(ARCHIVE) |
root@4 | 9 |
TMPDIR = /tmp |
root@4 | 10 |
|
root@4 | 11 |
### Targets: |
root@4 | 12 |
|
root@4 | 13 |
all: |
root@4 | 14 |
@$(MAKE) -C glcdgraphics all |
root@4 | 15 |
@$(MAKE) -C glcddrivers all |
root@4 | 16 |
@$(MAKE) -C tools all |
root@4 | 17 |
|
root@4 | 18 |
install: |
root@4 | 19 |
@$(MAKE) -C glcdgraphics install |
root@4 | 20 |
@$(MAKE) -C glcddrivers install |
root@4 | 21 |
@$(MAKE) -C tools install |
root@4 | 22 |
|
root@4 | 23 |
uninstall: |
root@4 | 24 |
@$(MAKE) -C glcdgraphics uninstall |
root@4 | 25 |
@$(MAKE) -C glcddrivers uninstall |
root@4 | 26 |
@$(MAKE) -C tools uninstall |
root@4 | 27 |
|
root@4 | 28 |
clean: |
root@4 | 29 |
@-rm -f *.tgz |
root@4 | 30 |
@$(MAKE) -C glcdgraphics clean |
root@4 | 31 |
@$(MAKE) -C glcddrivers clean |
root@4 | 32 |
@$(MAKE) -C tools clean |
root@4 | 33 |
|
root@4 | 34 |
dist: clean |
root@4 | 35 |
@-rm -rf $(TMPDIR)/$(ARCHIVE) |
root@4 | 36 |
@mkdir $(TMPDIR)/$(ARCHIVE) |
root@4 | 37 |
@cp -a * $(TMPDIR)/$(ARCHIVE) |
root@4 | 38 |
@tar czf $(PACKAGE).tgz --exclude .svn --exclude *.cbp --exclude *.layout -C $(TMPDIR) $(ARCHIVE) |
root@4 | 39 |
@-rm -rf $(TMPDIR)/$(ARCHIVE) |
root@4 | 40 |
@echo Distribution package created as $(PACKAGE).tgz |
root@4 | 41 |