From 8854d4de967ac55fe065942849ddae2b87a24ed4 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 26 Jun 2011 20:00:47 -0400 Subject: [PATCH] Build: Add install-headers target. Add phony uninstall target. --- Makefile.in | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Makefile.in b/Makefile.in index 370f8b6..d9354b1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,4 +1,4 @@ -.PHONY: all clean distribution regressions install +.PHONY: all clean distribution regressions install install-headers uninstall CFLAGS=@CFLAGS@ VERSION=@VERSION@ @@ -18,19 +18,21 @@ regressions: $(MAKE) -C regressions all || exit @echo ---[ Regressions have built successfully. -install: all - mkdir -p $(LIBRARY) || exit +install-headers: mkdir -p $(HEADERS) || exit - cp src/libck.so $(LIBRARY)/libck.so.$(VERSION) || exit - ln -s $(LIBRARY)/libck.so.$(VERSION) $(LIBRARY)/libck.so - ln -s $(LIBRARY)/libck.so.$(VERSION) $(LIBRARY)/libck.so.$(VERSION_MAJOR) - chmod 744 $(LIBRARY)/libck.so* || exit cp include/*.h $(HEADERS) || exit chmod 644 $(HEADERS)/ck_*.h || exit mkdir -p $(HEADERS)/gcc || exit cp -r include/gcc/* $(HEADERS)/gcc || exit chmod 755 $(HEADERS)/gcc chmod 644 $(HEADERS)/gcc/ck_*.h $(HEADERS)/gcc/*/ck_*.h || exit + +install: all install-headers + mkdir -p $(LIBRARY) || exit + cp src/libck.so $(LIBRARY)/libck.so.$(VERSION) || exit + ln -s $(LIBRARY)/libck.so.$(VERSION) $(LIBRARY)/libck.so + ln -s $(LIBRARY)/libck.so.$(VERSION) $(LIBRARY)/libck.so.$(VERSION_MAJOR) + chmod 744 $(LIBRARY)/libck.so* || exit mkdir -p $(PKGCONFIG_DATA) || exit chmod 755 $(PKGCONFIG_DATA) cp build/ck.pc $(PKGCONFIG_DATA)/ck.pc || exit