]> kaliko git repositories - mpd-goodies.git/blobdiff - Makefile
Massive refactoring
[mpd-goodies.git] / Makefile
diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
index 6bf3dfc..0000000
--- a/Makefile
+++ /dev/null
@@ -1,52 +0,0 @@
-SHELL = /bin/sh
-PREFIX = /usr
-#DESTDIR = /tmp/mpd-goodies
-LIBDIR = $(DESTDIR)$(PREFIX)/lib
-BIN = $(DESTDIR)$(PREFIX)/bin
-ETC = $(DESTDIR)$(PREFIX)/etc
-DATADIR = $(DESTDIR)$(PREFIX)/share
-LOCALEDIR = $(DATADIR)/locale
-MANDIR = $(DATADIR)/man
-PKGNAME = mpd-goodies
-
-all: man bin
-#clean:
-#      rm -f mpd-goodies.1.gz
-
-mpd-goodies.1.gz:
-       cat data/mpd-goodies.1 | gzip > mpd-goodies.1.gz
-
-bash_completion:
-       install -d $(ETC)/bash_completion.d
-       install -m644 data/mpd-goodies.sh $(ETC)/bash_completion.d/
-       mv $(ETC)/bash_completion.d/mpd-goodies.sh $(ETC)/bash_completion.d/$(PKGNAME)
-
-man: mpd-goodies.1.gz
-
-install:
-       install -d $(BIN) $(DATADIR)/$(PKGNAME) #$(MANDIR)/man1
-
-       #install -m644 mpd-goodies.1.gz $(MANDIR)/man1
-
-       # listing all sub folder to install (prevent a remaining .svn directory to be install)
-       for sourcedir in `find src/ -name .svn -prune -o -type d -print | sed 's:src/::g'` ; do \
-               install -d $(DATADIR)/$(PKGNAME)/$$sourcedir; \
-               for sourcefile in `find src/$$sourcedir -maxdepth 1 -name *pyc -o -name .svn -prune -o -print` ; do \
-                       install -m644 $$sourcefile $(DATADIR)/$(PKGNAME)/$$sourcedir; \
-               done \
-       done
-       # listing all command in ./src
-       for command in `find src/ -maxdepth 1 -name .svn -prune -o -type f -print` ; do \
-               install -m 755 $$command $(DATADIR)/$(PKGNAME)/ ;\
-       done
-       for command in `find $(DATADIR)/$(PKGNAME)/ -maxdepth 1 -name .svn -prune -o -type f -print` ; do \
-               ln -sf $$command  $(BIN) ;\
-       done
-
-uninstall:
-       for command in `find $(DATADIR)/$(PKGNAME)/ -maxdepth 1 -name .svn -prune -o -type f -print` ; do \
-               rm -rf $(BIN)/$$(basename $$command) ;\
-       done
-       rm -f $(MANDIR)/man1/mpd-goodies.1.gz
-       rm -f $(ETC)/bash_completion.d/$(PKGNAME)
-       rm -rf $(DATADIR)/$(PKGNAME)