From febff16ed4736c9fcb4dc65c04f0260dc2fe2b33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Wed, 8 May 2013 20:54:06 +0200
Subject: [PATCH] Move sources into their own directory
---
.gitignore | 2 ++
Makefile | 8 ++++----
add-pronunciation.c => src/add-pronunciation.c | 0
sdcli.c => src/sdcli.c | 0
stardict.c => src/stardict.c | 0
stardict.h => src/stardict.h | 0
test-stardict.c => src/test-stardict.c | 0
7 files changed, 6 insertions(+), 4 deletions(-)
rename add-pronunciation.c => src/add-pronunciation.c (100%)
rename sdcli.c => src/sdcli.c (100%)
rename stardict.c => src/stardict.c (100%)
rename stardict.h => src/stardict.h (100%)
rename test-stardict.c => src/test-stardict.c (100%)
diff --git a/.gitignore b/.gitignore
index fee94d8..f4d000c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,8 @@
*.*~
# Compile output
/sdcli
+/add-pronunciation
+/test-stardict
*.o
# IDE project files
/sdcli.creator*
diff --git a/Makefile b/Makefile
index 41e69c1..ce20ed3 100644
--- a/Makefile
+++ b/Makefile
@@ -14,15 +14,15 @@ LDFLAGS = `pkg-config --libs $(pkgs)`
all: $(targets)
clean:
- rm -f $(targets) *.o
+ rm -f $(targets) src/*.o
-sdcli: sdcli.o stardict.o
+sdcli: src/sdcli.o src/stardict.o
$(CC) $^ -o $@ $(LDFLAGS)
-add-pronunciation: add-pronunciation.o stardict.o
+add-pronunciation: src/add-pronunciation.o src/stardict.o
$(CC) $^ -o $@ $(LDFLAGS)
-test-stardict: test-stardict.o stardict.o
+test-stardict: src/test-stardict.o src/stardict.o
$(CC) $^ -o $@ $(LDFLAGS)
test: $(tests)
diff --git a/add-pronunciation.c b/src/add-pronunciation.c
similarity index 100%
rename from add-pronunciation.c
rename to src/add-pronunciation.c
diff --git a/sdcli.c b/src/sdcli.c
similarity index 100%
rename from sdcli.c
rename to src/sdcli.c
diff --git a/stardict.c b/src/stardict.c
similarity index 100%
rename from stardict.c
rename to src/stardict.c
diff --git a/stardict.h b/src/stardict.h
similarity index 100%
rename from stardict.h
rename to src/stardict.h
diff --git a/test-stardict.c b/src/test-stardict.c
similarity index 100%
rename from test-stardict.c
rename to src/test-stardict.c