xbps/prog.mk
Juan RP db58e48822 Added xbps-bin(8) and xbps-repo(8) manpages in asciidoc format.
That means that asciidoc is required to build/install XBPS.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091028153222-ljgdfqqe1ea74xs7
2009-10-28 16:32:22 +01:00

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)