From d35d3161142bd4a1cf0b541ed1250d6445d27169 Mon Sep 17 00:00:00 2001 From: ikits Date: Mon, 10 Nov 2003 08:50:17 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@166 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/auto/Makefile b/auto/Makefile index dfc47c3..41c4144 100644 --- a/auto/Makefile +++ b/auto/Makefile @@ -21,6 +21,7 @@ EXT = extensions BLACKLIST = blacklist PARSE_SPEC = parse_spec.pl +SYSTEM = $(strip $(shell uname -s)) TOP = .. I.DEST = $(TOP)/include/GL @@ -43,9 +44,14 @@ $(REGISTRY)/.dummy: $(BIN)/update_registry.sh $(EXT)/.dummy: $(REGISTRY)/.dummy rm -rf $(EXT) $(BIN)/update_ext.sh $(EXT) $(REGISTRY) $(BLACKLIST) +ifeq ($(patsubst Darwin%,Darwin,$(SYSTEM)), Darwin) find $(CORE) -maxdepth 1 -type f | grep -v VERSION | xargs -J % cp % $(EXT) +else + find $(CORE) -maxdepth 1 -type f | grep -v VERSION | xargs cp --target-directory=$(EXT) +endif touch $@ + $(I.DEST)/glew.h: $(EXT)/.dummy test -d $(I.DEST) || mkdir -p $(I.DEST) cp -f $(SRC)/glew_pre.h $@