mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-17 15:57:16 +03:00
Implement 'distclean' target cleaning more than the 'clean' target.
Fixes issue #56.
This commit is contained in:
parent
92ebb04e68
commit
1b18a28eb8
5
Makefile
5
Makefile
@ -6,3 +6,8 @@ include $(ROOT)/common.mk
|
||||
install::
|
||||
$(INSTALL) -D coz $(DESTDIR)$(bindir)/coz
|
||||
$(INSTALL) -D include/coz.h $(DESTDIR)$(incdir)/coz.h
|
||||
|
||||
distclean::
|
||||
@for dir in deps/libelfin ; do \
|
||||
make -C $$dir distclean || make -C $$dir clean; \
|
||||
done
|
||||
|
@ -27,7 +27,7 @@ SRCS ?= $(wildcard *.cpp) $(wildcard *.c)
|
||||
OBJS ?= $(addprefix obj/,$(patsubst %.cpp,%.o,$(patsubst %.c,%.o,$(SRCS))))
|
||||
|
||||
# Targets to build recirsively into $(DIRS)
|
||||
RECURSIVE_TARGETS ?= all clean bench test install
|
||||
RECURSIVE_TARGETS ?= all clean distclean bench test install
|
||||
|
||||
# Build in parallel
|
||||
MAKEFLAGS := -j
|
||||
@ -54,10 +54,13 @@ clean::
|
||||
done
|
||||
@rm -rf $(TARGETS) obj
|
||||
|
||||
# Bring source back to pristine state
|
||||
distclean:: clean
|
||||
|
||||
test::
|
||||
|
||||
# Prevent errors if files named all, clean, bench, or test exist
|
||||
.PHONY: all clean bench test
|
||||
# Prevent errors if files named all, clean, distclean, bench, or test exist
|
||||
.PHONY: all clean distclean bench test
|
||||
|
||||
# Compile a C++ source file (and generate its dependency rules)
|
||||
obj/%.o: %.cpp $(PREREQS)
|
||||
|
Loading…
Reference in New Issue
Block a user