moinmoin-acaro/Makefile

28 lines
782 B
Makefile

# This makefile must be compatible with both gmake and bmake. Keep it like that.
PREFIX?= /iocage/jails/moinmoin/root/var/moinmoin
UID?= 165
GID?= 165
NAME:= acaro
IMGDIR:= img
IMG!= ls $(IMGDIR)/*.png
CSSDIR:= css
CSS!= ls $(CSSDIR)/*.css
.PHONY: install
install:
install -o $(UID) -g $(GID) -m 644 $(NAME).py $(PREFIX)/data/plugin/theme/
install -o $(UID) -g $(GID) -m 664 -d $(PREFIX)/static/$(NAME)/$(IMGDIR)
install -o $(UID) -g $(GID) -m 664 $(IMG) $(PREFIX)/static/$(NAME)/$(IMGDIR)
install -o $(UID) -g $(GID) -m 664 -d $(PREFIX)/static/$(NAME)/$(CSSDIR)
install -o $(UID) -g $(GID) -m 664 $(CSS) $(PREFIX)/static/$(NAME)/$(CSSDIR)
.PHONY: deinstall
deinstall:
rm -rf $(PREFIX)/static/$(NAME)
rm -f $(PREFIX)/data/plugin/theme/$(NAME).py