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 *~ |