New
This commit is contained in:
parent
bcc3be5bfc
commit
b6ab18aca3
0
Changelog.txt
Normal file
0
Changelog.txt
Normal file
60
Makefile
Normal file
60
Makefile
Normal file
@ -0,0 +1,60 @@
|
||||
# $Id: Makefile,v 1.1 2006/10/02 16:54:42 rschaten Exp $
|
||||
#
|
||||
# Creates documentation and tarball for shipping.
|
||||
|
||||
TODAY=`date "+%y%m%d"`
|
||||
DIR=`basename \`pwd\``
|
||||
PACKETNAME=$(DIR)_$(TODAY)
|
||||
|
||||
all: usage
|
||||
|
||||
usage:
|
||||
@echo "Usage of this makefile:"
|
||||
@echo "make docs create documentation"
|
||||
@echo "make tarball packs a tarball for shipping"
|
||||
@echo
|
||||
@echo "For further information, consult the documentation in Readme.txt."
|
||||
|
||||
# doc generation
|
||||
docs: readme pdf
|
||||
@echo "documentation created"
|
||||
|
||||
readme: doxygen
|
||||
echo "This file is auto-generated from the content of common/usbledfader.h" > Readme.txt
|
||||
echo "You'll have more fun if you read the HTML-content in htmldoc or the PDF." >> Readme.txt
|
||||
echo >> Readme.txt
|
||||
lynx -dump htmldoc/main.html >> Readme.txt
|
||||
|
||||
pdf: doxygen
|
||||
@echo "TODO: pdflatex aufrufen"
|
||||
rm -rf latexdoc
|
||||
|
||||
doxygen:
|
||||
doxygen common/usbledfader.doxygen
|
||||
|
||||
clean:
|
||||
rm -rf htmldoc latexdoc Readme.txt
|
||||
rm -f $(PACKETNAME).tar.gz
|
||||
make -C commandline clean
|
||||
make -C firmware clean
|
||||
|
||||
fw:
|
||||
#make -C firmware
|
||||
mv -v firmware/main.hex firmware/main_$(TODAY).hex
|
||||
|
||||
tarball: fw clean docs
|
||||
@echo
|
||||
@echo
|
||||
@echo "I assume you updated the Changelog...? Press Enter to continue..."
|
||||
@read
|
||||
[ -e "firmware/main_$(TODAY).hex" ] || exit
|
||||
rm --force $(PACKETNAME).tar.gz; \
|
||||
tar --directory=.. \
|
||||
--exclude=$(DIR)/Makefile \
|
||||
--exclude=CVS \
|
||||
--exclude=*.ps \
|
||||
--create \
|
||||
--gzip \
|
||||
--verbose \
|
||||
--file ../$(PACKETNAME).tar.gz $(DIR)
|
||||
|
Loading…
Reference in New Issue
Block a user