wmii.mk (1264B)
1 2 VERS = hg$$(hg identify -n) 3 VERS = $$(test -n "$$WMII_HGVERSION" && echo $$WMII_HGVERSION || \ 4 echo -n "hg$$(hg id -n 2>/dev/null)") 5 6 WMII_HGVERSION = $(VERS) 7 WMII_HGVERSION:= $(shell echo $(VERS)) 8 WMII_HGVERSION!= echo $(VERS) 9 10 VERSION = $(WMII_HGVERSION) 11 COPYRIGHT = ©2010 Kris Maglione 12 13 CONFDIR = wmii-hg 14 LOCALCONF = ~/.$(CONFDIR) 15 GLOBALCONF = $(ETC)/$(CONFDIR) 16 17 .MAKE.EXPORTED += WMII_HGVERSION 18 SUBMAKE_EXPORT = WMII_HGVERSION=$(WMII_HGVERSION) 19 20 LIBS9 = $(ROOT)/lib/libstuff.a $(ROOT)/lib/libregexp9.a $(ROOT)/lib/libbio.a $(ROOT)/lib/libfmt.a $(ROOT)/lib/libutf.a 21 22 CFLAGS += '-DVERSION=\"$(VERSION)\"' '-DCOPYRIGHT=\"$(COPYRIGHT)\"' \ 23 '-DCONFDIR=\"$(CONFDIR)\"' '-DCONFPREFIX=\"$(ETC)\"' \ 24 '-DLOCALCONF=\"$(LOCALCONF)\"' '-DGLOBALCONF=\"$(GLOBALCONF)\"' \ 25 -DIXP_NEEDAPI=129 26 27 FILTER = sed "s|@ALTDOC@|$(DOC)/alternative_wmiircs|g; \ 28 s|@BINSH@|$(BINSH)|g; \ 29 s|@CONFDIR@|$(CONFDIR)|g; \ 30 s|@CONFPREFIX@|$(ETC)|g; \ 31 s|@DOCDIR@|$(DOC)|g; \ 32 s|@EXAMPLES@|$(DOC)/examples|g; \ 33 s|@GLOBALCONF@|$(GLOBALCONF)|g; \ 34 s|@LIBDIR@|$(LIBDIR)|g; \ 35 s|@LOCALCONF@|$(LOCALCONF)|g; \ 36 s|@PYTHON@|$(PYTHON)|g; \ 37 s|@TERMINAL@|$(TERMINAL)|g; \ 38 s|@VERSION@|$(VERSION)|g; \ 39 /^@@/d;" 40