mirror of https://github.com/krallin/tini.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
598 B
34 lines
598 B
include config.mk |
|
|
|
OBJ = tini.o |
|
BIN = tini |
|
|
|
all: $(BIN) |
|
|
|
$(BIN): $(OBJ) |
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< |
|
|
|
$(OBJ): |
|
|
|
check: |
|
python test/test.py |
|
|
|
install: all |
|
mkdir -p $(DESTDIR)$(PREFIX)/bin |
|
cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin |
|
|
|
uninstall: |
|
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) |
|
|
|
dist: clean |
|
mkdir -p tini-$(VERSION) |
|
cp LICENSE Makefile README config.def.h config.mk tini.c tini-$(VERSION) |
|
tar -cf tini-$(VERSION).tar tini-$(VERSION) |
|
gzip tini-$(VERSION).tar |
|
rm -rf tini-$(VERSION) |
|
|
|
clean: |
|
rm -f $(BIN) $(OBJ) tini-$(VERSION).tar.gz |
|
|
|
.PHONY: |
|
all install uninstall dist clean
|
|
|