build tarball, links to /bin/isirc
This commit is contained in:
parent
6e42cff3e0
commit
7d61a0acdf
18
Makefile
18
Makefile
|
@ -2,12 +2,19 @@
|
|||
CC ?= cc
|
||||
INSTALL ?= install
|
||||
RM ?= rm
|
||||
LN ?= ln
|
||||
MAKE ?= make
|
||||
MD ?= mkdir
|
||||
CP ?= cp
|
||||
TAR ?= tar
|
||||
|
||||
D ?= /
|
||||
PREFIX ?= /
|
||||
BIN_PREFIX ?= $(PREFIX)/bin
|
||||
CFLAGS ?= -Os
|
||||
|
||||
VERSION = $(shell cat VERSION)
|
||||
|
||||
all: cmdline
|
||||
|
||||
cmdline: cmdline.c
|
||||
|
@ -16,10 +23,13 @@ cmdline: cmdline.c
|
|||
install:
|
||||
$(INSTALL) -D -m 0755 cmdline $(D)/$(BIN_PREFIX)
|
||||
$(INSTALL) -D -m 0744 isirc $(D)/$(BIN_PREFIX)
|
||||
$(LN) -s isirc $(D)/init
|
||||
$(LN) -s isirc $(D)/linuxrc
|
||||
$(LN) -s bin/isirc $(D)/init
|
||||
$(LN) -s bin/isirc $(D)/linuxrc
|
||||
|
||||
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