Fixed prog.mk rules that skipped the manpage.
--HG-- extra : convert_revision : xtraeme%40gmail.com-20091120210232-3874556kn824cgrt
This commit is contained in:
parent
308a25f302
commit
56c5c38724
35
prog.mk
35
prog.mk
@ -1,23 +1,6 @@
|
||||
OBJS ?= main.o
|
||||
LDFLAGS += -lxbps
|
||||
|
||||
%.o: %.c
|
||||
@echo " [CC] $@"
|
||||
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(STATIC_LIBS) -c $<
|
||||
|
||||
$(MAN):
|
||||
@echo " [ASCIIDOC] $(MAN)"
|
||||
@a2x -f manpage $(MAN).txt
|
||||
|
||||
$(BIN).static: $(OBJS)
|
||||
@echo " [CCLD] $@"
|
||||
@$(CC) -static $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
|
||||
$(STATIC_LIBS) -o $@ >/dev/null 2>&1
|
||||
|
||||
$(BIN): $(OBJS)
|
||||
@echo " [CCLD] $@"
|
||||
@$(CC) $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
.PHONY: all
|
||||
all: $(BIN) $(BIN).static $(MAN)
|
||||
|
||||
@ -45,3 +28,21 @@ uninstall:
|
||||
ifdef MAN
|
||||
-rm -f $(MANDIR)/$(MAN)
|
||||
endif
|
||||
|
||||
%.o: %.c
|
||||
@echo " [CC] $@"
|
||||
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(STATIC_LIBS) -c $<
|
||||
|
||||
$(MAN):
|
||||
@echo " [ASCIIDOC] $(MAN)"
|
||||
@a2x -f manpage $(MAN).txt
|
||||
|
||||
$(BIN).static: $(OBJS)
|
||||
@echo " [CCLD] $@"
|
||||
@$(CC) -static $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
|
||||
$(STATIC_LIBS) -o $@ >/dev/null 2>&1
|
||||
|
||||
$(BIN): $(OBJS)
|
||||
@echo " [CCLD] $@"
|
||||
@$(CC) $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user