summaryrefslogtreecommitdiff
path: root/contrib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/Makefile')
-rw-r--r--contrib/Makefile26
1 files changed, 21 insertions, 5 deletions
diff --git a/contrib/Makefile b/contrib/Makefile
index 8e94812..79f730a 100644
--- a/contrib/Makefile
+++ b/contrib/Makefile
@@ -20,9 +20,11 @@
## along with spreadspace stm8 utils. If not, see <http://www.gnu.org/licenses/>.
##
-all: download-spl update-stm8flash update-stm8_serial_flasher
+all: download-spl update-stm8flash update-stm8gal
doxygen := $(shell which doxygen)
+clean: clean-spl clean-stm8flash clean-stm8gal
+
download-spl: stsw-stm8069.zip
stsw-stm8069.zip:
@@ -30,6 +32,11 @@ stsw-stm8069.zip:
unzip $@
cd STM8S_StdPeriph_Lib; patch -p1 < ../STM8_SPL_v2.2.0_SDCC.patch; $(doxygen)
+clean-spl:
+ rm -rf STM8S_StdPeriph_Lib
+ rm -f stsw-stm8069.zip
+
+
.stm8flash.prepared:
git clone https://github.com/vdudouyt/stm8flash.git
touch $@
@@ -37,9 +44,18 @@ stsw-stm8069.zip:
update-stm8flash: .stm8flash.prepared
cd stm8flash; git pull; make
-.stm8_serial_flasher.prepared:
- git clone https://github.com/gicking/STM8_serial_flasher.git
+clean-stm8flash:
+ rm -rf stm8flash
+ rm -f .stm8flash.prepared
+
+
+.stm8gal.prepared:
+ git clone https://github.com/gicking/STM8gal.git
touch $@
-update-stm8_serial_flasher: .stm8_serial_flasher.prepared
- cd STM8_serial_flasher; git pull; make
+update-stm8gal: .stm8gal.prepared
+ cd STM8gal; git pull; make
+
+clean-stm8gal:
+ rm -rf STM8gal
+ rm -f .stm8gal.prepared