Fix generation of headers when cross compiling
authorClaudio Bley <cbley@av-test.de>
Wed, 21 May 2014 13:25:40 +0000 (15:25 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 22 May 2014 18:52:05 +0000 (20:52 +0200)
Use the EXEEXT_FOR_BUILD when calling the generated desdata
program, otherwise the build fails when cross compiling because
keymap.h and rotors.h are not found.

Signed-off-by: Claudio Bley <cbley@av-test.de>
Makefile.in

index e4d3738ae432d8724be1be44ae2991f53b61dad8..7ce8bb8866751af52b96c4a5d014b21778aa887a 100644 (file)
@@ -292,9 +292,9 @@ des_headers = rotors.h keymap.h
 
 # Generate DES headers.
 $(des_headers): desdata.c
-       $(MAKE) desdata$(EXEEXT)
+       $(MAKE) desdata$(EXEEXT_FOR_BUILD)
        f="$(srcdir)/`basename $@`"; \
-         ./desdata$(EXEEXT) $(@F) > $${f}T; \
+         ./desdata$(EXEEXT_FOR_BUILD) $(@F) > $${f}T; \
          test -s $${f}T && mv -f $${f}T $$f
 
 des.$(OBJEXT): des.c des.h $(des_headers)