aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-02 14:40:41 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-02 14:40:41 +0200
commitc9c88a878a73dff10435e8c2853aed4e5792f563 (patch)
treed0a7869a64a165e127e429d85a142530f86ce2a7 /Makefile
parentupdate dist (diff)
downloadpylibgamma-c9c88a878a73dff10435e8c2853aed4e5792f563.tar.gz
pylibgamma-c9c88a878a73dff10435e8c2853aed4e5792f563.tar.bz2
pylibgamma-c9c88a878a73dff10435e8c2853aed4e5792f563.tar.xz
fix makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile26
1 files changed, 12 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 7661c01..df1e521 100644
--- a/Makefile
+++ b/Makefile
@@ -139,23 +139,23 @@ install-lib: install-source install-compiled install-optimised install-native
.PHONY: install-source
install-source: $(foreach M,$(PYTHON_SRC),src/$(M).py)
- install -dm755 -- "$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma"
- install -m644 $^ -- "$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma"
+ install -dm755 -- "$(DESTDIR)$(PYTHONDIR)"
+ install -m644 $^ -- "$(DESTDIR)$(PYTHONDIR)"
.PHONY: install-compiled
install-compiled: $(foreach M,$(PYTHON_SRC),src/__pycache__/$(M).cpython-$(PY_VER).pyc)
- install -dm755 -- "$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma/__pycache__"
- install -m644 $^ -- "$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma/__pycache__"
+ install -dm755 -- "$(DESTDIR)$(PYTHONDIR)/__pycache__"
+ install -m644 $^ -- "$(DESTDIR)$(PYTHONDIR)/__pycache__"
.PHONY: install-optimised
install-optimised: $(foreach M,$(PYTHON_SRC),src/__pycache__/$(M).cpython-$(PY_VER).$(PY_OPT2_EXT))
- install -dm755 -- "$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma/__pycache__"
- install -m644 $^ -- "$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma/__pycache__"
+ install -dm755 -- "$(DESTDIR)$(PYTHONDIR)/__pycache__"
+ install -m644 $^ -- "$(DESTDIR)$(PYTHONDIR)/__pycache__"
.PHONY: install-native
install-native: $(foreach M,$(CYTHON_SRC),bin/$(M).so)
- install -dm755 -- "$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma"
- install -m755 $^ -- "$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma"
+ install -dm755 -- "$(DESTDIR)$(PYTHONDIR)"
+ install -m755 $^ -- "$(DESTDIR)$(PYTHONDIR)"
.PHONY: install-copyright
@@ -178,12 +178,10 @@ uninstall:
-rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE"
-rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING"
-rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)"
- -rm -- $(foreach M,$(PYTHON_SRC),"$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma/__pycache__/$(M).cpython-$(PY_VER).$(PY_OPT2_EXT)")
- -rm -- $(foreach M,$(PYTHON_SRC),"$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma/__pycache__/$(M).cpython-$(PY_VER).pyc")
- -rm -- $(foreach M,$(PYTHON_SRC),"$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma/$(M).py")
- -rm -- $(foreach M,$(CYTHON_SRC),"$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma/$(M).so")
- -rmdir -- "$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma/__pycache__"
- -rmdir -- "$(DESTDIR)$(PYTHONDIR)/site-packages/libgamma"
+ -rm -- $(foreach M,$(PYTHON_SRC),"$(DESTDIR)$(PYTHONDIR)/__pycache__/$(M).cpython-$(PY_VER).$(PY_OPT2_EXT)")
+ -rm -- $(foreach M,$(PYTHON_SRC),"$(DESTDIR)$(PYTHONDIR)/__pycache__/$(M).cpython-$(PY_VER).pyc")
+ -rm -- $(foreach M,$(PYTHON_SRC),"$(DESTDIR)$(PYTHONDIR)/$(M).py")
+ -rm -- $(foreach M,$(CYTHON_SRC),"$(DESTDIR)$(PYTHONDIR)/$(M).so")
.PHONY: clean