2009-10-26 23:35:43 +03:00
|
|
|
|
2008-03-14 16:04:34 +03:00
|
|
|
VERS = hg$$(hg identify -n)
|
2009-10-26 23:35:43 +03:00
|
|
|
VERS = $$(test -n "$$WMII_HGVERSION" && echo $$WMII_HGVERSION || \
|
2010-06-14 18:30:23 +04:00
|
|
|
echo -n "hg$$(hg id -n 2>/dev/null)")
|
2009-10-26 23:35:43 +03:00
|
|
|
|
|
|
|
WMII_HGVERSION = $(VERS)
|
|
|
|
WMII_HGVERSION := $(shell echo $(VERS))
|
|
|
|
WMII_HGVERSION != echo $(VERS)
|
|
|
|
VERSION = $(WMII_HGVERSION)
|
2010-05-17 21:59:30 +04:00
|
|
|
COPYRIGHT = ©2010 Kris Maglione
|
2009-09-29 01:24:01 +04:00
|
|
|
|
2010-06-14 18:30:23 +04:00
|
|
|
CONFDIR = wmii-hg
|
|
|
|
LOCALCONF = ~/.$(CONFDIR)
|
|
|
|
GLOBALCONF = $(ETC)/$(CONFDIR)
|
|
|
|
|
2009-10-26 23:35:43 +03:00
|
|
|
.MAKE.EXPORTED += WMII_HGVERSION
|
|
|
|
SUBMAKE_EXPORT = WMII_HGVERSION=$(WMII_HGVERSION)
|
|
|
|
|
2010-05-22 06:52:47 +04:00
|
|
|
LIBS9 = $(ROOT)/lib/libstuff.a $(ROOT)/lib/libregexp9.a $(ROOT)/lib/libbio.a $(ROOT)/lib/libfmt.a $(ROOT)/lib/libutf.a
|
2009-10-26 00:05:55 +03:00
|
|
|
|
2009-09-29 01:24:01 +04:00
|
|
|
CFLAGS += '-DVERSION=\"$(VERSION)\"' '-DCOPYRIGHT=\"$(COPYRIGHT)\"' \
|
2010-06-14 18:30:23 +04:00
|
|
|
'-DCONFDIR=\"$(CONFDIR)\"' '-DCONFPREFIX=\"$(ETC)\"' \
|
2010-06-17 02:32:09 +04:00
|
|
|
'-DLOCALCONF=\"$(LOCALCONF)\"' '-DGLOBALCONF=\"$(GLOBALCONF)\"' \
|
2010-06-18 03:51:58 +04:00
|
|
|
-DIXP_NEEDAPI=129
|
2010-06-14 18:30:23 +04:00
|
|
|
|
2009-09-29 01:24:01 +04:00
|
|
|
FILTER = sed "s|@CONFPREFIX@|$(ETC)|g; \
|
2010-06-14 18:30:23 +04:00
|
|
|
s|@GLOBALCONF@|$(GLOBALCONF)|g; \
|
|
|
|
s|@LOCALCONF@|$(LOCALCONF)|g; \
|
|
|
|
s|@CONFDIR@|$(CONFDIR)|g; \
|
2009-09-29 04:09:38 +04:00
|
|
|
s|@DOCDIR@|$(DOC)|g; \
|
2010-06-12 07:48:29 +04:00
|
|
|
s|@ALTDOC@|$(DOC)/alternative_wmiircs|g; \
|
|
|
|
s|@EXAMPLES@|$(DOC)/examples|g; \
|
2009-10-10 00:20:23 +04:00
|
|
|
s|@VERSION@|$(VERSION)|g; \
|
2009-09-29 01:24:01 +04:00
|
|
|
s|@LIBDIR@|$(LIBDIR)|g; \
|
|
|
|
s|@BINSH@|$(BINSH)|g; \
|
2010-06-12 07:48:29 +04:00
|
|
|
s|@TERMINAL@|$(TERMINAL)|g; \
|
|
|
|
/^@@/d;"
|
2008-06-02 19:58:27 +04:00
|
|
|
|