mirror of https://github.com/pret/pokecrystal.git
Merge pull request #566 from luckytyphlosion/master
Refactor .gitattributes and .gitignore
This commit is contained in:
commit
c323f9ddd1
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
8
Makefile
8
Makefile
|
@ -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/
|
||||
|
||||
|
|
Loading…
Reference in New Issue