--- Makefile | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) create mode 100644 Makefile
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dd81773 --- /dev/null +++ b/Makefile @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +VERSION = "0.0.6" +USER_SCRIPTS = polystrap polystrap-nb +ROOT_SCRIPTS = polystrap-binfmt +ALL_SCRIPTS = $(USER_SCRIPTS) $(ROOT_SCRIPTS) + +USER_MAN = manual/polystrap.1 manual/polystrap-nb.1 +ROOT_MAN = manual/polystrap-binfmt.8 +ALL_MAN = $(USER_MAN) $(ROOT_MAN) + +DIST_FILES = README +DIST_FILES += Makefile + +ALL_FILES = $(ALL_SCRIPTS) +ALL_FILES += $(DIST_FILES) + +BOARD = default +BOARD += kirkwood +BOARD += notioninkadam +BOARD += om-gta02 +BOARD += touchbook + +all: + for SCRIPT in $(ALL_SCRIPTS) ; \ + do \ + sed -i "/^version=/s/v.*/version=\"$(VERSION)\"/" $$SCRIPT ; \ + done + +install: + install $(USER_SCRIPTS) /usr/bin + install $(ROOT_SCRIPTS) /usr/sbin + install --directory /usr/share/polystrap/board/ + for BRD in $(BOARD) ; do \ + cp --archive $$BRD /usr/share/polystrap/board/$$BRD ; \ + done + +uninstall: + for SCRIPT in $(USER_SCRIPTS) ; do rm -f /usr/bin/$$SCRIPT ; done + for SCRIPT in $(ROOT_SCRIPTS) ; do rm -f /usr/bin/$$SCRIPT ; done + rm -rf /usr/share/polystrap/board + +dist: + tar czf polystrap-$(VERSION).tar.gz \ + $(ALL_FILES) \ + $(BOARD) \ + manual + +.phony: all dist -- 1.7.2.3 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

