Merge pull request #566 from luckytyphlosion/master

Refactor .gitattributes and .gitignore
This commit is contained in:
luckytyphlosion 2018-09-23 14:14:54 -04:00 committed by GitHub
commit c323f9ddd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 131 additions and 101 deletions

39
.gitattributes vendored
View File

@ -1,11 +1,34 @@
# No monkey business with line endings
* -text
# Auto detect text files and perform LF normalization
* text eol=lf
# hexdump binary files
*.png binary diff=hex
*.lz binary diff=hex
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
# files part of the build
*.asm text
*.pal text
*.link text
*.txt text
# extra files
*.awk text
*.c text
*.h text
*.md text
*.py text
*.sh text
*.sha1 text
# Denote all files that are truly binary and should not be modified.
*.png binary diff=hex
*.lz.* binary diff=hex
*.bin binary diff=hex
*.blk binary diff=hex
*.rle binary diff=hex
*.attrmap binary diff=hex
*.tilemap binary diff=hex
# these are generated but just in case
*.lz binary diff=hex
*.2bpp binary diff=hex
*.1bpp binary diff=hex
*.bin binary diff=hex
*.blk binary diff=hex

5
.gitignore vendored
View File

@ -17,6 +17,7 @@
*.sgm
*.sav
*.rtc
*.sn*
# rgbds extras
*.map
@ -39,8 +40,8 @@ pokecrystal.txt
*.2bpp
*.1bpp
*.lz
*.pal
*.animated.tilemap
gfx/pokemon/*/bitmask.asm
gfx/pokemon/*/frames.asm
!gfx/pokemon/*/shiny.pal
!gfx/pokemon/unown/bitmask.asm
!gfx/pokemon/unown/frames.asm

View File

@ -33,7 +33,7 @@ crystal11_obj := $(crystal_obj:.o=11.o)
### Build targets
.SUFFIXES:
.PHONY: all crystal crystal11 clean compare tools
.PHONY: all crystal crystal11 clean compare tools tidy
.SECONDEXPANSION:
.PRECIOUS:
.SECONDARY:
@ -43,6 +43,12 @@ crystal: pokecrystal.gbc
crystal11: pokecrystal11.gbc
clean:
rm -f $(roms) $(crystal_obj) $(crystal11_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym)
find gfx \( -name "*.[12]bpp" -o -name "*.lz" -o -name "*.gbcpal" \) -delete
find gfx/pokemon -mindepth 1 ! -path "gfx/pokemon/unown/*" \( -name "bitmask.asm" -o -name "frames.asm" -o -name "front.animated.tilemap" -o -name "front.dimensions" \) -delete
$(MAKE) clean -C tools/
tidy:
rm -f $(roms) $(crystal_obj) $(crystal11_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym)
$(MAKE) clean -C tools/