mirror of
https://github.com/SwallowOS/xorg_lib_libxcb
synced 2025-12-28 14:01:53 +08:00
Specifically, they didn't handle installing data from both srcdir and builddir. We have the tutorial in the srcdir, and build the manual in the builddir. Also, stop rebuilding the manual for each make target in the doc directory, and every time any of those targets get called. This change now makes the manual never rebuild once built; we plan to fix that later, by rewriting the makefiles to avoid recursive make, and then making the manual depend on the source files. Commit by Jamey Sharp and Josh Triplett.
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
|
|
EXTRA_DIST = \
|
|
tutorial/index.html \
|
|
tutorial/xcb.css \
|
|
xcb.doxygen.in
|
|
|
|
docdirs = $(srcdir)/tutorial
|
|
|
|
if BUILD_DOCS
|
|
|
|
docdirs += manual
|
|
|
|
# rule to build documentation and copy necessary files
|
|
manual:
|
|
doxygen xcb.doxygen
|
|
|
|
# rules to clean
|
|
clean-local:
|
|
rm -rf manual/
|
|
|
|
endif
|
|
|
|
all-local: $(docdirs)
|
|
|
|
# rule to install the html documentation and tutorial in $(htmldir)
|
|
install-data-local:
|
|
@if ! test -d "$(DESTDIR)$(htmldir)"; then \
|
|
echo "$(mkinstalldirs) '$(DESTDIR)$(htmldir)'"; \
|
|
$(mkinstalldirs) '$(DESTDIR)$(htmldir)'; \
|
|
fi
|
|
@for d in $(docdirs); do \
|
|
echo "cp -pR $$d '$(DESTDIR)$(htmldir)/'"; \
|
|
cp -pR $$d '$(DESTDIR)$(htmldir)/'; \
|
|
done
|
|
|
|
uninstall-local:
|
|
@for d in $(docdirs); do \
|
|
d=`basename $$d`; \
|
|
echo "test ! -d '$(DESTDIR)$(htmldir)/'$$d || { find '$(DESTDIR)$(htmldir)/'$$d -type d ! -perm -200 -exec chmod u+w '{}' ';' && rm -rf '$(DESTDIR)$(htmldir)/'$$d; }"; \
|
|
test ! -d '$(DESTDIR)$(htmldir)/'$$d || { find '$(DESTDIR)$(htmldir)/'$$d -type d ! -perm -200 -exec chmod u+w '{}' ';' && rm -rf '$(DESTDIR)$(htmldir)/'$$d; }; \
|
|
done
|
|
rmdir "$(DESTDIR)$(htmldir)/" || true
|