#!/usr/bin/make -f DESTDIR=/tmp/libtrd PREFIX=/usr # If you want to install to a different location, please set the # environment variable ARM_ROOTFS or call this script # ARM_ROOTFS=/your/preferred/installation/directory ARM_ROOTFS ?= /tmp/armfs Makefile: Makefile.in configure.ac bootstrap ipkg/rules ./configure --host=arm-linux-uclibc \ --prefix=$(PREFIX) \ --without-libxml2 \ --with-rootfs=$(ARM_ROOTFS) # see comment above .PHONY: configure configure: Makefile build: configure $(MAKE) clean: $(MAKE) distclean install: build rm -rf $(DESTDIR) $(MAKE) install-strip DESTDIR=$(DESTDIR) rm -rf $(DESTDIR)/$(PREFIX)/include rm -rf $(DESTDIR)/$(PREFIX)/lib/*.la rm -rf $(DESTDIR)/$(PREFIX)/lib/*.a local-install: build $(MAKE) DESTDIR=$(ARM_ROOTFS) install rm -rf $(ARM_ROOTFS)/$(PREFIX)/lib/*.la