X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=Makefile;h=c49be4bf2b1789593c00224ef3853abc2b44d458;hp=8b93708893107bc33cf9c325f0f509d3e1f6314d;hb=7bae366b111b90929813862ab38b42ff59170ca3;hpb=d37e411eab8059daba1fbd9a8a7a73686cb5fa8c diff --git a/Makefile b/Makefile index 8b93708..c49be4b 100644 --- a/Makefile +++ b/Makefile @@ -15,11 +15,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -prefix = /usr +prefix = /usr/local exec_prefix = $(prefix) -datadir = $(prefix)/share/games -pkgdatadir = $(datadir)/vor +datarootdir = $(prefix)/share/games +pkgdatadir = $(datarootdir)/vor bindir = $(exec_prefix)/games CFLAGS := -Wall -O3 @@ -64,8 +64,7 @@ data: $(graphics) program: vor %.o: %.c - @echo compiling $@ from $< - @$(CC) $(cflags) -c -o $@ $< + $(CC) $(cflags) -c -o $@ $< $(my_objects): config.h @@ -90,8 +89,7 @@ sound.o: sound.h args.h common.h sprite.o: sprite.h common.h vor: $(objects) - @echo linking $@ from $^ - @$(CC) $^ $(ldflags) -o $@ + $(CC) $^ $(ldflags) -o $@ include gfx.mk @@ -118,7 +116,7 @@ rminstalldirs: uninstall-data install: all mkinstalldirs install-program install-data install-program: program - $(INSTALL_PROGRAM) ./vor $(DESTDIR)$(bindir) + $(INSTALL_PROGRAM) ./vor $(DESTDIR)$(bindir)/ install-data: data mkinstalldirs $(INSTALL_DATA) ./data/*.png $(DESTDIR)$(pkgdatadir)/