From d4dcc66ebcafe23296e291c806296cf58c48910a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 2 Feb 2017 10:13:09 +0100 Subject: [PATCH] build: use temp file for glyph.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit otherwise it gets truncated on failure, and make thinks it's there on the next run. Signed-off-by: Fabian Grünbichler --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index abb85a6..c5523fb 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,8 @@ KEYSTORE=/home/dietmar/pve2-proxdev/proxmox-dev/comodo-for-java.keystore all: vncterm glyphs.h: genfont - ./genfont > glyphs.h + ./genfont > glyphs.h.tmp + mv glyphs.h.tmp glyphs.h genfont: genfont.c gcc -g -O2 -o $@ genfont.c -Wall -D_GNU_SOURCE -lz @@ -112,7 +113,7 @@ upload: ${DEB} .PHONY: clean clean: - rm -rf vncterm vncterm.1 vncterm_*.deb tigervnc *~ ${VNCDIR} vncterm-*.tar.gz + rm -rf vncterm vncterm.1 vncterm_*.deb tigervnc *~ ${VNCDIR} vncterm-*.tar.gz glyph.h.tmp .PHONY: distclean distclean: clean -- 2.39.2