From 79832298969584171063bdd884dc8dc179c6e0e8 Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Wed, 14 Dec 2022 12:34:47 +0100 Subject: [PATCH] [Makefile,config.mk] Add rules to generate docs. --- Makefile | 5 +++++ config.mk | 1 + 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index d16e5bb..3d6e1f5 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,11 @@ osx.o: osx.c xconf.h luacompat.h osx.h osx_dir.h $(lib): $(o) $(_o) $(LD) $(LIBFLAG) -o $@ $(_ldflags) $(LDFLAGS) $(o) $(_o) +doc/index.html: config.ld osx.c + $(LDOC) . + +doc: doc/index.html + install: -$(MKDIR) $(DESTDIR)$(LIBDIR)/osx $(DESTDIR)$(LIBDIR)/osx/include $(CP) $(lib) $(DESTDIR)$(LIBDIR)/osx/ diff --git a/config.mk b/config.mk index f9f1b94..5ddee0e 100644 --- a/config.mk +++ b/config.mk @@ -2,6 +2,7 @@ CC = cc LD = $(CC) LUA = lua +LDOC = ldoc PKGCONFIG = pkg-config CP = cp RM = rm