summaryrefslogtreecommitdiff
path: root/n/avr/rs232/Makefile
diff options
context:
space:
mode:
authorschodet2004-06-25 09:18:26 +0000
committerschodet2004-06-25 09:18:26 +0000
commite4c44ee5a714536cae101ac970d9ee99eeafcece (patch)
tree67d9aad25d5c74d37bb5e5509f5a596fdaf0caef /n/avr/rs232/Makefile
parente3f4d41307124dfdf30339ca36b686d0d95f56c5 (diff)
Add: Documentation.
Diffstat (limited to 'n/avr/rs232/Makefile')
-rw-r--r--n/avr/rs232/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/n/avr/rs232/Makefile b/n/avr/rs232/Makefile
index 3b0ea0f..cb8523d 100644
--- a/n/avr/rs232/Makefile
+++ b/n/avr/rs232/Makefile
@@ -1,6 +1,7 @@
PRG = test_rs232
OBJECTS = test_rs232.o rs232.o
DOC = rs232.html
+EXTRACTDOC = rs232.c avrconfig.h
# 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)
+ extractdoc $^ > $@
+
# Rules for building the .text rom images.
text: hex bin srec