From 0e1670f122a0b795261a665c602c27a3e375d004 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Fri, 4 Mar 2011 23:08:43 +0000 Subject: NetWare build overhaul in order to compile on Linux. Part 3. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1078199 13f79535-47bb-0310-9956-ffa450edef68 --- xml/NWGNUmakefile | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'xml') diff --git a/xml/NWGNUmakefile b/xml/NWGNUmakefile index d4e5c61d4..182dd9841 100644 --- a/xml/NWGNUmakefile +++ b/xml/NWGNUmakefile @@ -33,27 +33,15 @@ endif $(EXPATSRC)/lib/%.h: $(EXPATSRC)/lib/%.hnw @echo Creating $@ -ifeq "$(OSTYPE)" "linux" - $(CP) $< $@ -else - $(CP) $(subst /,\,$<) $(subst /,\,$@) -endif + $(call CP,$<,$@) $(EXPATSRC)/lib/%.h: $(EXPATSRC)/lib/%.h.in @echo Creating $@ -ifeq "$(OSTYPE)" "linux" - $(CP) $< $@ -else - $(CP) $(subst /,\,$<) $(subst /,\,$@) -endif + $(call CP,$<,$@) $(EXPATSRC)/lib/%.h: $(CURDIR)/%.hnw @echo Creating $@ -ifeq "$(OSTYPE)" "linux" - $(CP) $< $@ -else - $(CP) $(subst /,\,$<) $(subst /,\,$@) -endif + $(call CP,$<,$@) vpath %.c $(EXPATSRC)/lib @@ -287,7 +275,7 @@ nlms :: libs $(TARGET_nlm) install :: nlms FORCE clean :: - $(foreach file,$(EXPAT_prebuild_headers),$(shell if exist $(subst /,\,$(file)) $(DEL) $(subst /,\,$(file)))) + $(foreach file,$(EXPAT_prebuild_headers),$(call DEL,$(file))) # # Any specialized rules here -- cgit v1.2.1