db58e48822
That means that asciidoc is required to build/install XBPS. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091028153222-ljgdfqqe1ea74xs7
33 lines
662 B
Makefile
33 lines
662 B
Makefile
BIN_STATIC ?= $(BIN).static
|
|
OBJS ?= main.o
|
|
MAN ?= $(BIN).8
|
|
|
|
all: $(BIN) $(BIN_STATIC) $(MAN)
|
|
.PHONY: all
|
|
|
|
$(MAN):
|
|
a2x -f manpage $(MAN).txt
|
|
|
|
$(BIN_STATIC): $(OBJS)
|
|
$(CC) -static $^ $(LDFLAGS) $(STATIC_LIBS) -o $@
|
|
|
|
$(BIN): $(OBJS)
|
|
$(CC) $^ $(LDFLAGS) -o $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
-rm -f $(BIN) $(BIN_STATIC) $(MAN)
|
|
-rm -f $(OBJS)
|
|
|
|
.PHONY: install
|
|
install: $(BIN) $(BIN_STATIC) $(MAN)
|
|
install -d $(SBINDIR)
|
|
install -d $(MANDIR)
|
|
install $(INSTALL_STRIPPED) -m 755 $(BIN) $(SBINDIR)
|
|
install $(INSTALL_STRIPPED) -m 755 $(BIN_STATIC) $(SBINDIR)
|
|
install -m 644 $(MAN) $(MANDIR)
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
-rm -f $(SBINDIR)/$(BIN) $(SBINDIR)/$(BIN_STATIC)
|