Skip to content

Commit

Permalink
Update headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Nov 20, 2024
1 parent 715d999 commit e0a414d
Show file tree
Hide file tree
Showing 6 changed files with 1,386 additions and 1,391 deletions.
7 changes: 1 addition & 6 deletions C/include/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
PY=python
GEN=../../scripts/gen_headers.py
CONC=../../scripts/gen_header.py
GEN_VERSION = ../../gen_version.py

AST_DIR=../../data

AST_SRC=$(wildcard $(AST_DIR)/*.toml)
C_HEADER = codata_constants_2010.h codata_constants_2014.h codata_constants_2018.h codata_constants_2022.h
MAIN_HEADER = codata.h

.PHONY: clean version
.PHONY: clean

all: $(C_HEADER) $(C_VERSION)

Expand All @@ -25,10 +24,6 @@ codata_constants_2018.h: $(AST_DIR)/codata_2018.toml
codata_constants_2022.h: $(AST_DIR)/codata_2022.toml
$(PY) $(GEN) $< $@

codata_version.h: ../VERSION
$(PY) $(GEN_VERSION) $@


$(MAIN_HEADER): $(C_HEADER)
$(PY) $(CONC) $^ -o $@
rm -f $(C_HEADER)
Expand Down
Loading

0 comments on commit e0a414d

Please sign in to comment.