diff options
author | Samuel G. Fadel <samuelfadel@gmail.com> | 2013-03-09 21:34:52 -0300 |
---|---|---|
committer | Samuel G. Fadel <samuelfadel@gmail.com> | 2013-03-09 21:34:52 -0300 |
commit | a070dd2988908a307c4703e3290d656c1b3df3cb (patch) | |
tree | bbe6ea521d38be63905561f2d881d9733e7cb963 /Makefile | |
parent | 11942d1266298d14054f4952a8959e0703664cff (diff) |
Makefile: moved away from src/ and added a new target: dist
T.desktop: moved away from src/
PKGBUILD: updated with new version, sha1sum is wrong
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..77effa2 --- /dev/null +++ b/Makefile @@ -0,0 +1,40 @@ +PREFIX = /usr + +INCS = `pkg-config --cflags gtk+-2.0 vte` +LIBS = `pkg-config --libs gtk+-2.0 vte` +CFLAGS = -ansi -pedantic -Wall -O3 ${INCS} +LDFLAGS = -s ${LIBS} +VER = 0.7 +CC = cc + +SRC = src/T.c +OBJ = ${SRC:.c=.o} + +all: T + +.c.o: + @echo CC $< + @${CC} -c ${CFLAGS} -o $@ $< + +${OBJ}: src/config.h + +T: ${OBJ} + @echo CC -o $@ + @${CC} -o $@ ${OBJ} ${LDFLAGS} + +clean: + @echo cleaning + @rm -f T ${OBJ} T-${VER}.tar.bz2 + +dist: PKGBUILD + @echo creating distributable tarball + @mkdir T-${VER} + @cp -R src/ PKGBUILD T.desktop Makefile T-${VER} + @tar cf T-${VER}.tar.bz2 T-${VER} + @rm -rf T-${VER} + +install: all + @echo installing executable file in ${DESTDIR}${PREFIX}/bin + @install -D -m755 T ${DESTDIR}${PREFIX}/bin/T + @echo installing icon in ${DESTDIR}${PREFIX}/share/applications + @install -D -m644 T.desktop ${DESTDIR}${PREFIX}/share/applications/T.desktop |