build tarball, links to /bin/isirc

This commit is contained in:
Denis Knauf 2012-06-02 10:09:16 +02:00
parent 6e42cff3e0
commit 7d61a0acdf

View file

@ -2,12 +2,19 @@
CC ?= cc CC ?= cc
INSTALL ?= install INSTALL ?= install
RM ?= rm RM ?= rm
LN ?= ln
MAKE ?= make
MD ?= mkdir
CP ?= cp
TAR ?= tar
D ?= / D ?= /
PREFIX ?= / PREFIX ?= /
BIN_PREFIX ?= $(PREFIX)/bin BIN_PREFIX ?= $(PREFIX)/bin
CFLAGS ?= -Os CFLAGS ?= -Os
VERSION = $(shell cat VERSION)
all: cmdline all: cmdline
cmdline: cmdline.c cmdline: cmdline.c
@ -16,10 +23,13 @@ cmdline: cmdline.c
install: install:
$(INSTALL) -D -m 0755 cmdline $(D)/$(BIN_PREFIX) $(INSTALL) -D -m 0755 cmdline $(D)/$(BIN_PREFIX)
$(INSTALL) -D -m 0744 isirc $(D)/$(BIN_PREFIX) $(INSTALL) -D -m 0744 isirc $(D)/$(BIN_PREFIX)
$(LN) -s isirc $(D)/init $(LN) -s bin/isirc $(D)/init
$(LN) -s isirc $(D)/linuxrc $(LN) -s bin/isirc $(D)/linuxrc
clean: clean:
$(RM) cmdline $(RM) cmdline target
.PHONY: all install clean tarball:
ls isirc Makefile cmdline.c | pax -s "!^!isirc-$(VERSION)/!" -w | xz > isirc-$(VERSION).tar.xz
.PHONY: all install clean tarball