diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-01-17 08:03:59 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-01-17 08:03:59 +0000 |
commit | ef7784a62d2ecd681b37aee7040e71bbb34a51cd (patch) | |
tree | 92daacce553b174393de87921912ada04a4ecb6e /make/m4.mk | |
parent | 8e081ea611483c35a17e0a5c3e80a943b27ab0a2 (diff) | |
download | buildroot-novena-ef7784a62d2ecd681b37aee7040e71bbb34a51cd.tar.gz buildroot-novena-ef7784a62d2ecd681b37aee7040e71bbb34a51cd.zip |
standardize handling of GNU configure scripts
-Erik
Diffstat (limited to 'make/m4.mk')
-rw-r--r-- | make/m4.mk | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/make/m4.mk b/make/m4.mk index cc10e4a60..70ceb92ae 100644 --- a/make/m4.mk +++ b/make/m4.mk @@ -20,11 +20,21 @@ $(M4_DIR)/.unpacked: $(DL_DIR)/$(M4_SOURCE) touch $(M4_DIR)/.unpacked $(M4_DIR)/.configured: $(M4_DIR)/.unpacked - (cd $(M4_DIR); rm -f config.cache; CC=$(TARGET_CC1) \ - CFLAGS=-D_POSIX_SOURCE ./configure \ + (cd $(M4_DIR); rm -rf config.cache; \ + PATH=$(STAGING_DIR)/bin:$$PATH CC=$(TARGET_CC1) \ + ./configure \ --target=$(GNU_TARGET_NAME) \ --prefix=/usr \ --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --disable-nls \ ); touch $(M4_DIR)/.configured @@ -53,7 +63,7 @@ m4: uclibc $(TARGET_DIR)/$(M4_TARGET_BINARY) m4-clean: $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC1) -C $(M4_DIR) uninstall - -make -C $(M4_DIR) clean + -$(MAKE) -C $(M4_DIR) clean m4-dirclean: rm -rf $(M4_DIR) |