summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-04-25 23:33:31 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2014-04-25 23:33:31 (GMT)
commit1814d2c431e221545e0a3c3a34566f97eed265d1 (patch)
tree6e93735e3c8dc64b69b395be41277f7adbf119a2
parent2af6a05dd54ea9d97fe954c02b21a11be4380fea (diff)
downloadnetsurf-all-1814d2c431e221545e0a3c3a34566f97eed265d1.tar.gz
netsurf-all-1814d2c431e221545e0a3c3a34566f97eed265d1.tar.bz2
add clean target
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 03297ca..08971db 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ $(TMP_PREFIX)/build-stamp:
mkdir -p $(TMP_PREFIX)/lib
mkdir -p $(TMP_PREFIX)/bin
$(foreach L,$(NSLIB_TARG),$(call do_prefix_install,$(L)))
- $(MAKE) install --directory=$(NSGENBIND_TARG) PREFIX=$(TMP_PREFIX)
+ $(MAKE) install --directory=$(NSGENBIND_TARG) PREFIX=$(TMP_PREFIX) TARGET=$(shell uname -s)
$(MAKE) --directory=$(NETSURF_TARG) PREFIX=$(PREFIX) TARGET=$(TARGET)
touch $@
@@ -48,6 +48,7 @@ install: $(TMP_PREFIX)/build-stamp
clean:
$(RM) -r $(TMP_PREFIX)
$(foreach L,$(NSLIB_TARG),$(call do_clean,$(L)))
+ $(MAKE) clean --directory=$(NSGENBIND_TARG) TARGET=$(TARGET)
$(MAKE) clean --directory=$(NETSURF_TARG) TARGET=$(TARGET)
release-checkout: $(NSLIB_TARG) $(NETSURF_TARG) $(NSGENBIND_TARG)