build: Move installation of documentation to doc Makefile.

ck_pring
Samy Al Bahra 13 years ago
parent 3a9087c838
commit 704d159c69

@ -1,4 +1,4 @@
.PHONY: all clean distribution regressions install install-headers install-doc uninstall doc
.PHONY: all clean distribution regressions install install-headers doc uninstall
CFLAGS=@CFLAGS@
VERSION=@VERSION@
@ -7,8 +7,6 @@ PREFIX=@PREFIX@
LIBRARY=@LIBRARY@
HEADERS=@HEADERS@
PKGCONFIG_DATA=@LIBRARY@/pkgconfig
MANDIR=@MANDIR@
GZIP_SUFFIX=@GZIP_SUFFIX@
all: doc
$(MAKE) -C src all || exit
@ -33,11 +31,8 @@ install-headers:
chmod 755 $(DESTDIR)/$(HEADERS)/gcc
chmod 644 $(DESTDIR)/$(HEADERS)/gcc/ck_*.h $(DESTDIR)/$(HEADERS)/gcc/*/ck_*.h || exit
install-doc: doc
mkdir -p $(DESTDIR)/$(MANDIR)/man3 || exit
cp doc/*.3$(GZIP_SUFFIX) $(DESTDIR)/$(MANDIR)/man3 || exit
install: all install-headers install-doc
install: all install-headers
$(MAKE) -C doc install
mkdir -p $(DESTDIR)/$(LIBRARY) || exit
cp src/libck.so $(DESTDIR)/$(LIBRARY)/libck.so.$(VERSION) || exit
ln -s libck.so.$(VERSION) $(DESTDIR)/$(LIBRARY)/libck.so
@ -53,6 +48,7 @@ install: all install-headers install-doc
@echo ---[ Concurrency Kit has installed successfully.
uninstall:
$(MAKE) -C doc uninstall
rm -f $(DESTDIR)/$(LIBRARY)/libck.so*
rm -f $(DESTDIR)/$(LIBRARY)/libck.a
rm -f $(DESTDIR)/$(HEADERS)/ck_*.h

@ -1,5 +1,6 @@
.PHONY: all clean
MANDIR=@MANDIR@
GZIP=@GZIP@
GZIP_SUFFIX=.3@GZIP_SUFFIX@
OBJECTS=ck_ht_allocator_set$(GZIP_SUFFIX) \
@ -57,6 +58,15 @@ ck_ht_set_spmc$(GZIP_SUFFIX): ck_ht_set_spmc
ck_ht_entry_empty$(GZIP_SUFFIX): ck_ht_entry_empty
$(GZIP) ck_ht_entry_empty > ck_ht_entry_empty$(GZIP_SUFFIX)
install:
mkdir -p $(DESTDIR)/$(MANDIR)/man3 || exit
cp *$(GZIP_SUFFIX) $(DESTDIR)/$(MANDIR)/man3 || exit
uninstall:
for target in $(OBJECTS); do \
rm -f $(DESTDIR)/$(MANDIR)/man3/$$target; \
done
clean:
rm -f *~ *.o *.3.gz

Loading…
Cancel
Save