[pve-devel] [PATCH vncterm 5/5] build: use temp file for glyph.h
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Feb 2 10:13:09 CET 2017
otherwise it gets truncated on failure, and make thinks it's
there on the next run.
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
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.1.4
More information about the pve-devel
mailing list