Clean up the clean target.
authorDavid Griffith <dave@661.org>
Tue, 31 Jul 2018 06:02:57 +0000 (23:02 -0700)
committerDavid Griffith <dave@661.org>
Tue, 31 Jul 2018 08:45:30 +0000 (01:45 -0700)
Makefile

index d0d3fa9bce0e1d0239355425c0f649478d98f62f..ae0f7cebc905e28b7ed87812d98a584f64499e0c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -304,10 +304,13 @@ frotz-$(GIT_TAG).tar.gz:
        git archive --format=tar.gz -o "frotz-$(GIT_TAG).tar.gz" "$(GIT_TAG)"
 
 clean: $(SUB_CLEAN)
-       rm -f $(SRCDIR)/*.h $(SRCDIR)/*.a $(COMMON_DEFINES) \
+       rm -f $(SRCDIR)/*.h \
+               $(SRCDIR)/*.a \
+               $(COMMON_DEFINES) \
                $(COMMON_STRINGS) \
-               $(COMMON_DIR)/git_hash.h $(CURSES_DEFINES) \
-               $(OBJECTS) frotz*.tar.gz
+               $(HASH) \
+               $(CURSES_DEFINES) \
+               frotz*.tar.gz
 
 distclean: clean
        rm -f frotz$(EXTENSION) dfrotz$(EXTENSION) sfrotz$(EXTENSION)