X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=Makefile;h=30bbd371b194133a66af8420b9acf3d2b6c87ece;hp=9d09806535b585d561f9bdcef848e7cc8055b67e;hb=650e1806e4dac7309818266d2b9ea5acdcef9602;hpb=37d9de290ba279da745cc8d05a386610567ab7dd diff --git a/Makefile b/Makefile index 9d09806..30bbd37 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ rocks := $(rocks:%=data/rock%.png) graphics := data/ship.png data/icon.png data/life.png data/font.png $(rocks) INSTALL := install -INSTALL_PROGRAM := $(INSTALL) $(shell sh -c 'test "$$UID" "=" "0" && echo "-o games -g games"') +INSTALL_PROGRAM := $(INSTALL) INSTALL_DATA := $(INSTALL) -m 644 @@ -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 @@ -112,7 +110,7 @@ data-clean: mkinstalldirs: if [ ! -d $(DESTDIR)$(pkgdatadir) ]; then mkdir $(DESTDIR)$(pkgdatadir); fi -rminstalldirs: +rminstalldirs: uninstall-data if [ -d $(DESTDIR)$(pkgdatadir) ]; then rmdir $(DESTDIR)$(pkgdatadir); fi install: all mkinstalldirs install-program install-data @@ -120,7 +118,7 @@ install: all mkinstalldirs install-program install-data install-program: program $(INSTALL_PROGRAM) ./vor $(DESTDIR)$(bindir) -install-data: data +install-data: data mkinstalldirs $(INSTALL_DATA) ./data/*.png $(DESTDIR)$(pkgdatadir)/ $(INSTALL_DATA) ./data/*.wav $(DESTDIR)$(pkgdatadir)/ $(INSTALL_DATA) ./data/*.xm $(DESTDIR)$(pkgdatadir)/