mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 16:35:11 +00:00
[ADD/WIP] Start making Ayadocs
Docs!!!
This commit is contained in:
parent
88bd2d27ad
commit
c926397ed6
6 changed files with 414 additions and 3 deletions
19
Makefile
19
Makefile
|
|
@ -17,21 +17,38 @@ CYTO_LIB=/usr/local/lib # Where's Cytoplasm's library is
|
|||
|
||||
SOURCE=src
|
||||
OBJECT=build
|
||||
AYAS=ayaya
|
||||
ETC=etc
|
||||
INCLUDES=src/include
|
||||
CC=cc
|
||||
CFLAGS=-I$(SOURCE) -I$(INCLUDES) -I$(CYTO_INC) -DNAME="\"$(NAME)\"" -DVERSION="\"$(VERSION)\"" -DREPOSITORY=\"$(REPOSITORY)\" -g -ggdb -Wall -Werror
|
||||
LDFLAGS=-L $(CYTO_LIB) -lCytoplasm -g -ggdb
|
||||
AFLAGS=-C "$(ETC)/ayadoc/style.css"
|
||||
BINARY=parsee
|
||||
# ============================ Compilation =================================
|
||||
SRC_FILES:=$(shell find $(SOURCE) -name '*.c')
|
||||
OBJ_FILES:=${subst $(SOURCE)/,$(OBJECT)/,$(patsubst %.c, %.o, $(SRC_FILES))}
|
||||
|
||||
CPP_FILES:=$(shell find $(INCLUDES) -name '*.h')
|
||||
AYA_FILES:=${subst $(INCLUDES)/,$(AYAS)/,$(patsubst %.h, %.html, $(CPP_FILES))}
|
||||
|
||||
all: binary utils
|
||||
|
||||
binary: $(OBJ_FILES)
|
||||
$(CC) $(LDFLAGS) $(OBJ_FILES) -o $(BINARY)
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJECT) $(BINARY)
|
||||
rm -rf $(OBJECT) $(BINARY) $(AYAS)
|
||||
|
||||
$(OBJECT)/%.o: $(SOURCE)/%.c
|
||||
@mkdir -p $(shell dirname "$@")
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
utils:
|
||||
(cd tools && make)
|
||||
|
||||
ayadoc: utils $(AYA_FILES)
|
||||
|
||||
$(AYAS)/%.html: $(INCLUDES)/%.h
|
||||
@mkdir -p $(shell dirname "$@")
|
||||
tools/out/aya $(AFLAGS) -i $< -o $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue