# Top level makefile, the real shit is at src/Makefile
-TARGETS=32bit noopt test
+default: all
-all:
+.DEFAULT:
cd src && $(MAKE) $@
-install: dummy
- cd src && $(MAKE) $@
-
-clean:
- cd src && $(MAKE) $@
- cd deps/hiredis && $(MAKE) $@
- cd deps/linenoise && $(MAKE) $@
- cd deps/jemalloc && $(MAKE) distclean
- cd deps/lua && $(MAKE) $@
- -(cd deps/jemalloc && $(MAKE) distclean)
-
-$(TARGETS):
- cd src && $(MAKE) $@
-
-src/help.h:
- @./utils/generate-command-help.rb > $@
-
-dummy:
clean:
rm -rf $(PRGNAME) $(BENCHPRGNAME) $(CLIPRGNAME) $(CHECKDUMPPRGNAME) $(CHECKAOFPRGNAME) *.o *.gcda *.gcno *.gcov
+ cd ../deps/hiredis && $(MAKE) $@
+ cd ../deps/linenoise && $(MAKE) $@
+ cd ../deps/lua && $(MAKE) $@
+ -(cd ../deps/jemalloc && $(MAKE) distclean)
dep:
$(CC) -MM *.c -I ../deps/hiredis -I ../deps/linenoise
32bitgprof:
$(MAKE) PROF="-pg" ARCH="-arch i386"
+src/help.h:
+ @../utils/generate-command-help.rb > help.h
+
install: all
mkdir -p $(INSTALL_BIN)
$(INSTALL) $(PRGNAME) $(INSTALL_BIN)