mirror of
https://github.com/lux-tel/libsession-util.git
synced 2026-10-30 20:25:11 +00:00
- Generic cpp/c api docs into different directories so that you can generate both at once without trampling one or the other. - `make` with no args now does both by default. - Combine doc-building CI jobs into one job that builds and then uploads both at once. - Move CI-specific upload script into `/utils/ci` - Remove most `Declaration:` sections: if no such section is found, we now scrape the source code for the code immediately following the comment and use that. Declaration: is now only used where that isn't the same, or where it has multiple declarations in one. - Remove most of the C++ Declaration:s (the C ones seem different enough from the actual code items). - Make `Outputs:` optional and remove all the superflous `void` output descriptions.
27 lines
555 B
Makefile
27 lines
555 B
Makefile
H_FILES = $(wildcard ../../include/session/config/*.h ../../include/session/config/*/*.h)
|
|
HPP_FILES = $(wildcard ../../include/session/config/*.hpp ../../include/session/config/*/*.hpp)
|
|
|
|
.PHONY: all
|
|
all: h-docs hpp-docs
|
|
|
|
.PHONY: hpp-docs
|
|
hpp-docs:
|
|
./make-docs.sh libsession-util-cpp $(HPP_FILES)
|
|
|
|
.PHONY: h-docs
|
|
h-docs:
|
|
./make-docs.sh libsession-util-c $(H_FILES)
|
|
|
|
.PHONY: run-c
|
|
run-c:
|
|
docsify serve libsession-util-c
|
|
|
|
.PHONY: run-cpp
|
|
run-cpp:
|
|
docsify serve libsession-util-cpp
|
|
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf ./libsession-util-c ./libsession-util-cpp
|