-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (24 loc) · 964 Bytes
/
Makefile
File metadata and controls
27 lines (24 loc) · 964 Bytes
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
# Push the www directory to Github Pages
gh-pages: Makefile
rm -rf gh-pages
mkdir gh-pages
cp pcb/plot_files/keytee.zip gh-pages/
cp pcb/plot_files/pcb.pdf gh-pages/
cp pcb/plot_files/component-side.pdf gh-pages/
$(MAKE) -C firmware bootloaders
cp firmware/tmk_keyboard/tmk_core/protocol/lufa/LUFA-git/Bootloaders/DFU/BootloaderDFU.hex gh-pages/
cp firmware/tmk_keyboard/tmk_core/protocol/lufa/LUFA-git/Bootloaders/MassStorage/BootloaderMassStorage.hex gh-pages/
$(MAKE) -C firmware all
cp firmware/keytee_lufa.hex gh-pages/
echo '<h3>Generated files of project <a href="https://github.com/trebb/keytee">keytee</a></h3>' > gh-pages/index.html
ls gh-pages | \
grep -v index.html | \
sed -e 's/^\(.*\)$$/<a href="\1">\1<\/a><br>/' >> gh-pages/index.html
publish: gh-pages
(cd gh-pages; \
git init; \
git add ./; \
git commit -a -m "gh-pages pseudo commit"; \
git push git@github.com:trebb/keytee.git +master:gh-pages)
clean:
rm -rf gh-pages