There are install rules in the makefiles that are depending on some prerequisites. This can cause missing installation files if the prerequisites are not touched. Adding an empty prerequisite fixes this and now the install command is executed in every case.
Signed-off-by: Robert Richter <[email protected]> --- examples/Makefile | 2 ++ examples/ia64/Makefile | 2 ++ examples/x86/Makefile | 2 ++ examples_v2.x/Makefile | 2 ++ examples_v2.x/ia64/Makefile | 2 ++ examples_v2.x/x86/Makefile | 2 ++ include/Makefile | 8 ++++++-- lib/Makefile | 2 ++ libpfms/Makefile | 2 ++ libpfms/lib/Makefile | 2 ++ 10 files changed, 24 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index 8f8277c..5955848 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -82,6 +82,8 @@ clean: distclean: clean install_examples: $(TARGET_LINUX) $(TARGET_GEN) + +install_examples: @echo installing: $(TARGET_LINUX) $(TARGET_GEN) -mkdir -p $(DESTDIR)$(EXAMPLESDIR) $(INSTALL) -m 755 $(TARGET_LINUX) $(TARGET_GEN) $(DESTDIR)$(EXAMPLESDIR) diff --git a/examples/ia64/Makefile b/examples/ia64/Makefile index 38e665f..9e3c306 100644 --- a/examples/ia64/Makefile +++ b/examples/ia64/Makefile @@ -54,6 +54,8 @@ depend: $(MKDEP) $(CFLAGS) $(SRCS) install_examples: $(TARGETS) + +install_examples: @echo installing: $(TARGETS) -mkdir -p $(DESTDIR)$(EXAMPLESDIR)/ia64 $(INSTALL) -m 755 $(TARGETS) $(DESTDIR)$(EXAMPLESDIR)/ia64 diff --git a/examples/x86/Makefile b/examples/x86/Makefile index 11bde8e..133da08 100644 --- a/examples/x86/Makefile +++ b/examples/x86/Makefile @@ -42,6 +42,8 @@ clean: distclean: clean install_examples: $(TARGETS) + +install_examples: @echo installing: $(TARGETS) -mkdir -p $(DESTDIR)$(EXAMPLESDIR)/x86 $(INSTALL) -m 755 $(TARGETS) $(DESTDIR)$(EXAMPLESDIR)/x86 diff --git a/examples_v2.x/Makefile b/examples_v2.x/Makefile index 8f8277c..5955848 100644 --- a/examples_v2.x/Makefile +++ b/examples_v2.x/Makefile @@ -82,6 +82,8 @@ clean: distclean: clean install_examples: $(TARGET_LINUX) $(TARGET_GEN) + +install_examples: @echo installing: $(TARGET_LINUX) $(TARGET_GEN) -mkdir -p $(DESTDIR)$(EXAMPLESDIR) $(INSTALL) -m 755 $(TARGET_LINUX) $(TARGET_GEN) $(DESTDIR)$(EXAMPLESDIR) diff --git a/examples_v2.x/ia64/Makefile b/examples_v2.x/ia64/Makefile index 38e665f..9e3c306 100644 --- a/examples_v2.x/ia64/Makefile +++ b/examples_v2.x/ia64/Makefile @@ -54,6 +54,8 @@ depend: $(MKDEP) $(CFLAGS) $(SRCS) install_examples: $(TARGETS) + +install_examples: @echo installing: $(TARGETS) -mkdir -p $(DESTDIR)$(EXAMPLESDIR)/ia64 $(INSTALL) -m 755 $(TARGETS) $(DESTDIR)$(EXAMPLESDIR)/ia64 diff --git a/examples_v2.x/x86/Makefile b/examples_v2.x/x86/Makefile index 5200622..cbd9df1 100644 --- a/examples_v2.x/x86/Makefile +++ b/examples_v2.x/x86/Makefile @@ -42,6 +42,8 @@ clean: distclean: clean install_examples: $(TARGETS) + +install_examples: @echo installing: $(TARGETS) -mkdir -p $(DESTDIR)$(EXAMPLESDIR)/x86 $(INSTALL) -m 755 $(TARGETS) $(DESTDIR)$(EXAMPLESDIR)/x86 diff --git a/include/Makefile b/include/Makefile index 2800397..01864e1 100644 --- a/include/Makefile +++ b/include/Makefile @@ -112,6 +112,8 @@ endif .PHONY: all clean distclean depend perfmon.h dir perfmon.h: dir + +perfmon.h: ifeq ($(CONFIG_PFMLIB_OLD_PFMV2),y) echo "#ifndef PFMLIB_OLD_PFMV2" > $(DESTDIR)$(INCDIR)/perfmon/perfmon.h echo "#define PFMLIB_OLD_PFMV2" >> $(DESTDIR)$(INCDIR)/perfmon/perfmon.h @@ -123,7 +125,9 @@ else endif dir: - -mkdir -p $(DESTDIR)$(INCDIR)/perfmon + mkdir -p $(DESTDIR)$(INCDIR)/perfmon + +install: dir perfmon.h $(HEADERS) -install: dir perfmon.h +install: $(INSTALL) -m 644 $(HEADERS) $(DESTDIR)$(INCDIR)/perfmon diff --git a/lib/Makefile b/lib/Makefile index f5c936d..be9cec0 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -224,6 +224,8 @@ depend: $(MKDEP) $(CFLAGS) $(SRCS) install: $(TARGETS) + +install: @echo building: $(TARGETS) -mkdir -p $(DESTDIR)$(LIBDIR) $(INSTALL) -m 644 $(ALIBPFM) $(DESTDIR)$(LIBDIR) diff --git a/libpfms/Makefile b/libpfms/Makefile index 9a9d87e..8ecf513 100644 --- a/libpfms/Makefile +++ b/libpfms/Makefile @@ -48,6 +48,8 @@ lib/libpfms.a: .PHONY: install depend install depend: $(TARGETS) + +install depend: ifeq ($(CONFIG_PFMLIB_ARCH_SICORTEX),y) @set -e ; for d in $(DIRS) ; do $(MAKE) -C $$d $@ ; done endif diff --git a/libpfms/lib/Makefile b/libpfms/lib/Makefile index f7a138a..cc44748 100644 --- a/libpfms/lib/Makefile +++ b/libpfms/lib/Makefile @@ -86,6 +86,8 @@ distclean: clean .PHONY: install depend install: $(TARGETS) + +install: -mkdir -p $(DESTDIR)$(LIBDIR) $(INSTALL) -m 644 $(ALIBPFM) $(DESTDIR)$(LIBDIR) $(INSTALL) $(SLIBPFM) $(DESTDIR)$(LIBDIR) -- 1.6.1.2 ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ perfmon2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
