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.
34 lines
1.1 KiB
34 lines
1.1 KiB
#
|
|
# Makefile
|
|
# Note the install script, it is not pretty, but it works.
|
|
#
|
|
|
|
SUBDIRS = common libslpattr slpd libslp slptool test
|
|
EXTRA_DIST = win32 doc etc README.W32 FAQ
|
|
DOC_DIR = $(prefix)/doc/openslp-$(VERSION)
|
|
|
|
install-data-local:
|
|
mkdir -p $(DESTDIR)$(sysconfdir)
|
|
file=$(DESTDIR)$(sysconfdir)/slp.reg; \
|
|
if [ -f $$file ]; then true; \
|
|
else cp -f $(srcdir)/etc/slp.reg $(DESTDIR)$(sysconfdir); \
|
|
fi
|
|
file=$(DESTDIR)$(sysconfdir)/slp.conf; \
|
|
if [ -f $$file ]; then true; \
|
|
else cp -f $(srcdir)/etc/slp.conf $(DESTDIR)$(sysconfdir);\
|
|
fi
|
|
file=$(DESTDIR)$(sysconfdir)/slp.spi; \
|
|
if [ -f $$file ]; then true; \
|
|
else cp -f $(srcdir)/etc/slp.spi $(DESTDIR)$(sysconfdir); \
|
|
fi
|
|
rm -rf $(DESTDIR)$(DOC_DIR)
|
|
mkdir -p $(DESTDIR)$(DOC_DIR)
|
|
cp -r $(srcdir)/doc/* $(DESTDIR)$(DOC_DIR)
|
|
rm -rf `find $(DESTDIR)$(DOC_DIR) -name CVS`
|
|
|
|
dist-hook:
|
|
-rm -rf `find $(distdir)/doc -name CVS`
|
|
-rm -rf `find $(distdir)/etc -name CVS`
|
|
-rm -rf `find $(distdir)/win32 -name CVS`
|
|
chmod -R og-w $(distdir)
|