[Makefile,config.mk] Add rules to generate docs.

This commit is contained in:
Lorenzo Cogotti 2022-12-14 12:34:47 +01:00
parent fdba08f403
commit 7983229896
2 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,11 @@ osx.o: osx.c xconf.h luacompat.h osx.h osx_dir.h
$(lib): $(o) $(_o) $(lib): $(o) $(_o)
$(LD) $(LIBFLAG) -o $@ $(_ldflags) $(LDFLAGS) $(o) $(_o) $(LD) $(LIBFLAG) -o $@ $(_ldflags) $(LDFLAGS) $(o) $(_o)
doc/index.html: config.ld osx.c
$(LDOC) .
doc: doc/index.html
install: install:
-$(MKDIR) $(DESTDIR)$(LIBDIR)/osx $(DESTDIR)$(LIBDIR)/osx/include -$(MKDIR) $(DESTDIR)$(LIBDIR)/osx $(DESTDIR)$(LIBDIR)/osx/include
$(CP) $(lib) $(DESTDIR)$(LIBDIR)/osx/ $(CP) $(lib) $(DESTDIR)$(LIBDIR)/osx/

View File

@ -2,6 +2,7 @@
CC = cc CC = cc
LD = $(CC) LD = $(CC)
LUA = lua LUA = lua
LDOC = ldoc
PKGCONFIG = pkg-config PKGCONFIG = pkg-config
CP = cp CP = cp
RM = rm RM = rm