Update for Fossil

FossilOrigin-Name: efe1ebc7a034eb6b7542409c62568b9d2e2e686d292ace808180080e0e6a6987
This commit is contained in:
nekobit 2022-05-12 02:10:48 +00:00
parent 09a00d6e1f
commit 77ea374d6a
2 changed files with 2 additions and 6 deletions

View file

@ -14,7 +14,7 @@ DIST = dist/
PREFIX ?= /usr/local
TARGET = treebird
MASTODONT_URL = https://git.nekobit.net/repos/mastodont-c.git
MASTODONT_URL = https://fossil.nekobit.net/mastodont-c
all: $(MASTODONT_DIR) dep_build $(TARGET)
apache: all apache_start
@ -116,8 +116,7 @@ $(PAGES_DIR)/emoji.chtml: $(PAGES_DIR)/emoji.html
./filec $< data_emoji_html > $@
$(MASTODONT_DIR):
git clone $(MASTODONT_URL) || true
@echo -e "\033[38;5;13mRun 'make update' to update mastodont-c\033[0m"
fossil clone $(MASTODONT_URL) || true
install: $(TARGET)
install -m 655 treebird $(PREFIX)/bin/
@ -133,9 +132,6 @@ apache_start:
dep_build:
make -C $(MASTODONT_DIR)
update:
git -C $(MASTODONT_DIR) pull
%.o: %.c %.h $(PAGES)
$(CC) $(CFLAGS) -c $< -o $@