MoinMoin acaro theme
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
845 B

PREFIX?= /var/www/moinwiki
UID?= 165
GID?= 165
NAME:= acaro
IMGDIR:= $(PREFIX)/static/$(NAME)/img
IMG!= ls img/*.png
CSSDIR:= $(PREFIX)/static/$(NAME)/css
CSS!= ls css/*.css
ifdef TEST
IMGDIR:= $(PREFIX)/../env/lib/python2.7/site-packages/MoinMoin/web/static/htdocs/$(NAME)/img
CSSDIR:= $(PREFIX)/../env/lib/python2.7/site-packages/MoinMoin/web/static/htdocs/$(NAME)/css
UID!= id -u
GID!= id -g
.PHONY: install
install -o $(UID) -g $(GID) -m 644 $(NAME).py $(PREFIX)/data/plugin/theme/
install -o $(UID) -g $(GID) -m 755 -d $(IMGDIR)
install -o $(UID) -g $(GID) -m 664 $(IMG) $(IMGDIR)
install -o $(UID) -g $(GID) -m 755 -d $(CSSDIR)
install -o $(UID) -g $(GID) -m 664 $(CSS) $(CSSDIR)
.PHONY: deinstall
rm -rf $(IMGDIR)
rm -rf $(CSSDIR)
rm -f $(PREFIX)/data/plugin/theme/$(NAME).py