Index: Makefile ================================================================== --- Makefile +++ Makefile @@ -15,20 +15,22 @@ $(CC) $(CFLAGS) $(LDFLAGS) -o "$@" $^ $(LIBS) filed.o: filed.c filed-mime-types.h filed-mime-types.h: generate-mime-types - ./generate-mime-types "$(MIMETYPES)" > filed-mime-types.h + ./generate-mime-types "$(MIMETYPES)" > filed-mime-types.h.new + mv filed-mime-types.h.new filed-mime-types.h install: filed filed.1 test -d "$(DESTDIR)$(mandir)/man1" || mkdir -p "$(DESTDIR)$(mandir)/man1" test -d "$(DESTDIR)$(bindir)" || mkdir -p "$(DESTDIR)$(bindir)" cp filed.1 "$(DESTDIR)$(mandir)/man1/" cp filed "$(DESTDIR)$(bindir)/" clean: rm -f filed filed.o + rm -f filed-mime-types.h.new distclean: clean rm -f filed-mime-types.h .PHONY: all install clean distclean