Mercurial > hg > syntilista
changeset 81:810ca71af506
Improve 'clean' target handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 24 Apr 2017 12:17:01 +0300 |
parents | c8fd927cd2c4 |
children | d65e053209ea |
files | Makefile.cross-mingw-win32 Makefile.gen |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.cross-mingw-win32 Mon Apr 24 12:12:39 2017 +0300 +++ b/Makefile.cross-mingw-win32 Mon Apr 24 12:17:01 2017 +0300 @@ -47,5 +47,6 @@ QT_UIC = $(QT5_BASE)/bin/uic QT_UIC_FLAGS = +CLEAN_TARGETS += moc_predefs.h $(APP_SRC)winres.rc include Makefile.gen
--- a/Makefile.gen Mon Apr 24 12:12:39 2017 +0300 +++ b/Makefile.gen Mon Apr 24 12:17:01 2017 +0300 @@ -35,8 +35,9 @@ # And target lists TARGETS = $(APP_BIN) NOBUILD_TARGETS += $(OBJPATH) $(BINPATH) -NOINST_TARGETS += -DISTCLEAN_TARGETS += icon.ico $(APP_SRC)moc_*.cpp $(APP_SRC)ui_*.h +NOINST_TARGETS += +CLEAN_TARGETS += icon.ico $(APP_SRC)moc_*.cpp $(APP_SRC)ui_*.h +DISTCLEAN_TARGETS += ### @@ -114,7 +115,7 @@ ### Special targets ### clean: - -$(RM) $(TARGETS) $(NOINST_TARGETS) $(OBJPATH)*.o + -$(RM) $(TARGETS) $(NOINST_TARGETS) $(CLEAN_TARGETS) $(OBJPATH)*.o distclean: clean -$(RM) $(DISTCLEAN_TARGETS) *~ core *.core