]> Zhao Yanbai Git Server - minix.git/commitdiff
new gcc mkheaders location
authorBen Gras <ben@minix3.org>
Wed, 29 Jun 2011 16:24:16 +0000 (18:24 +0200)
committerBen Gras <ben@minix3.org>
Wed, 29 Jun 2011 17:35:23 +0000 (19:35 +0200)
  . Try to be flexible about it this time

Makefile

index f33da310ad5bd4f2f0029391a34e54aa0a4f9cd3..3878f901b139b6a7d6c468c8aaf6c2d5914fb6e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,9 +45,9 @@ includes:
 libraries: includes
        $(MAKE) -C lib build_ack
 
-MKHEADERS443_PKGSRC=/usr/pkg/gcc44/libexec/gcc/i686-pc-minix/4.4.3/install-tools/mkheaders
+MKHEADERSS=/usr/pkg/gcc*/libexec/gcc/*/*/install-tools/mkheaders
 gnu-includes: includes
-       SHELL=/bin/sh; if [ -f $(MKHEADERS443_PKGSRC) ] ; then sh -e $(MKHEADERS443_PKGSRC) ; fi
+       SHELL=/bin/sh; for d in $(MKHEADERSS); do if [ -f $$d ] ; then sh -e $$d ; fi; done
 
 elf-libraries: includes
        $(MAKE) -C lib build_elf