Skip to content
Snippets Groups Projects
Commit 1181aff4 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

make 'make distcheck' happier

parent a4d9ae4f
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@ bin_SCRIPTS = account-manager.pl
www_SCRIPTS = account-manager.cgi
CLEANFILES = $(bin_SCRIPTS) $(www_SCRIPTS)
EXTRA_DIST = account-manager.pl.in account-manager.cgi.in
account-manager.pl: Makefile account-manager.pl.in
......
noinst_DATA = manager.conf
CLEANFILES = $(noinst_DATA)
EXTRA_DIST = manager.conf.in
manager.conf: Makefile manager.conf.in
......@@ -9,10 +11,13 @@ manager.conf: Makefile manager.conf.in
< $(srcdir)/$@.in > $@
chmod +x $@
install-data-local:
if [ -f $(DESTDIR)$(sysconfdir)/manager.conf ]; then \
$(INSTALL_DATA) $(srcdir)/manager.conf $(DESTDIR)$(sysconfdir)/manager.conf.new; \
else \
$(INSTALL_DATA) $(srcdir)/manager.conf $(DESTDIR)$(sysconfdir)/manager.conf; \
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
if [ -f $(DESTDIR)$(sysconfdir)/manager.conf ]; then \
$(INSTALL_DATA) manager.conf $(DESTDIR)$(sysconfdir)/manager.conf.new; \
else \
$(INSTALL_DATA) manager.conf $(DESTDIR)$(sysconfdir)/manager.conf; \
fi
uninstall-local:
rm -f $(DESTDIR)$(sysconfdir)/manager.conf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment