build tarball, links to /bin/isirc
This commit is contained in:
parent
6e42cff3e0
commit
7d61a0acdf
1 changed files with 14 additions and 4 deletions
18
Makefile
18
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue