summaryrefslogtreecommitdiff
path: root/xml
diff options
context:
space:
mode:
authorGuenter Knauf <fuankg@apache.org>2011-03-04 23:08:43 +0000
committerGuenter Knauf <fuankg@apache.org>2011-03-04 23:08:43 +0000
commit0e1670f122a0b795261a665c602c27a3e375d004 (patch)
tree8034aafe38e0e7d7d982adabf2645d201b79b0ed /xml
parent00ab6bddb361a6cb256f009a30fb9d6d8447f4b2 (diff)
downloadapr-0e1670f122a0b795261a665c602c27a3e375d004.tar.gz
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
Diffstat (limited to 'xml')
-rw-r--r--xml/NWGNUmakefile20
1 files changed, 4 insertions, 16 deletions
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