From d6a444d3b3707ceba558bfbd276289de152b9b69 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 23 Nov 2003 10:36:05 +0000 Subject: 2003-11-23 Ralf Corsepius * Makefile.am: Don't use gmake rules for preinstallation. --- cpukit/score/cpu/sh/Makefile.am | 48 ++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 20 deletions(-) (limited to 'cpukit/score/cpu/sh/Makefile.am') diff --git a/cpukit/score/cpu/sh/Makefile.am b/cpukit/score/cpu/sh/Makefile.am index fb0b6ec416..bffdcbea26 100644 --- a/cpukit/score/cpu/sh/Makefile.am +++ b/cpukit/score/cpu/sh/Makefile.am @@ -8,29 +8,11 @@ include $(top_srcdir)/../../../automake/multilib.am include $(top_srcdir)/../../../automake/compile.am include $(top_srcdir)/../../../automake/lib.am -$(PROJECT_INCLUDE)/%.h: %.h - $(INSTALL_DATA) $< $@ - -$(PROJECT_INCLUDE): - $(mkinstalldirs) $@ - -$(PROJECT_INCLUDE)/rtems: - $(mkinstalldirs) $@ - -$(PROJECT_INCLUDE)/rtems/score: - $(mkinstalldirs) $@ - include_HEADERS= asm.h -PREINSTALL_FILES = $(PROJECT_INCLUDE) $(include_HEADERS:%=$(PROJECT_INCLUDE)/%) include_rtems_scoredir = $(includedir)/rtems/score -include_rtems_score_HEADERS = \ - rtems/score/cpu.h \ - rtems/score/types.h \ - rtems/score/sh.h \ - rtems/score/sh_io.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score \ - $(include_rtems_score_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h) +include_rtems_score_HEADERS = rtems/score/cpu.h rtems/score/types.h \ + rtems/score/sh.h rtems/score/sh_io.h C_FILES = cpu.c OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) @@ -45,4 +27,30 @@ all-local: $(ARCH) $(PREINSTALL_FILES) $(LIB) \ EXTRA_DIST = cpu.c +PREINSTALL_FILES = + +$(PROJECT_INCLUDE)/asm.h: asm.h + $(INSTALL_DATA) $< $@ +PREINSTALL_FILES += $(PROJECT_INCLUDE)/asm.h + +$(PROJECT_INCLUDE)/rtems/score: + @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems/score +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score + +$(PROJECT_INCLUDE)/rtems/score/cpu.h: rtems/score/cpu.h + $(INSTALL_DATA) $< $@ +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/cpu.h + +$(PROJECT_INCLUDE)/rtems/score/types.h: rtems/score/types.h + $(INSTALL_DATA) $< $@ +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/types.h + +$(PROJECT_INCLUDE)/rtems/score/sh.h: rtems/score/sh.h + $(INSTALL_DATA) $< $@ +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/sh.h + +$(PROJECT_INCLUDE)/rtems/score/sh_io.h: rtems/score/sh_io.h + $(INSTALL_DATA) $< $@ +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/sh_io.h + include $(top_srcdir)/../../../automake/local.am -- cgit v1.2.3