Mercurial > xbps-search-tv
diff Makefile @ 3:ae3a6d7bcca6 default tip
cache the package list for better performance
| author | Yasuri <yasuri@charliesmp.net> |
|---|---|
| date | Sun, 13 Sep 2026 19:48:34 +0000 |
| parents | 21b543c7aa14 |
| children |
line wrap: on
line diff
--- a/Makefile Sun Sep 13 19:40:11 2026 +0000 +++ b/Makefile Sun Sep 13 19:48:34 2026 +0000 @@ -3,8 +3,9 @@ TARGET := xt SRCS := main.cpp spawn.cpp pipes.cpp OBJS := $(SRCS:.cpp=.o) - -.PHONY: all clean +PREFIX = /usr/local +BINDIR = /bin +.PHONY: all clean install all: $(TARGET) @@ -14,5 +15,7 @@ %.o: %.cpp process.h $(CXX) $(CXXFLAGS) -c $< -o $@ +install: $(TARGET) + install -Dm755 $(TARGET) $(PREFIX)$(BINDIR)/$(TARGET) clean: rm -f $(OBJS) $(TARGET)
