diff options
| author | Nakidai <nakidai@disroot.org> | 2024-09-27 19:17:40 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-09-27 19:17:40 +0300 |
| commit | 34fc96bd1451d6f8dfa1add742dab6e5269ec411 (patch) | |
| tree | 26d55a701c84ca2f97eacb49b5ff3829e60e14be /Makefile | |
| parent | b3e4889f3d1bbf3a860e36e021e8d46d75446522 (diff) | |
| download | cptc-34fc96bd1451d6f8dfa1add742dab6e5269ec411.tar.gz cptc-34fc96bd1451d6f8dfa1add742dab6e5269ec411.zip | |
Autogenerate root on build
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile index 5fa2be0..498fd08 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ OBJS += cptc.o OBJS += main.o OBJS += requestHandler.o OBJS += downloadAvatar.o +OBJS += root.o CFLAGS += $(shell curl-config --cflags) CFLAGS += -std=c11 @@ -12,10 +13,19 @@ RM = rm -f all: cptc +utils/%: + make -C utils + +root.c: utils/convert README + echo "const char *CPTC_root = \"$$(cat README | utils/convert)\";" > $@ + cptc: $(OBJS) $(CC) -o $@ $^ $(LDFLAGS) clean: $(RM) cptc *.o + make -C utils clean cptc: $(OBJS) + +.PHONY: all utils clean |