build:

install:
	install -o root -g root -m 755 -d \
	  $(DESTDIR)/etc/apache2/piny/www \
	  $(DESTDIR)/etc/apache2/piny/secure \
	  $(DESTDIR)/etc/apache2/piny/global \
	  $(DESTDIR)/etc/apache2/sites-available \
	  $(DESTDIR)/etc/apache2/conf-available \
	  $(DESTDIR)/etc/cron.weekly \
	  $(DESTDIR)/etc/ikiwiki/wikilist.d \
	  $(DESTDIR)/etc/sudoers.d \
	  $(DESTDIR)/srv/git
	install -o root -g root -m 644 etc/cgitrc etc/piny-default.conf etc/piny-override.conf $(DESTDIR)/etc
	install -o root -g root -m 644 etc/apache2/envvars $(DESTDIR)/etc/apache2
	install -o root -g root -m 644 etc/apache2/sites-available/piny.conf $(DESTDIR)/etc/apache2/sites-available
	install -o root -g root -m 644 etc/apache2/conf-available/piny.conf $(DESTDIR)/etc/apache2/conf-available
	install -o root -g root -m 755 etc/cron.weekly/piny $(DESTDIR)/etc/cron.weekly
	install -o root -g root -m 600 etc/sudoers.d/pinyadmin $(DESTDIR)/etc/sudoers.d

clean: