about summary refs log tree commit diff stats
path: root/docs
Commit message (Expand)AuthorAgeFilesLines
* Possibility to specify alternative config fileMichael Vetter2019-08-021-0/+3
* Update profanity repo URLMichael Vetter2019-05-031-2/+2
* Update profanity URL in manpageMichael Vetter2019-05-031-3/+3
* Update copyright yearskaffeekanne2019-04-241-2/+2
* Fix style and warnings - found with `mandoc -T lint`Raf Czlonka2018-10-201-4/+2
* Update copyrightJames Booth2018-01-211-1/+1
* Update CopyrightJames Booth2017-01-281-2/+2
* Updated man pageJames Booth2016-08-211-1/+1
* Updated GPL URLPete Maynard2016-07-211-1/+1
* Updated man page linkJames Booth2016-05-101-1/+1
* Updated copyrightJames Booth2016-02-141-1/+1
* Removed --disable-tls command line optionJames Booth2015-10-181-5/+1
* Updated man pageJames Booth2015-02-101-9/+13
* Updated copyrightJames Booth2015-02-101-2/+2
* Fixed wording in man pageJames Booth2015-01-121-1/+1
* Fixing typoAdam Dougal2015-01-121-1/+1
* Spelling errors fixed and hyphenation used as minus sign fixedDariusz Dwornikowski2014-08-111-3/+3
* Added -a (--account) option to man pageJames Booth2014-04-231-0/+3
* Updated man pageJames Booth2014-03-091-18/+3
* Updated man pageJames Booth2013-07-221-2/+8
* Added to man pageJames Booth2013-03-101-0/+2
* Updated man page with links to websiteJames Booth2012-12-301-121/+2
* Fixed config location in man pageJames Booth2012-11-251-2/+2
* Added theme files support with /theme commandJames Booth2012-11-211-12/+38
* Added more colour preferencesJames Booth2012-11-211-13/+22
* Correction in man pageJames Booth2012-10-271-1/+1
* Updated for release 0.1.9James Booth2012-10-241-2/+4
* Added Dmitry to contributors list in man pageJames Booth2012-10-211-0/+2
* Updated man pageJames Booth2012-10-141-0/+2
* Updated man pageJames Booth2012-09-231-0/+2
* Fixed duplication in man pageJames Booth2012-09-091-4/+0
* Moved homepage link on man pageJames Booth2012-08-221-6/+6
* Added some logging and updated man pageJames Booth2012-08-221-2/+34
* Added colours to man pageJames Booth2012-08-191-1/+3
* Added section to man pageJames Booth2012-08-191-0/+19
* Quotes in man pageJames Booth2012-08-191-1/+1
* Added manpageJames Booth2012-08-191-0/+104
or Josh Rickmar <jrick@devio.us> 2012-07-31 16:46:43 -0400 committer Josh Rickmar <jrick@devio.us> 2012-07-31 16:46:43 -0400 Implement an about:runtime page and :runtime command to view and' href='/novaburst/xombrero/commit/linux/Makefile?id=7d377d0d8dc75fc51040127dff495988f2b184af'>7d377d0 ^
77b17b2 ^
090d64a ^
904958c ^
44c460e ^





904958c ^



3aae639 ^
c869510 ^
77b17b2 ^

77296e1 ^
c869510 ^
77b17b2 ^




bc81e88 ^
3aae639 ^
0c240f7 ^
374f8c0 ^

904958c ^
3aae639 ^
77b17b2 ^

22d5a6e ^
77b17b2 ^





5639a6b ^


0c240f7 ^
3aae639 ^
0c240f7 ^
3aae639 ^
904958c ^
77b17b2 ^
207c361 ^
7d377d0 ^
904958c ^
44c460e ^


904958c ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108

                               

                                                                         



                                                                         
 


                               
                              

                             
                              

                                            


                                                                                              



                      
                                     
                            
                                 
 




                                   

        

                                                  
                                                

     
                                    
 
                                                                  

                                                                    
 




                                                          
                 
                                                    
 





                                                         



                                                  
                                             
                                             

                                                                        
                                                          
                                                              




                                                                 
                                                       
                                                       
                                                          

                                                             
 
          

                                                 
                                                                     





                                                     


                                                 
                                           
                                           
                                              
                                                                         
      
                                      
                          
                       
 


                
                         
GTK_VERSION?= gtk3
ifeq ("${GTK_VERSION}", "gtk2")
JS_CF=$(shell pkg-config --silence-errors --cflags javascriptcoregtk-1.0)
JS_LD=$(shell pkg-config --silence-errors --libs javascriptcoregtk-1.0)
else
JS_CF=$(shell pkg-config --silence-errors --cflags javascriptcoregtk-3.0)
JS_LD=$(shell pkg-config --silence-errors --libs javascriptcoregtk-3.0)
endif

LIBS= glib-2.0
ifeq ("${GTK_VERSION}", "gtk2")
LIBS+= gtk+-2.0 webkit-1.0
CFLAGS+=-I/usr/include/gtk-2.0
else
LIBS+= gtk+-3.0 webkitgtk-3.0
CFLAGS+=-I/usr/include/gtk-3.0
endif
LIBS+= libsoup-2.4 gthread-2.0 gnutls libbsd

CFLAGS+= -O2 -Wall -ggdb3 -D_GNU_SOURCE -I. -I.. $(shell pkg-config --cflags $(LIBS)) $(JS_CF)
LDADD+= $(shell pkg-config --libs $(LIBS)) $(JS_LD) -ldl -lgcrypt -lX11

PREFIX?= /usr/local
BINDIR?= $(PREFIX)/bin
LIBDIR?= $(PREFIX)/lib
APPDIR?= $(PREFIX)/share/applications
MANDIR?= $(PREFIX)/share/man
RESDIR?= $(PREFIX)/share/xombrero

SRCS= $(shell ls ../*.c)
SRCS+= linux.c
OBJS= $(SRCS:.c=.o)
DEPS= $(addsuffix .depend, $(OBJS))

CC?= gcc

BUILDVERSION= $(shell sh $(CURDIR)/../buildver.sh)
ifneq ("${BUILDVERSION}", "")
CFLAGS+= -DXOMBRERO_BUILDSTR=\"$(BUILDVERSION)\"
endif

all: javascript.h tooltip.h xombrero

javascript.h: ../js-merge-helper.pl ../hinting.js ../autoscroll.js
	perl ../js-merge-helper.pl ../hinting.js ../input-focus.js \
	../autoscroll.js > javascript.h

tooltip.h: ../ascii2txt.pl ../txt2tooltip.pl ../xombrero.1
	nroff -c -Tascii -mandoc ../xombrero.1 | \
	perl ../ascii2txt.pl | \
	perl ../txt2tooltip.pl > tooltip.h

xombrero: $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(LDADD)

%.o: %.c
	@echo "Generating $@.depend"
	@$(CC) -MM $(CPPFLAGS) $(CFLAGS) $< | \
	sed 's,^.*\.o[ :]*,$@ $@.depend : ,g' > $@.depend
	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<

install: all
	install -m 755 -d $(DESTDIR)$(BINDIR)
	install -m 755 -d $(DESTDIR)$(LIBDIR)
	install -m 755 -d $(DESTDIR)$(MANDIR)/man1
	install -m 755 -d $(DESTDIR)$(RESDIR)
	install -m 755 -d $(DESTDIR)$(APPDIR)
	install -m 755 xombrero $(DESTDIR)$(BINDIR)
	install -m 644 ../xombrero.1 $(DESTDIR)$(MANDIR)/man1/xombrero.1
	install -m 644 ../xombrero.css $(DESTDIR)$(RESDIR)
	install -m 644 ../xombrero.desktop $(DESTDIR)$(APPDIR)
	install -m 644 ../xombreroicon16.png $(DESTDIR)$(RESDIR)
	install -m 644 ../xombreroicon32.png $(DESTDIR)$(RESDIR)
	install -m 644 ../xombreroicon48.png $(DESTDIR)$(RESDIR)
	install -m 644 ../xombreroicon64.png $(DESTDIR)$(RESDIR)
	install -m 644 ../xombreroicon128.png $(DESTDIR)$(RESDIR)
	install -m 644 ../tld-rules $(DESTDIR)$(RESDIR)
	install -m 644 ../style.css $(DESTDIR)$(RESDIR)
	install -m 644 ../hsts-preload $(DESTDIR)$(RESDIR)
	install -m 644 ../torenabled.ico $(DESTDIR)$(RESDIR)
	install -m 644 ../tordisabled.ico $(DESTDIR)$(RESDIR)

uninstall:
	rm -f $(DESTDIR)$(BINDIR)/xombrero
	rm -f $(DESTDIR)$(MANDIR)/man1/xombrero.1
	rm -f $(DESTDIR)$(PREFIX)/share/applications/xombrero.desktop
	rm -f $(DESTDIR)$(RESDIR)/xombreroicon.png
	rm -f $(DESTDIR)$(RESDIR)/xombreroicon16.png
	rm -f $(DESTDIR)$(RESDIR)/xombreroicon32.png
	rm -f $(DESTDIR)$(RESDIR)/xombreroicon48.png
	rm -f $(DESTDIR)$(RESDIR)/xombreroicon64.png
	rm -f $(DESTDIR)$(RESDIR)/xombreroicon128.png
	rm -f $(DESTDIR)$(RESDIR)/xombrero.css
	rm -f $(DESTDIR)$(RESDIR)/tordisabled.ico
	rm -f $(DESTDIR)$(RESDIR)/torenabled.ico
	rm -f $(DESTDIR)$(RESDIR)/tld-rules
	rm -f $(DESTDIR)$(RESDIR)/style.css
	rm -f $(DESTDIR)$(RESDIR)/hsts-preload
	if [ -d $(DESTDIR)$(RESDIR) ]; then rmdir $(DESTDIR)$(RESDIR); fi
clean:
	rm -f xombrero $(OBJS) $(DEPS)
	rm -f javascript.h
	rm -f tooltip.h


-include $(DEPS)

.PHONY: all install clean