moinmoin-acaro/Makefile

33 lines
845 B
Makefile
Raw Normal View History

2020-10-19 22:29:31 +02:00
PREFIX?= /var/www/moinwiki
2017-08-26 13:36:31 +02:00
UID?= 165
GID?= 165
NAME:= acaro
2017-08-26 19:24:17 +02:00
IMGDIR:= $(PREFIX)/static/$(NAME)/img
IMG!= ls img/*.png
2017-08-26 13:36:31 +02:00
2017-08-26 19:24:17 +02:00
CSSDIR:= $(PREFIX)/static/$(NAME)/css
CSS!= ls css/*.css
2017-08-26 13:36:31 +02:00
2020-10-19 22:02:52 +02:00
ifdef TEST
2017-08-26 19:24:17 +02:00
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
2020-10-19 22:02:52 +02:00
endif
2017-08-26 13:36:31 +02:00
.PHONY: install
install:
install -o $(UID) -g $(GID) -m 644 $(NAME).py $(PREFIX)/data/plugin/theme/
2017-08-26 19:24:17 +02:00
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)
2017-08-26 13:36:31 +02:00
.PHONY: deinstall
deinstall:
2017-08-26 19:24:17 +02:00
rm -rf $(IMGDIR)
rm -rf $(CSSDIR)
2017-08-26 13:36:31 +02:00
rm -f $(PREFIX)/data/plugin/theme/$(NAME).py