forked from PaulStoffregen/RadioHead
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
33 lines (25 loc) · 915 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Makefile
#
# Makefile for the RadioHead project
#
# Author: Mike McCauley ([email protected])
# Copyright (C) 2014 Mike McCauley
# $Id: Makefile,v 1.16 2014/07/01 01:23:58 mikem Exp mikem $
PROJNAME = RadioHead
VERSION_MAJOR = 1
VERSION_MINOR = 24
DISTFILE = $(PROJNAME)-$(VERSION_MAJOR).$(VERSION_MINOR).zip
all: versioning doxygen dist upload
# Update version numbers in RadioHead.h
versioning:
sed -i.bak -e 's/RadioHead-.*\.zip/$(DISTFILE)/' RadioHead.h
sed -i.bak -e 's/define RH_VERSION_MAJOR.*$$/define RH_VERSION_MAJOR $(VERSION_MAJOR)/' RadioHead.h
sed -i.bak -e 's/define RH_VERSION_MINOR.*$$/define RH_VERSION_MINOR $(VERSION_MINOR)/' RadioHead.h
doxygen:
doxygen project.cfg
ci:
(cd ..;ci -l `cat $(PROJNAME)/MANIFEST`)
dist:
(cd ..; zip $(PROJNAME)/$(DISTFILE) `cat $(PROJNAME)/MANIFEST`)
upload:
rsync -avz $(DISTFILE) doc/ www.airspayce.com:public_html/mikem/arduino/$(PROJNAME)