From: Enlightenment S. <no-...@en...> - 2011-01-15 11:46:45
|
Log: morlenxus wanted an install rule. Here it is. Do not forget to change the PREFIX value if you want to install it in a specific directory. By default, PREFIX is /usr/local Author: caro Date: 2011-01-15 03:46:38 -0800 (Sat, 15 Jan 2011) New Revision: 56130 Trac: http://trac.enlightenment.org/e/changeset/56130 Modified: trunk/GAMES/e-type/Makefile Modified: trunk/GAMES/e-type/Makefile =================================================================== --- trunk/GAMES/e-type/Makefile 2011-01-15 10:47:38 UTC (rev 56129) +++ trunk/GAMES/e-type/Makefile 2011-01-15 11:46:38 UTC (rev 56130) @@ -3,7 +3,10 @@ DIRNAME=etype TARNAME=$(BINARY).tar +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin + CC = gcc CPPFLAGS = `pkg-config --cflags edje ecore-evas` @@ -27,8 +30,13 @@ theme.edj: theme.edc @echo " Compilation of $(@D)/$(<F)" - $(EDJE_CC) $(EDJE_FLAGS) theme.edc theme.edj + @$(EDJE_CC) $(EDJE_FLAGS) theme.edc theme.edj +install: $(BINARY) theme.edj + @echo "installation of $(BINARY)" + @mkdir -p $(BINDIR) + @install -m 0755 $(BINARY) $(BINDIR) + clean: @rm -f *.o theme.edj *~ $(BINARY) |