--- numptyphysics-0.4-git20132002/makefile.orig 2013-02-20 20:20:17.000000000 +0400 +++ numptyphysics-0.4-git20132002/makefile 2014-05-19 14:50:27.000000000 +0400 @@ -2,9 +2,10 @@ APP = numptyphysics DESTDIR ?= -PREFIX = /opt/numptyphysics +PREFIX = /usr +BASE_PATH = $(PREFIX)/share/$(APP)/data -CXXFLAGS += -DINSTALL_BASE_PATH=\"$(PREFIX)/data\" +CXXFLAGS += -DINSTALL_BASE_PATH=\"$(BASE_PATH)\" SOURCES = $(wildcard *.cpp) @@ -64,8 +65,8 @@ install -m 755 $(APP) $(DESTDIR)/$(PREFIX)/bin/ mkdir -p $(DESTDIR)/usr/share/applications install -m 644 $(APP).desktop $(DESTDIR)/usr/share/applications/ - mkdir -p $(DESTDIR)/$(PREFIX)/data - cp -rpv data/*.png data/*.ttf data/*.npz $(DESTDIR)/$(PREFIX)/data/ + mkdir -p $(DESTDIR)/$(BASE_PATH) + cp -rpv data/*.png data/*.ttf data/*.npz $(DESTDIR)/$(BASE_PATH)/ .PHONY: all clean distclean