Commit fa4179ee authored by Sergey Lyubka's avatar Sergey Lyubka

Made clean silent

parent a8c8cfb6
...@@ -9,6 +9,7 @@ EXE_SUFFIX = ...@@ -9,6 +9,7 @@ EXE_SUFFIX =
CFLAGS = -std=c99 -O2 -W -Wall -pedantic -pthread -pipe -I. -I.. $(CFLAGS_EXTRA) CFLAGS = -std=c99 -O2 -W -Wall -pedantic -pthread -pipe -I. -I.. $(CFLAGS_EXTRA)
VERSION = $(shell perl -lne \ VERSION = $(shell perl -lne \
'print $$1 if /define\s+MONGOOSE_VERSION\s+"(\S+)"/' ../mongoose.h) 'print $$1 if /define\s+MONGOOSE_VERSION\s+"(\S+)"/' ../mongoose.h)
RM = rm -rf
VDIR = mongoose-$(VERSION) VDIR = mongoose-$(VERSION)
# Stock windows binary builds with Lua and YASSL library. # Stock windows binary builds with Lua and YASSL library.
...@@ -62,6 +63,7 @@ LINK = $(MSVC)/bin/link $(LINK_FLAGS) ...@@ -62,6 +63,7 @@ LINK = $(MSVC)/bin/link $(LINK_FLAGS)
ifeq ($(OS), Windows_NT) ifeq ($(OS), Windows_NT)
EXE_SUFFIX = .exe EXE_SUFFIX = .exe
RM = del
else else
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S), Linux) ifeq ($(UNAME_S), Linux)
...@@ -160,6 +162,6 @@ release: tarball macos ...@@ -160,6 +162,6 @@ release: tarball macos
clean: clean:
@cd ../examples && $(MAKE) clean @cd ../examples && $(MAKE) clean
@rm -rf *.o *.core $(PROG) *.obj *.so $(PROG).txt *.dSYM *.tgz \ @$(RM) *.o *.core $(PROG) *.obj *.so $(PROG).txt *.dSYM *.tgz \
$(PROG).exe *.dll *.lib res.o res.RES *.dSYM *.zip *.pdb \ $(PROG).exe *.dll *.lib res.o res.RES *.dSYM *.zip *.pdb \
*.exe *dmg* $(PROG)-* unix_unit_test *.exe *dmg* $(PROG)-* unix_unit_test
CFLAGS = -W -Wall -I.. -pthread -g -pipe $(COPT) CFLAGS = -W -Wall -I.. -pthread -g -pipe $(COPT)
DLL_FLAGS = -DLUA_COMPAT_ALL -I../build DLL_FLAGS = -DLUA_COMPAT_ALL -I../build
RM = rm -rf
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
RM = del /q /f
else else
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
DLL_FLAGS += -shared DLL_FLAGS += -shared
...@@ -43,4 +45,4 @@ windows: ...@@ -43,4 +45,4 @@ windows:
#$(CL) lua_dll.c $(CLFLAGS) $(DLL_FLAGS) /DLL $(LFLAGS) /SUBSYSTEM:WINDOWS /ENTRY:luaopen_lua_dll /EXPORT:luaopen_lua_dll /out:lua_dll.dll #$(CL) lua_dll.c $(CLFLAGS) $(DLL_FLAGS) /DLL $(LFLAGS) /SUBSYSTEM:WINDOWS /ENTRY:luaopen_lua_dll /EXPORT:luaopen_lua_dll /out:lua_dll.dll
clean: clean:
@rm -rf hello upload post websocket chat *.exe *.dSYM *.obj .*o -@$(RM) hello upload post websocket chat *.exe *.dSYM *.obj .*o
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment