diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-02-15 12:36:32 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-02-15 12:36:32 +0000 |
commit | bbe35d48172c059e0cc4040bb3e1bbec5192abe2 (patch) | |
tree | a845123d3ad51ebb3af2f4d1972fe3410843372a /make | |
parent | 039a17c4896759aa94c1e0eb037b99320c4c3b33 (diff) |
Fix pcmcia startup. Add grep
Diffstat (limited to 'make')
-rw-r--r-- | make/grep.mk | 57 | ||||
-rw-r--r-- | make/pcmcia.mk | 2 |
2 files changed, 58 insertions, 1 deletions
diff --git a/make/grep.mk b/make/grep.mk new file mode 100644 index 000000000..967bcf363 --- /dev/null +++ b/make/grep.mk @@ -0,0 +1,57 @@ +############################################################# +# +# grep +# +############################################################# +GNUGREP_SOURCE:=grep-2.5.1.tar.bz2 +GNUGREP_SITE:=ftp://ftp.gnu.org/gnu/grep +GNUGREP_DIR:=$(BUILD_DIR)/grep-2.5.1 +GNUGREP_CAT:=bzcat +GNUGREP_BINARY:=src/grep +GNUGREP_TARGET_BINARY:=bin/grep + +$(DL_DIR)/$(GNUGREP_SOURCE): + $(WGET) -P $(DL_DIR) $(GNUGREP_SITE)/$(GNUGREP_SOURCE) + +grep-source: $(DL_DIR)/$(GNUGREP_SOURCE) + +$(GNUGREP_DIR)/.unpacked: $(DL_DIR)/$(GNUGREP_SOURCE) + $(GNUGREP_CAT) $(DL_DIR)/$(GNUGREP_SOURCE) | tar -C $(BUILD_DIR) -xvf - + touch $(GNUGREP_DIR)/.unpacked + +$(GNUGREP_DIR)/.configured: $(GNUGREP_DIR)/.unpacked + (cd $(GNUGREP_DIR); rm -rf config.cache; \ + PATH=$(TARGET_PATH) CC=$(TARGET_CC) \ + ./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 $(GNUGREP_DIR)/.configured + +$(GNUGREP_DIR)/$(GNUGREP_BINARY): $(GNUGREP_DIR)/.configured + $(MAKE) -C $(GNUGREP_DIR) + +$(TARGET_DIR)/$(GNUGREP_TARGET_BINARY): $(GNUGREP_DIR)/$(GNUGREP_BINARY) + rm -f $(TARGET_DIR)/bin/grep $(TARGET_DIR)/bin/egrep $(TARGET_DIR)/bin/fgrep + cp -a $(GNUGREP_DIR)/src/grep $(GNUGREP_DIR)/src/egrep $(GNUGREP_DIR)/src/fgrep $(TARGET_DIR)/bin/ + + +grep: uclibc $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) + +grep-clean: + $(MAKE) DESTDIR=$(TARGET_DIR) -C $(GNUGREP_DIR) uninstall + -$(MAKE) -C $(GNUGREP_DIR) clean + +grep-dirclean: + rm -rf $(GNUGREP_DIR) + diff --git a/make/pcmcia.mk b/make/pcmcia.mk index 164284281..7dcc6f897 100644 --- a/make/pcmcia.mk +++ b/make/pcmcia.mk @@ -74,7 +74,7 @@ $(TARGET_DIR)/sbin/cardmgr: $(PCMCIA_DIR)/cardmgr/cardmgr rm -f $(TARGET_DIR)/usr/share/pnp.ids $(TARGET_DIR)/sbin/lspnp $(TARGET_DIR)/sbin/setpnp; rm -f $(TARGET_DIR)/sbin/pcinitrd rm -f $(TARGET_DIR)/sbin/probe - cp $(PCMCIA_DIR)/etc/rc.pcmcia $(TARGET_DIR)/etc/init.d/S30pcmcia + cp $(SOURCE_DIR)/target_skeleton/etc/init.d/S30pcmcia $(TARGET_DIR)/etc/init.d/S30pcmcia chmod a+x $(TARGET_DIR)/etc/init.d/S30pcmcia chmod -R u+w $(TARGET_DIR)/etc/pcmcia/* |