Browse Source

build: add Makefile in doc to build diagrams

master
mogria 1 month ago
parent
commit
f990df3a39
3 changed files with 15 additions and 3 deletions
  1. +4
    -1
      Makefile
  2. +2
    -2
      Makefile.conf
  3. +9
    -0
      doc/Makefile

+ 4
- 1
Makefile View File

@ -5,11 +5,14 @@
.PHONY: all src test install uninstall clean
all: src test
all: src test doc
src:
$(MAKE) -C src
doc:
$(MAKE) -C doc
test:
$(MAKE) -C test


+ 2
- 2
Makefile.conf View File

@ -5,7 +5,7 @@
HERE:=$(dir $(lastword $(MAKEFILE_LIST)))
TARGET_NAME=pEpHelloWorld
TARGET_NAME=pox
TARGET_STATIC=lib$(TARGET_NAME).a
# Build config
@ -17,7 +17,7 @@ PREFIX?=$(HOME)
-include $(HERE)local.conf
# Constants
CXXFLAGS+=-std=c++17 -fPIC -Wall -Wextra -ansi -pedantic
CXXFLAGS+=-ansi -std=c++17 -fPIC -Wall -Wextra -pedantic
CXXFLAGS+=-I$(PREFIX)/include
LDFLAGS+=-L$(PREFIX)/lib


+ 9
- 0
doc/Makefile View File

@ -0,0 +1,9 @@
DIAGRAMS_SRC := $(wildcard diagrams/*.plantuml)
DIAGRAMS_PNG := $(addsuffix .png, $(basename $(DIAGRAMS_SRC)))
all: $(DIAGRAMS_PNG)
diagrams/%.png: diagrams/%.plantuml
plantuml -tpng $^
.PHONY: all

Loading…
Cancel
Save