diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-05-25 04:32:27 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-05-25 04:32:27 +0000 |
commit | 3ac1acb9ea70080aaaf49ae211835f057e60eefa (patch) | |
tree | a2e08d2be3224409a033d25af8861d9853e72de7 /obsolete-buildroot/make/less.mk | |
parent | 1eb1b593980fdc06ab92f8e354129b0aadc4f1b0 (diff) |
Initial revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/make/less.mk')
-rw-r--r-- | obsolete-buildroot/make/less.mk | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/obsolete-buildroot/make/less.mk b/obsolete-buildroot/make/less.mk new file mode 100644 index 000000000..af0ed4a3d --- /dev/null +++ b/obsolete-buildroot/make/less.mk @@ -0,0 +1,48 @@ +############################################################# +# +# less +# +############################################################# +LESS_SOURCE=less-381.tar.gz +LESS_SITE=http://www.greenwoodsoftware.com/less +LESS_DIR=$(BUILD_DIR)/less-381 +LESS_BINARY=less +LESS_TARGET_BINARY=usr/bin/less + +$(DL_DIR)/$(LESS_SOURCE): + $(WGET) -P $(DL_DIR) $(LESS_SITE)/$(LESS_SOURCE) + +$(LESS_DIR)/.source: $(DL_DIR)/$(LESS_SOURCE) + zcat $(DL_DIR)/$(LESS_SOURCE) | tar -C $(BUILD_DIR) -xvf - + touch $(LESS_DIR)/.source + +$(LESS_DIR)/.configured: $(LESS_DIR)/.source + (cd $(LESS_DIR); \ + $(TARGET_CONFIGURE_OPTS) \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --sysconfdir=/etc \ + ); + touch $(LESS_DIR)/.configured; + +$(LESS_DIR)/$(LESS_BINARY): $(LESS_DIR)/.configured + $(MAKE) CC=$(TARGET_CC) -C $(LESS_DIR) + +$(TARGET_DIR)/$(LESS_TARGET_BINARY): $(LESS_DIR)/$(LESS_BINARY) + $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LESS_DIR) install + rm -Rf $(TARGET_DIR)/usr/man + +less: uclibc $(TARGET_DIR)/$(LESS_TARGET_BINARY) + +less-source: $(DL_DIR)/$(LESS_SOURCE) + +less-clean: + $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LESS_DIR) uninstall + -$(MAKE) -C $(LESS_DIR) clean + +less-dirclean: + rm -rf $(LESS_DIR) + |