Mercurial > pidgin
comparison libpurple/win32/targets.mak @ 21297:5b1acbab99cf
Make purple.h a generated file so plugins can just include this and never
worry about defining PURPLE_PLUGINS ever again (unless they build libpurple
without plugin support, which would be stupid)
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 10 Nov 2007 15:49:57 +0000 |
parents | daf98e539358 |
children | 008cfc009d0e |
comparison
equal
deleted
inserted
replaced
21296:8fe22cff1779 | 21297:5b1acbab99cf |
---|---|
5 # files for better handling of cross directory dependencies | 5 # files for better handling of cross directory dependencies |
6 # | 6 # |
7 | 7 |
8 $(PIDGIN_CONFIG_H): $(PIDGIN_CONFIG_H).mingw $(PIDGIN_TREE_TOP)/configure.ac | 8 $(PIDGIN_CONFIG_H): $(PIDGIN_CONFIG_H).mingw $(PIDGIN_TREE_TOP)/configure.ac |
9 sed -e 's/@VERSION@/$(PIDGIN_VERSION)/' $@.mingw > $@ | 9 sed -e 's/@VERSION@/$(PIDGIN_VERSION)/' $@.mingw > $@ |
10 | |
11 $(PURPLE_PURPLE_H): $(PURPLE_PURPLE_H).in | |
12 sed -e 's/@PLUGINS_DEFINE@/#define PURPLE_PLUGINS 1/; $@.in > $@ | |
10 | 13 |
11 $(PURPLE_VERSION_H): $(PURPLE_VERSION_H).in $(PIDGIN_TREE_TOP)/configure.ac | 14 $(PURPLE_VERSION_H): $(PURPLE_VERSION_H).in $(PIDGIN_TREE_TOP)/configure.ac |
12 cp $@.in $@ | 15 cp $@.in $@ |
13 awk 'BEGIN {FS="[\\(\\)\\[\\]]"} \ | 16 awk 'BEGIN {FS="[\\(\\)\\[\\]]"} \ |
14 /^m4_define..purple_major_version/ {system("sed -i -e s/@PURPLE_MAJOR_VERSION@/"$$5"/ $@");} \ | 17 /^m4_define..purple_major_version/ {system("sed -i -e s/@PURPLE_MAJOR_VERSION@/"$$5"/ $@");} \ |