1TAR = cacti
2
3.PHONY: dbg opt depend clean clean_dbg clean_opt
4
5all: opt
6
7dbg: $(TAR).mk obj_dbg
8	@$(MAKE) TAG=dbg -C . -f $(TAR).mk
9
10opt: $(TAR).mk obj_opt
11	@$(MAKE) TAG=opt -C . -f $(TAR).mk
12
13obj_dbg:
14	mkdir $@
15
16obj_opt:
17	mkdir $@
18
19clean: clean_dbg clean_opt
20
21clean_dbg: obj_dbg
22	@$(MAKE) TAG=dbg -C . -f $(TAR).mk clean
23	rm -rf $<
24
25clean_opt: obj_opt
26	@$(MAKE) TAG=opt -C . -f $(TAR).mk clean
27	rm -rf $<
28
29