diff --git a/Makefile b/Makefile index 5f8c485..e8b3f37 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ dist: $(PACKAGE)-$(VERSION)/project.conf $(RM) -- $(PACKAGE)-$(VERSION) -install: all +install: @for i in $(SUBDIRS); do (cd $$i && $(MAKE) install) || exit; done uninstall: diff --git a/data/Makefile b/data/Makefile index 71032ce..635235f 100644 --- a/data/Makefile +++ b/data/Makefile @@ -18,7 +18,7 @@ clean: distclean: clean $(RM) -- $(TARGETS) -install: all +install: $(TARGETS) ./pkgconfig.sh -P "$(DESTDIR)$(PREFIX)" -i -- "cpp.pc" uninstall: diff --git a/include/Makefile b/include/Makefile index 5f57e35..f5b919a 100644 --- a/include/Makefile +++ b/include/Makefile @@ -13,7 +13,7 @@ clean: distclean: clean -install: all +install: $(MKDIR) $(DESTDIR)$(INCLUDEDIR) $(INSTALL) -m 0644 -- cpp.h $(DESTDIR)$(INCLUDEDIR)/cpp.h diff --git a/src/Makefile b/src/Makefile index 2f5d90b..41f68a3 100644 --- a/src/Makefile +++ b/src/Makefile @@ -57,7 +57,7 @@ clean: distclean: clean $(RM) -- $(TARGETS) -install: all +install: $(TARGETS) $(MKDIR) $(DESTDIR)$(LIBDIR) $(INSTALL) -m 0644 -- libcpp.a $(DESTDIR)$(LIBDIR)/libcpp.a $(INSTALL) -m 0755 -- libcpp.so $(DESTDIR)$(LIBDIR)/libcpp.so.0.0