Mercurial > hg > dmlib
comparison Makefile.gen @ 495:30145d17aebd
Move certain editor related targets to the actual TARGETS variable, and
remove them from being separately specified in the "make clean" target,
thusly cleaning them only when editor is enabled in build configuration.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 16 Nov 2012 19:18:03 +0200 |
parents | 8ca18222db10 |
children | 966617f0f6cd |
comparison
equal
deleted
inserted
replaced
494:abb112ac9916 | 495:30145d17aebd |
---|---|
16 ### Editor | 16 ### Editor |
17 ### | 17 ### |
18 ifeq ($(DM_BUILD_EDITOR),yes) | 18 ifeq ($(DM_BUILD_EDITOR),yes) |
19 ifneq ($(DEMO_BIN),) | 19 ifneq ($(DEMO_BIN),) |
20 BINARIES += ed_$(DEMO_BIN) | 20 BINARIES += ed_$(DEMO_BIN) |
21 TARGETS += $(OBJPATH)moc_* $(EDITOR_MAKEFILE) $(EDITOR_PRO) | |
21 endif | 22 endif |
22 endif | 23 endif |
23 | 24 |
24 EDITOR_PRO = editor.pro | 25 EDITOR_PRO = editor.pro |
25 EDITOR_MAKEFILE = Makefile.editor | 26 EDITOR_MAKEFILE = Makefile.editor |
420 | 421 |
421 ### | 422 ### |
422 ### Special targets | 423 ### Special targets |
423 ### | 424 ### |
424 clean: | 425 clean: |
425 $(RM) $(TARGETS) $(OBJPATH)*.o $(OBJPATH)moc_* $(EDITOR_MAKEFILE) $(EDITOR_PRO) | 426 $(RM) $(TARGETS) $(OBJPATH)*.o |
426 | 427 |