summaryrefslogtreecommitdiff
path: root/n/avr/howto
diff options
context:
space:
mode:
authorschodet2004-06-25 09:23:22 +0000
committerschodet2004-06-25 09:23:22 +0000
commit497ca00ec6e54467b8a69d77d807c4ce0974cd7b (patch)
tree30b6a1d3bc816eec5525251ced93be131bebb185 /n/avr/howto
parented7f7618abdbd192e1d3f27aaae61648877a4fef (diff)
Ajout de l'EXTRACTDOC.
Diffstat (limited to 'n/avr/howto')
-rw-r--r--n/avr/howto/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/n/avr/howto/Makefile b/n/avr/howto/Makefile
index f819a2d..b4478ff 100644
--- a/n/avr/howto/Makefile
+++ b/n/avr/howto/Makefile
@@ -1,6 +1,7 @@
PRG = example
OBJECTS = example.o
DOC = howto-avr.html
+EXTRACTDOC =
# atmega8, atmega8535, atmega128...
MCU_TARGET = atmega8
# -O2 : speed
@@ -33,7 +34,7 @@ $(PRG).elf: $(OBJECTS)
$(OBJDUMP) -h -S $< > $@
clean:
- rm -f *.o $(PRG).elf *.bak $(DOC)
+ rm -f *.o $(PRG).elf *.bak $(DOC) *.exd
rm -f *.lst *.map $(EXTRA_CLEAN_FILES)
rm -f $(PRG).hex $(PRG).bin $(PRG).srec $(PRG)_eeprom.hex $(PRG)_eeprom.bin $(PRG)_eeprom.srec
@@ -41,9 +42,12 @@ clean:
doc: $(DOC)
-%.html: %.txt
+%.html: %.txt %.exd
aft $<
+%.exd: $(EXTRACTDOC)
+ test -n "$^" && extractdoc $^ > $@ || true
+
# Rules for building the .text rom images.
text: hex bin srec