aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel G. Fadel <samuelfadel@gmail.com>2013-03-09 21:34:52 -0300
committerSamuel G. Fadel <samuelfadel@gmail.com>2013-03-09 21:34:52 -0300
commita070dd2988908a307c4703e3290d656c1b3df3cb (patch)
treebbe6ea521d38be63905561f2d881d9733e7cb963
parent11942d1266298d14054f4952a8959e0703664cff (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
-rw-r--r--Makefile (renamed from src/Makefile)20
-rw-r--r--PKGBUILD2
-rw-r--r--T.desktop (renamed from src/T.desktop)0
3 files changed, 15 insertions, 7 deletions
diff --git a/src/Makefile b/Makefile
index 64da6b3..77effa2 100644
--- a/src/Makefile
+++ b/Makefile
@@ -4,18 +4,19 @@ 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 = T.c
+SRC = src/T.c
OBJ = ${SRC:.c=.o}
all: T
.c.o:
@echo CC $<
- @${CC} -c ${CFLAGS} $<
+ @${CC} -c ${CFLAGS} -o $@ $<
-${OBJ}: config.h
+${OBJ}: src/config.h
T: ${OBJ}
@echo CC -o $@
@@ -23,10 +24,17 @@ T: ${OBJ}
clean:
@echo cleaning
- @rm -rf T ${OBJ}
+ @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 to ${DESTDIR}${PREFIX}/bin
+ @echo installing executable file in ${DESTDIR}${PREFIX}/bin
@install -D -m755 T ${DESTDIR}${PREFIX}/bin/T
- @echo installing icon to ${DESTDIR}${PREFIX}/share/applications
+ @echo installing icon in ${DESTDIR}${PREFIX}/share/applications
@install -D -m644 T.desktop ${DESTDIR}${PREFIX}/share/applications/T.desktop
diff --git a/PKGBUILD b/PKGBUILD
index e63270c..da55dde 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Samuel Fadel <samuelfadel at DOMAIN> (DOMAIN is gmail dot com)
pkgname=T
-pkgver=0.6
+pkgver=0.7
pkgrel=1
pkgdesc="Lean Terminal emulator"
arch=('i686' 'x86_64')
diff --git a/src/T.desktop b/T.desktop
index cfdd139..cfdd139 100644
--- a/src/T.desktop
+++ b/T.desktop