Browse Source

Clean up Makefle indentation

Scott Lahteine 4 years ago
parent
commit
f55abfeb95
1 changed files with 28 additions and 28 deletions
  1. 28
    28
      Marlin/Makefile

+ 28
- 28
Marlin/Makefile View File

@@ -789,11 +789,11 @@ sym: $(BUILD_DIR)/$(TARGET).sym
789 789
 # Do not try to reset an Arduino if it's not one
790 790
 upload: $(BUILD_DIR)/$(TARGET).hex
791 791
 ifeq (${AVRDUDE_PROGRAMMER}, arduino)
792
-	stty hup < $(UPLOAD_PORT); true
792
+  stty hup < $(UPLOAD_PORT); true
793 793
 endif
794
-	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
794
+  $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
795 795
 ifeq (${AVRDUDE_PROGRAMMER}, arduino)
796
-	stty -hup < $(UPLOAD_PORT); true
796
+  stty -hup < $(UPLOAD_PORT); true
797 797
 endif
798 798
 
799 799
 # Display size of file.
@@ -801,10 +801,10 @@ HEXSIZE = $(SIZE) --target=$(FORMAT) $(BUILD_DIR)/$(TARGET).hex
801 801
 ELFSIZE = $(SIZE)  $(SIZE_FLAGS) $(BUILD_DIR)/$(TARGET).elf; \
802 802
           $(SIZE)  $(BUILD_DIR)/$(TARGET).elf
803 803
 sizebefore:
804
-	$P if [ -f $(BUILD_DIR)/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(HEXSIZE); echo; fi
804
+  $P if [ -f $(BUILD_DIR)/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(HEXSIZE); echo; fi
805 805
 
806 806
 sizeafter: build
807
-	$P if [ -f $(BUILD_DIR)/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
807
+  $P if [ -f $(BUILD_DIR)/$(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
808 808
 
809 809
 
810 810
 # Convert ELF to COFF for use in debugging / simulating in AVR Studio or VMLAB.
@@ -816,71 +816,71 @@ COFFCONVERT=$(OBJCOPY) --debugging \
816 816
 
817 817
 
818 818
 coff: $(BUILD_DIR)/$(TARGET).elf
819
-	$(COFFCONVERT) -O coff-avr $(BUILD_DIR)/$(TARGET).elf $(TARGET).cof
819
+  $(COFFCONVERT) -O coff-avr $(BUILD_DIR)/$(TARGET).elf $(TARGET).cof
820 820
 
821 821
 
822 822
 extcoff: $(TARGET).elf
823
-	$(COFFCONVERT) -O coff-ext-avr $(BUILD_DIR)/$(TARGET).elf $(TARGET).cof
823
+  $(COFFCONVERT) -O coff-ext-avr $(BUILD_DIR)/$(TARGET).elf $(TARGET).cof
824 824
 
825 825
 
826 826
 .SUFFIXES: .elf .hex .eep .lss .sym .bin
827 827
 .PRECIOUS: .o
828 828
 
829 829
 .elf.hex:
830
-	$(Pecho) "  COPY  $@"
831
-	$P $(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@
830
+  $(Pecho) "  COPY  $@"
831
+  $P $(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@
832 832
 
833 833
 .elf.bin:
834
-	$(Pecho) "  COPY  $@"
835
-	$P $(OBJCOPY) -O binary -R .eeprom $< $@
834
+  $(Pecho) "  COPY  $@"
835
+  $P $(OBJCOPY) -O binary -R .eeprom $< $@
836 836
 
837 837
 .elf.eep:
838
-	-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
838
+  -$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
839 839
     --change-section-lma .eeprom=0 -O $(FORMAT) $< $@
840 840
 
841 841
 # Create extended listing file from ELF output file.
842 842
 .elf.lss:
843
-	$(OBJDUMP) -h -S $< > $@
843
+  $(OBJDUMP) -h -S $< > $@
844 844
 
845 845
 # Create a symbol table from ELF output file.
846 846
 .elf.sym:
847
-	$(NM) -n $< > $@
847
+  $(NM) -n $< > $@
848 848
 
849 849
 # Link: create ELF output file from library.
850 850
 
851 851
 $(BUILD_DIR)/$(TARGET).elf: $(OBJ) Configuration.h
852
-	$(Pecho) "  CXX   $@"
853
-	$P $(CC) $(LD_PREFIX) $(ALL_CXXFLAGS) -o $@ -L. $(OBJ) $(LDFLAGS) $(LD_SUFFIX)
852
+  $(Pecho) "  CXX   $@"
853
+  $P $(CC) $(LD_PREFIX) $(ALL_CXXFLAGS) -o $@ -L. $(OBJ) $(LDFLAGS) $(LD_SUFFIX)
854 854
 
855 855
 # Object files that were found in "src" will be stored in $(BUILD_DIR)
856 856
 # in directories that mirror the structure of "src"
857 857
 
858 858
 $(BUILD_DIR)/%.o: %.c Configuration.h Configuration_adv.h $(MAKEFILE)
859
-	$(Pecho) "  CC    $<"
860
-	$P $(CC) -MMD -c $(ALL_CFLAGS) $(CWARN) $< -o $@
859
+  $(Pecho) "  CC    $<"
860
+  $P $(CC) -MMD -c $(ALL_CFLAGS) $(CWARN) $< -o $@
861 861
 
862 862
 $(BUILD_DIR)/%.o: %.cpp Configuration.h Configuration_adv.h $(MAKEFILE)
863
-	$(Pecho) "  CXX   $<"
864
-	$P $(CXX) -MMD -c $(ALL_CXXFLAGS) $(CXXWARN) $< -o $@
863
+  $(Pecho) "  CXX   $<"
864
+  $P $(CXX) -MMD -c $(ALL_CXXFLAGS) $(CXXWARN) $< -o $@
865 865
 
866 866
 # Object files for Arduino libs will be created in $(BUILD_DIR)/arduino
867 867
 
868 868
 $(BUILD_DIR)/arduino/%.o: %.c Configuration.h Configuration_adv.h $(MAKEFILE)
869
-	$(Pecho) "  CC    $<"
870
-	$P $(CC) -MMD -c $(ALL_CFLAGS) $(LIBWARN) $< -o $@
869
+  $(Pecho) "  CC    $<"
870
+  $P $(CC) -MMD -c $(ALL_CFLAGS) $(LIBWARN) $< -o $@
871 871
 
872 872
 $(BUILD_DIR)/arduino/%.o: %.cpp Configuration.h Configuration_adv.h $(MAKEFILE)
873
-	$(Pecho) "  CXX   $<"
874
-	$P $(CXX) -MMD -c $(ALL_CXXFLAGS)  $(LIBWARN) $< -o $@
873
+  $(Pecho) "  CXX   $<"
874
+  $P $(CXX) -MMD -c $(ALL_CXXFLAGS)  $(LIBWARN) $< -o $@
875 875
 
876 876
 $(BUILD_DIR)/arduino/%.o: %.S $(MAKEFILE)
877
-	$(Pecho) "  CXX   $<"
878
-	$P $(CXX) -MMD -c $(ALL_ASFLAGS) $< -o $@
877
+  $(Pecho) "  CXX   $<"
878
+  $P $(CXX) -MMD -c $(ALL_ASFLAGS) $< -o $@
879 879
 
880 880
 # Target: clean project.
881 881
 clean:
882
-	$(Pecho) "  RMDIR $(BUILD_DIR)/"
883
-	$P rm -rf $(BUILD_DIR)
882
+  $(Pecho) "  RMDIR $(BUILD_DIR)/"
883
+  $P rm -rf $(BUILD_DIR)
884 884
 
885 885
 
886 886
 .PHONY: all build elf hex eep lss sym program coff extcoff clean depend sizebefore sizeafter

Loading…
Cancel
Save