diff --git a/NPLib/Makefile b/NPLib/Makefile
index 41e9bebb433cd9760fa8882fa8e404fb6e435983..0c67c7f50545d9c4c111f0fa0bf1adddc78661f3 100644
--- a/NPLib/Makefile
+++ b/NPLib/Makefile
@@ -280,7 +280,8 @@ FillIncludeDir:
 
 FillLibraryDir:
 		./scripts/filllibdir.sh
-ifeq ($(ARCH),macosx)
+#ifeq ($(ARCH),macosx)
+ifeq ($(findstring macosx, $(ARCH)), macosx)
 		./scripts/filllibmacdir.sh
 endif