18 lines
749 B
Makefile
Raw Normal View History

include ../Makefile.common
2014-08-27 15:12:56 +02:00
prefix=/usr
sysconfdir=/etc
apachedir=$(sysconfdir)/apache2/conf.d
unitdir=$(prefix)/lib/systemd/system
announcer_subpackage=factory-package-news
pkgdata_SCRIPTS=$(wildcard *.py *.pl *.sh)
2014-08-27 15:12:56 +02:00
install:
install -d -m 755 $(DESTDIR)$(pkgdatadir)/$(announcer_subpackage) $(DESTDIR)$(apachedir) $(DESTDIR)$(unitdir) $(DESTDIR)$(sysconfdir)/rsyslog.d
for i in $(pkgdata_SCRIPTS); do install -m 755 $$i $(DESTDIR)$(pkgdatadir)/$(announcer_subpackage); done
2014-08-27 15:12:56 +02:00
install -m 644 rsyslog/* $(DESTDIR)$(sysconfdir)/rsyslog.d
install -m 644 apache/factory-package-news.conf $(DESTDIR)$(apachedir)/factory-package-news.conf.in
ln -s $(pkgdatadir)/$(announcer_subpackage)/announcer.py $(DESTDIR)$(bindir)/osrt-announcer
2014-08-27 15:12:56 +02:00
.PHONY: install