Updated Filelist.mk generation

This commit is contained in:
Maix0 2024-06-06 23:18:23 +02:00
parent ff73e4ced4
commit f80d3611b1
5 changed files with 2101 additions and 2094 deletions

1
.gitignore vendored
View file

@ -61,6 +61,7 @@ tree-sitter-sh/.gitignore
tree-sitter-sh/Cargo.toml tree-sitter-sh/Cargo.toml
tree-sitter-sh/Makefile tree-sitter-sh/Makefile
tree-sitter-sh/Package.swift tree-sitter-sh/Package.swift
tree-sitter-sh/a.out.js
tree-sitter-sh/binding.gyp tree-sitter-sh/binding.gyp
tree-sitter-sh/bindings/ tree-sitter-sh/bindings/
tree-sitter-sh/package-lock.json tree-sitter-sh/package-lock.json

10
flake.lock generated
View file

@ -228,8 +228,8 @@
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 0, "lastModified": 0,
"narHash": "sha256-sowPU+tLQv8GlqtVtsXioTKeaQvlMz/pefcdwg8MvfM=", "narHash": "sha256-SzDKxseEcHR5KzPXLwsemyTR/kaM9whxeiJohbL04rs=",
"path": "/nix/store/r8nhgnkxacbnf4kv8kdi8b6ks3k9b16i-source", "path": "/nix/store/qgbn0imyridkb9527v6gnv6z3jzzprb9-source",
"type": "path" "type": "path"
}, },
"original": { "original": {
@ -287,11 +287,11 @@
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_6"
}, },
"locked": { "locked": {
"lastModified": 1717035469, "lastModified": 1717208326,
"narHash": "sha256-MzH+yjKULH3HCRj9QCTwBvqq4LZkR0ZqRE/QfGOGC2E=", "narHash": "sha256-4gVhbC+NjSQ4c6cJvJGNCI1oTcD+8jRRNAnOF9faGCE=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "095702e63a40e86f339d11864da9dc965b70a01e", "rev": "ab69b67fac9a96709fbef0b899db308ca714a120",
"type": "github" "type": "github"
}, },
"original": { "original": {

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,7 @@
# By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ # # By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2023/11/03 13:20:01 by maiboyer #+# #+# # # Created: 2023/11/03 13:20:01 by maiboyer #+# #+# #
# Updated: 2024/05/30 19:51:10 by maiboyer ### ########.fr # # Updated: 2024/06/06 23:17:06 by maiboyer ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #

View file

@ -6,7 +6,7 @@
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ # # By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
# Updated: 2024/05/30 19:57:48 by maiboyer ### ########.fr # # Updated: 2024/06/06 23:17:20 by maiboyer ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -22,4 +22,10 @@ libparser.a:
libgmr.a: libgmr.a:
@$(MAKE) --no-print-directory -f Grammar.mk "LIB_NAME=$(shell realpath .)/" "BUILD_DIR=$(shell realpath $(BUILD_DIR))" libgmr.a @$(MAKE) --no-print-directory -f Grammar.mk "LIB_NAME=$(shell realpath .)/" "BUILD_DIR=$(shell realpath $(BUILD_DIR))" libgmr.a
.PHONY: all bonus clean fclean re libparser.a libgmr.a build_filelist:
@rm Filelist.mk
@printf '%-78s\\\n' "SRC_FILES =" > Filelist.mk
@tree static -ifF | rg 'static/(.*)\.c$$' --replace '$$1' | sed -re 's/^(.*)_([0-9]+)$$/\1|\2/g' | sort -t'|' --key=1,1 --key=2,2n | sed -e's/|/_/' | sed -e 's/^.*$$/&.c/' | xargs printf '%-78s\\\n' >> Filelist.mk
@echo "" >> Filelist.mk
.PHONY: all bonus clean fclean re libparser.a libgmr.a build_filelist