summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile19
-rwxr-xr-xsrc/configure6
2 files changed, 4 insertions, 21 deletions
diff --git a/src/Makefile b/src/Makefile
index 4046ec6..a1e4e9d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -104,11 +104,6 @@ INSTALL_TARGETS += install-man
REMOVE_TARGETS += remove-man
endif
-ifdef EXAMPLESDIR
-INSTALL_TARGETS += install-examples
-REMOVE_TARGETS += remove-examples
-endif
-
install: all $(INSTALL_TARGETS)
install-bin: $(EXECUTABLE)
@@ -116,16 +111,7 @@ install-bin: $(EXECUTABLE)
$(INSTALL) -m 755 $(EXECUTABLE) $(DESTDIR)$(BINDIR)
install-etc:
- $(INSTALL) -d $(DESTDIR)$(ETCDIR)/init.d/
- $(INSTALL) -m 755 ../contrib/initscript $(DESTDIR)$(ETCDIR)/init.d/$(EXECUTABLE)
- $(INSTALL) -d $(DESTDIR)$(ETCDIR)/default/
- $(INSTALL) -m 644 ../contrib/default $(DESTDIR)$(ETCDIR)/default/$(EXECUTABLE)
- @ echo "# $(EXECUTABLE) configuration file" > $(DESTDIR)$(ETCDIR)/$(EXECUTABLE).conf
- @ echo "# example configurations can be found at $(EXAMPLESDIR)/$(EXECUTABLE)" >> $(DESTDIR)$(ETCDIR)/$(EXECUTABLE).conf
-
-install-examples:
- $(INSTALL) -d $(DESTDIR)$(EXAMPLESDIR)/$(EXECUTABLE)
- $(INSTALL) -m 644 ../contrib/example.conf $(DESTDIR)$(EXAMPLESDIR)/$(EXECUTABLE)/
+ $(INSTALL) -d $(DESTDIR)$(ETCDIR)/rharchive/
install-man: manpage
$(INSTALL) -d $(DESTDIR)$(MANDIR)/man8/
@@ -141,9 +127,6 @@ remove-bin:
remove-etc:
rm -f $(DESTDIR)$(ETCDIR)/init.d/$(EXECUTABLE)
-remove-examples:
- rm -rf $(DESTDIR)$(EXAMPLESDIR)/$(EXECUTABLE)/
-
remove-man:
rm -f $(DESTDIR)$(MANDIR)/man8/$(EXECUTABLE).8
diff --git a/src/configure b/src/configure
index 1fa9232..ce0ec7f 100755
--- a/src/configure
+++ b/src/configure
@@ -98,7 +98,7 @@ LDFLAGS="$LDFLAGS $(pkg-config --libs gstreamer-0.10)"
rm -f include.mk
rm -f config.h
-case $TARGET in
+case $TARGET in
Linux)
;;
OpenBSD|FreeBSD|NetBSD|GNU/kFreeBSD)
@@ -125,7 +125,7 @@ fi
cat > include.mk <<EOF
# this file was created automatically
-# do not edit this file directly
+# do not edit this file directly
# use ./configure instead
TARGET := '$TARGET'
@@ -160,7 +160,7 @@ HOSTNAME=`hostname`
DATE=`date +"%d.%m.%Y %H:%M:%S %Z"`
cat > config.h <<EOF
-/*
+/*
* rharchive config header
*
* this file was created automatically