equal
deleted
inserted
replaced
3 VALAC = valac |
3 VALAC = valac |
4 LIBS := gee-1.0 loudmouth-1.0 |
4 LIBS := gee-1.0 loudmouth-1.0 |
5 VALAONLYLIBS := posix |
5 VALAONLYLIBS := posix |
6 VALALIBS := $(patsubst %, --pkg %, $(LIBS) $(VALAONLYLIBS)) |
6 VALALIBS := $(patsubst %, --pkg %, $(LIBS) $(VALAONLYLIBS)) |
7 VFLAGS = -g |
7 VFLAGS = -g |
|
8 SOURCES = iswydt.vala config.vala simple_iq.vala muc.vala muc_log.vala muc_commands.vala version.vala |
8 |
9 |
9 iswydt-bot: iswydt.vala config.vala muc.vala muc_log.vala |
10 version.vala: . |
|
11 echo "static const string IswydtVersion = \"$$(hg id -bnit)\";" > version.vala |
|
12 iswydt-bot: $(SOURCES) |
10 $(VALAC) $(VFLAGS) $(VALALIBS) -o $@ $^ |
13 $(VALAC) $(VFLAGS) $(VALALIBS) -o $@ $^ |
11 |
14 |
12 cfiles: iswydt.vala config.vala muc.vala muc_log.vala |
15 cfiles: $(SOURCES) |
13 $(VALAC) $(VFLAGS) $(VALALIBS) -C $^ |
16 $(VALAC) $(VFLAGS) $(VALALIBS) -C $^ |
14 mkdir -p cfiles |
17 mkdir -p cfiles |
15 mv *.c cfiles/ |
18 mv *.c cfiles/ |
16 cd cfiles |
19 cd cfiles |
17 echo 'LIBS := `pkg-config --libs $(LIBS)`' > cfiles/Makefile |
20 echo 'LIBS := `pkg-config --libs $(LIBS)`' > cfiles/Makefile |