Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (20 sloc) 826 Bytes
all: staging-archives/$(THING).tar.gz
include GNUmakefile.base
staging-archives/$(THING).tar.gz: $(prefix)/$(THING)
(cd $(prefix); tar czf - $(THING)) > $@
$(prefix)/$(THING): source-archives/$(THING)-source.tar.bz2 staging
cat $< | (cd staging; tar xjf -)
cd staging/$(THING); $(SH) make.sh; INSTALL_ROOT=$@ $(SH) install.sh
ifeq ($(os),Darwin)
$(prefix)/$(THING): binary-archives/$(THING)-powerpc-darwin-binary.tar.bz2 staging
cat $< | (cd staging; tar xjf -)
cd staging/$(THING)-powerpc-darwin; INSTALL_ROOT=$@ $(SH) install.sh
endif
ifeq ($(os),Linux)
$(prefix)/$(THING): binary-archives/$(THING)-x86-linux-binary.tar.bz2 staging
cat $< | (cd staging; tar xjf -)
cd staging/$(THING)-x86-linux; INSTALL_ROOT=$@ $(SH) install.sh
endif
foo:
(cd tests && $(SH) run-tests.sh); \
(cd doc/manual && $(MAKE) -k)