From a91ab5aae34aa3c6c487d2e53dcde8ed940c0947 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 1 Aug 2013 02:23:19 +0200 Subject: oh, yeah, I did it that way MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 26db881..400be37 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ PY3VERSION = 3.3 LIBPY3 = $(PREFIX)$(LIB)/python$(PY3VERSION) LIBBASH = $(PREFIX)$(LIB) LIBJAVA = $(PREFIX)$(LIB) +LIBC = $(PREFIX)$(LIB) VERSION = 1.0 @@ -58,18 +59,18 @@ bin/argparser.so: src/argparser.c src/argparser.h install: install-python install-bash install-java install-c install-license install-python: bin/argparser.py - install -Dm644 bin/argparser.py "$(DESTDIR)$(PREFIX)$(LIBPY3)/argparser.py" + install -Dm644 bin/argparser.py "$(DESTDIR)$(LIBPY3)/argparser.py" install-bash: bin/argparser.bash - install -Dm644 bin/argparser.bash "$(DESTDIR)$(PREFIX)$(LIBBASH)/argparser.bash" + install -Dm644 bin/argparser.bash "$(DESTDIR)$(LIBBASH)/argparser.bash" install-java: bin/ArgParser.jar - install -Dm644 bin/ArgParser.jar "$(DESTDIR)$(PREFIX)$(LIBJAVA)/ArgParser.jar" + install -Dm644 bin/ArgParser.jar "$(DESTDIR)$(LIBJAVA)/ArgParser.jar" install-c: bin/argparser.so src/argparser.h - install -Dm644 bin/argparser.so "$(DESTDIR)$(LIB)/arggarser.so.$(VERSION)" - ln -s "argparser.so.$(VERSION)" "$(DESTDIR)$(LIB)/argparser.so" - install -Dm644 src/argparser.h "$(DESTDIR)$(INCLUDE)/argparser.h" + install -Dm644 bin/argparser.so "$(DESTDIR)$(LIBC)/arggarser.so.$(VERSION)" + ln -s "argparser.so.$(VERSION)" "$(DESTDIR)$(LIBC)/argparser.so" + install -Dm644 src/argparser.h "$(DESTDIR)$(PREFIX)$(INCLUDE)/argparser.h" install-license: install -d "$(DESTDIR)$(LICENSES)/$(PKGNAME)" @@ -80,17 +81,17 @@ install-license: uninstall: uninstall-python uninstall-bash uninstall-java uninstall-c uninstall-license uninstall-python: - rm -- "$(DESTDIR)$(PREFIX)$(LIBPY3)/argparser.py" + rm -- "$(DESTDIR)$(LIBPY3)/argparser.py" uninstall-bash: - rm -- "$(DESTDIR)$(PREFIX)$(LIBBASH)/argparser.bash" + rm -- "$(DESTDIR)$(LIBBASH)/argparser.bash" uninstall-java: - rm -- "$(DESTDIR)$(PREFIX)$(LIBJAVA)/ArgParser.jar" + rm -- "$(DESTDIR)$(LIBJAVA)/ArgParser.jar" uninstall-c: - rm -- "$(DESTDIR)$(PREFIX)$(LIB)/argparser.so" - rm -- "$(DESTDIR)$(PREFIX)$(LIB)/argparser.so.1.0" + rm -- "$(DESTDIR)$(LIBC)/argparser.so" + rm -- "$(DESTDIR)$(LIBC)/argparser.so.1.0" rm -- "$(DESTDIR)$(PREFIX)$(INCLUDE)/argparser.h" uninstall-license: -- cgit v1.2.3-70-g09d2