Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: src/tlcl/Makefile

Issue 2864018: Detect out-of-date saved-structures.h (Closed) Base URL: ssh://git@chromiumos-git/tpm_lite.git
Patch Set: . Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/tlcl/Makefile
diff --git a/src/tlcl/Makefile b/src/tlcl/Makefile
index 4dc1cad2efba9393b5f864d9e80ea324fedc8365..cb59b95c7002a8274e91ae10eb87c30eac6e8076 100644
--- a/src/tlcl/Makefile
+++ b/src/tlcl/Makefile
@@ -15,17 +15,21 @@ endif
CC ?= cc
HOSTCC = cc
-libtlcl.a: tlcl.o
+libtlcl.a: tlcl.o
ar rcs libtlcl.a tlcl.o
tlcl.o: tlcl.c tlcl_internal.h tlcl.h structures.h
structures.h: generator
./generator > structures.h
+ sed -e '0,/This file is automatically/d' < structures.h > x.tmp
+ sed -e '0,/This file is automatically/d' < saved-structures.h > y.tmp
+ cmp -s x.tmp y.tmp || \
+ (echo "Please update saved-structures.h" && false)
generator: generator.c tlcl.h
$(HOSTCC) $(LOCAL_CFLAGS) -I$(ROOT)/usr/include \
-fpack-struct generator.c -o generator
clean:
- rm -f generator *.o *.a structures.h *~
+ rm -f generator *.o *.a structures.h x.tmp y.tmp *~
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698