1 # Note: Makefile is built automatically from Makefile.in
3 # $Id: GNUmakefile.in,v 1.159 2008/03/21 11:13:53 fabiankeil Exp $
5 # Written by and Copyright (C) 2001 - 2007 the SourceForge
6 # Privoxy team. http://www.privoxy.org/
8 # Based on the Internet Junkbuster originally written
9 # by and Copyright (C) 1997 Anonymous Coders and
10 # Junkbusters Corporation. http://www.junkbusters.com
12 # This program is free software; you can redistribute it
13 # and/or modify it under the terms of the GNU General
14 # Public License as published by the Free Software
15 # Foundation; either version 2 of the License, or (at
16 # your option) any later version.
18 # This program is distributed in the hope that it will
19 # be useful, but WITHOUT ANY WARRANTY; without even the
20 # implied warranty of MERCHANTABILITY or FITNESS FOR A
21 # PARTICULAR PURPOSE. See the GNU General Public
22 # License for more details.
24 # The GNU General Public License should be included with
25 # this file. If not, you can view it at
26 # http://www.gnu.org/copyleft/gpl.html
27 # or write to the Free Software Foundation, Inc., 59
28 # Temple Place - Suite 330, Boston, MA 02111-1307, USA.
31 #############################################################################
32 # Set make command correctly
33 #############################################################################
36 #############################################################################
37 # Version number (for RPM)
38 #############################################################################
40 VERSION_MAJOR = @VERSION_MAJOR@
41 VERSION_MINOR = @VERSION_MINOR@
42 VERSION_POINT = @VERSION_POINT@
43 CODE_STATUS = @CODE_STATUS@
44 VERSION = $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_POINT)
45 RPM_VERSION = $(VERSION)
47 SNAPVERSION = $(RPM_VERSION)-$(shell date "+%Y%m%d")
50 #############################################################################
51 # "make install" directories and variables
52 #############################################################################
59 exec_prefix = @exec_prefix@
60 CONF_BASE = @sysconfdir@
63 MAN_DEST = $(MAN_DIR)/man1
64 SHARE_DEST = @datadir@
65 DOC_DEST = $(SHARE_DEST)/doc/privoxy
66 VAR_DEST = @localstatedir@
67 LOGS_DEST = $(VAR_DEST)/log/privoxy
68 PIDS_DEST = $(VAR_DEST)/run
70 # if $prefix = /usr/local then the default CONFDEST change from
71 # CONF_DEST = $(CONF_BASE) to CONF_DEST = $(CONF_BASE)/privoxy
72 # by the target rule CONF_DEST
74 # also if the $prefix is /usr/local and there is no
75 # $(SHARE_DEST)/doc, it checks for $prefix/doc and installs there
76 # instead in this situation
78 # finally if $prefix=/usr/local and VAR_DEST=$prefix/var it
79 # changes this to /var for storing the logs and pidfile
81 # used in source dir only, the install goes to $share_dest/doc/privoxy
82 DOK_WEB = doc/webserver/
84 # Install usage should be compatible with install-sh.
88 # Support files, docs, etc.
92 # Files daemon writes to.
94 INSTALL_P = -m $(BIN_MODE)
95 INSTALL_T = -m $(RA_MODE)
96 INSTALL_D = -m $(DIR_MODE) -d
97 INSTALL_R = -m $(RWD_MODE)
99 # install options for superuser install
100 #INSTALL_S = -g @GROUP@ -o @USER@
102 #############################################################################
104 #############################################################################
106 PROGRAM = privoxy@EXEEXT@
111 # id -u is not universal. FIXME: need to set from configure. Breaks on
119 MKDIR = ./mkinstalldirs
135 WDUMP = @WDUMP@ -dump
138 DB = $(JADEBIN) $(JADECAT) -ihtml -t sgml -D.. -d ldp.dsl\#html
140 MAN2HTML = @MAN2HTML@
141 G2H_CMD = groff -mandoc -Thtml
145 DOC_TMP = $(DOC_DIR)/tmp
146 DOC_STATUS = @DOC_STATUS@
148 # Program to do LF->CRLF
150 # The sed version should be the most portable, but it doesn't for for me,
151 # the other two do. FIXME.
153 #DOSFILTER = $(SED) -e $$'s,$$,\r,'
154 #DOSFILTER = gawk -v ORS='\r\n' '{print $0;}'
155 DOSFILTER = $(PERL) -p -e 's/\n/\r\n/'
156 CVSROOT = :pserver:anonymous@ijbswa.cvs.sourceforge.net:/cvsroot/ijbswa
157 #TMPDIR := $(shell mktemp -d /tmp/$(PROGRAM).XXXXXX)
159 #############################################################################
160 # Setup for make distribution rh and suse for now
161 #############################################################################
163 TAR_ARCH = /tmp/privoxy-$(RPM_VERSION).tar.gz
164 RPM_BASE = @RPM_BASE@
166 #############################################################################
167 # We include these files in our distributions
168 #############################################################################
169 CONFIGS = config trust default.action standard.action user.action default.filter user.filter
170 # take care that no CVS .cvsignore or other crappy files
172 # and escape every '#' in the find. doh.
173 CONFIG_FILES = $(CONFIGS) \
174 `find templates/ -type f | grep -v "CVS" | grep -v "\.\#" | grep -v ".*~" | grep -v ".cvsignore" | grep -v "TAGS"`
176 DOC_FILES = AUTHORS LICENSE README ChangeLog INSTALL \
177 `find doc/text/ -type f | grep -v "CVS" | grep -v "\.\#" | grep -v ".*~" | grep -v ".cvsignore" | grep -v "TAGS"` \
178 `find doc/webserver/ -name "*.html" | grep -v "\(webserver\|team\)\/index\.html"` \
179 `find doc/webserver/ -name "*.css"` \
183 #############################################################################
184 # Filenames and libraries
185 #############################################################################
187 C_SRC = actions.c cgi.c cgiedit.c cgisimple.c deanimate.c encode.c \
188 errlog.c filters.c gateway.c jbsockets.c jcc.c \
189 list.c loadcfg.c loaders.c miscutil.c parsers.c ssplit.c \
192 C_OBJS = $(C_SRC:.c=.@OBJEXT@)
193 C_HDRS = $(C_SRC:.c=.h) project.h actionlist.h
195 W32_SRC = @WIN_ONLY@w32log.c w32taskbar.c win32.c w32svrapi.c
196 W32_FILES = @WIN_ONLY@w32.res
197 W32_OBJS = @WIN_ONLY@$(W32_SRC:.c=.@OBJEXT@) $(W32_FILES)
198 W32_HDRS = @WIN_ONLY@w32log.h w32taskbar.h win32.h w32res.h w32svrapi.h
199 W32_LIB = @WIN_ONLY@-lwsock32 -lcomctl32
200 W32_INIS = @WIN_ONLY@config.txt trust.txt
202 PCRS_SRC = @STATIC_PCRS_ONLY@pcrs.c
203 PCRS_OBJS = @STATIC_PCRS_ONLY@$(PCRS_SRC:.c=.@OBJEXT@)
204 PCRS_HDRS = @STATIC_PCRS_ONLY@$(PCRS_SRC:.c=.h)
206 PCRE_SRC = @STATIC_PCRE_ONLY@pcre/get.c pcre/maketables.c pcre/study.c pcre/pcre.c
207 PCRE_OBJS = @STATIC_PCRE_ONLY@$(PCRE_SRC:.c=.@OBJEXT@)
208 PCRE_HDRS = @STATIC_PCRE_ONLY@pcre/config.h pcre/chartables.c pcre/internal.h pcre/pcre.h
210 # No REGEX (maybe because dynamically linked pcreposix):
212 @STATIC_PCRE_ONLY@REGEX_SRC = pcre/pcreposix.c
214 REGEX_OBJS = $(REGEX_SRC:.c=.@OBJEXT@)
215 REGEX_HDRS = $(REGEX_SRC:.c=.h)
217 # Dependencies introduced by #include "project.h".
218 PROJECT_H_DEPS = project.h $(REGEX_HDRS) $(PCRS_HDRS) @STATIC_PCRE_ONLY@pcre/pcre.h
220 # Socket libraries for platforms that need them explicitly defined
221 SOCKET_LIB = @SOCKET_LIB@
223 # PThreads library, if needed.
224 PTHREAD_LIB = @PTHREAD_ONLY@@PTHREAD_LIB@
226 SRCS = $(C_SRC) $(W32_SRC) $(PCRS_SRC) $(PCRE_SRC) $(REGEX_SRC)
227 OBJS = $(C_OBJS) $(W32_OBJS) $(PCRS_OBJS) $(PCRE_OBJS) $(REGEX_OBJS)
228 HDRS = $(C_HDRS) $(W32_HDRS) $(PCRS_HDRS) $(PCRE_OBJS) $(REGEX_HDRS)
229 LIBS = @LIBS@ $(W32_LIB) $(SOCKET_LIB) $(PTHREAD_LIB)
232 #############################################################################
234 #############################################################################
236 # The flag "-mno-win32" can be used by Cygwin to emulate a un?x type build.
237 # The flag "-mwindows -mno-cygwin" will cause Cygwin to use MingW32 for a
239 # The flag "-pthread" is required if using Pthreads under Linux (and
240 # possibly other OSs).
241 SPECIAL_CFLAGS = @SPECIAL_CFLAGS@
243 # Add your flags here
246 CFLAGS = @CFLAGS@ @CPPFLAGS@ $(OTHER_CFLAGS) $(SPECIAL_CFLAGS) -Wall \
247 @STATIC_PCRE_ONLY@ -Ipcre
249 LDFLAGS = @LDFLAGS@ $(DEBUG_CFLAGS) $(SPECIAL_CFLAGS)
252 #############################################################################
255 # There should NOT be any targets above this line.
256 #############################################################################
257 all: $(PROGRAM) default.action
260 #############################################################################
262 #############################################################################
263 .PHONY: all inifiles redhat-dist redhat-upload solaris-dist suse-dist \
264 suse-upload win-dist tarball-dist dok redhat-dok webserver clean clobber tags \
265 install conectiva-spec conectiva-dist conectiva-upload CONF_DEST LOG_DEST \
266 PID_DEST check_doc install-strip uninstall GROUP_T
268 #############################################################################
269 # Define this explicitly because Solaris is broken!
270 #############################################################################
272 $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
275 #############################################################################
276 # Strip master copy comments from default.action:
277 #############################################################################
278 default.action: default.action.master
279 $(GREP) -v '^#MASTER#' $< > $@
281 #############################################################################
283 #############################################################################
285 inifiles: $(W32_INIS)
288 $(SED) -e 's!\trustfile trust!trustfile trust.txt!' \
289 -e 's!\jarfile jarfile!jarfile jar.log!' \
290 -e 's!\logfile logfile!logfile privoxy.log!' \
291 -e 's!#Win32-only: !!' \
294 # LF to CRLF in default.action
295 $(DOSFILTER) <default.action >default.action.txt && mv default.action.txt default.action
296 # LF to CRLF in default.filter
297 $(DOSFILTER) <default.filter >default.filter.txt && mv default.filter.txt default.filter
300 $(DOSFILTER) < $< > $@
302 #############################################################################
304 #############################################################################
306 @if [ -d CVS ]; then \
307 $(ECHO) "***************************************************"; \
309 $(ECHO) "*** WARNING ***"; \
311 $(ECHO) "*** The presence of a CVS subdirectory suggests ***"; \
312 $(ECHO) "*** that you are trying to build a distribution ***"; \
313 $(ECHO) "*** package based on a checked out, not an ***"; \
314 $(ECHO) "*** exported copy of the source tree. Please ***"; \
315 $(ECHO) "*** see \"Releasing a new version\" in the ***"; \
316 $(ECHO) "*** developer manual. ***"; \
318 $(ECHO) "***************************************************"; \
319 $(ECHO) "Type \"yes i am sure\" if you are sure that you"; \
320 $(ECHO) -n "really want to proceed: "; \
322 if [ "$$answer" != "yes i am sure" ]; then exit 1; fi \
326 #############################################################################
327 # create tar.gz from CVS:
328 # This make-target is usually called through 'create-archive'. If you
329 # run 'make create-snapshot' without setting SNAPVERSION, you'll get a
330 # tar.gz with the current date in the name and as a releasenumber in the
331 # spec-file. But the main usage is to run it as follows (Red Hat example):
332 # make SNAPVERSION=1.6x create-snapshot
333 # This creates a tar.gz and spec-file for a Red Hat 6.x version.
334 #############################################################################
336 @tag=`cvs -d $(CVSROOT) status Makefile | awk ' /Sticky Tag/ { print $$3 } '` 2> /dev/null; \
337 [ x"$$tag" = x"(none)" ] && tag=HEAD; \
338 echo "*** Creating package from $$tag!"; \
339 TMPDIR=$(shell mktemp -d /tmp/$(PROGRAM).XXXXXX); \
340 cd $$TMPDIR ; cvs -Q -d $(CVSROOT) export -r $$tag current || echo "Um... export aborted."; \
341 cd $$TMPDIR/current; \
342 TMPFILE=$$(mktemp -q /tmp/$(PROGRAM).XXXXXX); \
343 if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \
344 -e 's/^\(Release:\).*/\1 $(SNAPVERSION)/g' \
345 privoxy-rh.spec > $$TMPFILE ; then \
346 $(MV) -f $$TMPFILE privoxy-rh.spec; \
348 $(ECHO) "Could not set version info in specfile."; \
351 if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \
352 -e 's/^\(Release:\).*/\1 $(SNAPVERSION)/g' \
353 privoxy-suse.spec > $$TMPFILE ; then \
354 $(MV) -f $$TMPFILE privoxy-suse.spec; \
356 $(ECHO) "Could not set version info in specfile."; \
360 cd $$TMPDIR/current; \
361 $(TAR) --exclude ".cvsignore" --exclude "CVS" \
362 -czf /tmp/$(PROGRAM)-$(VERSION).tar.gz .; \
364 @echo "Resulting file is /tmp/$(PROGRAM)-$(VERSION).tar.gz"
367 #############################################################################
368 # looks at the version of Makefile and exports a corresponding source-tree
369 # example: if the Makefile has the sticky tag v_2_9_13, you'll get
370 # privoxy-*-2.4.13.tar.gz. Two different tar files will be written, one for
371 # Red Hat and one for SuSe (different spec-files)
372 #############################################################################
374 make SNAPVERSION=$(SNAPVERSION) create-snapshot
376 #############################################################################
377 # RPM specifice stuff (SuSE or Redhat, ..)
378 #############################################################################
379 rpm-stuff: dist-check clean clobber
380 for dir in RPMS SRPMS BUILD SOURCES SPECS; do \
381 if [ ! -w $(RPM_BASE)/$$dir ]; then \
382 $(ECHO) "$(RPM_BASE)/$$dir is not writable for you. Maybe try as root."; \
383 $(ECHO) "Or add a suitable path to .rpmmacros like."; \
384 $(ECHO) "%_topdir /home/foo/rpm-build"; \
390 @if [ "$(RPM_PACKAGEV)" = "" ]; then \
392 echo " ERROR: NO RPM_PACKAGEV VALUE"; \
393 echo " No value given for RPM_PACKAGEV. Please use:"; \
394 echo " make dist-upload RPM_PACKAGEV=release"; \
395 echo " where \"release\" is the release number you want to and"; \
396 echo " where \"dist\" is the name of the distro (redhat or suse)"; \
398 echo " Ex: make redhat-upload RPM_PACKAGEV=1"; \
400 echo "ATTENTION: If your distribution use a specific tag on the"; \
401 echo " release field (like \"cl\" for Conectiva, and"; \
402 echo " \"mdk\" for Mandrake), DO NOT put it on the value"; \
403 echo " given to RPM_PACKAGEV. It will be added automaticaly."; \
404 echo " Do it like you would do for a redhat package,"; \
405 echo " (i.e. just the number)."; \
411 #############################################################################
412 # Create Conectiva specfile from RedHat specfile
413 #############################################################################
415 $(RM) privoxy-cl.spec
416 chmod a+x genclspec.sh
419 #############################################################################
420 # Conectiva distribution for x86
421 #############################################################################
422 conectiva-dist: rpm-stuff conectiva-spec
424 $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude "privoxy-suse.spec" --exclude "privoxy-rh.spec" --exclude "PACKAGERS" -czf $(TAR_ARCH) .
425 $(RPMBUILD) --clean -ta $(TAR_ARCH)
426 if [ -f $(TAR_ARCH) ]; then $(RM) $(TAR_ARCH); fi
428 conectiva-upload: check-release
429 make redhat-upload RPM_PACKAGEV=$(RPM_PACKAGEV)cl
431 #############################################################################
432 # redhat distribution alpha and x86
433 #############################################################################
434 redhat-dist: rpm-stuff
436 $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude "privoxy-suse.spec" --exclude "privoxy-cl.spec" --exclude "PACKAGERS" -czf $(TAR_ARCH) .
437 $(RPMBUILD) --clean -ta $(TAR_ARCH)
438 if [ -f $(TAR_ARCH) ]; then $(RM) $(TAR_ARCH); fi
440 # For testing build issues only! Use redhat-dist for official releases.
443 $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude "privoxy-suse.spec" --exclude "privoxy-cl.spec" --exclude "PACKAGERS" -czf $(TAR_ARCH) .
444 $(RPMBUILD) --clean -tb $(TAR_ARCH)
445 if [ -f $(TAR_ARCH) ]; then $(RM) $(TAR_ARCH); fi
446 @echo "WARNING: This target is only for testing. Use redhat-dist for releases!!!"
448 # anonymously ncftps the rpms to sourceforge
449 redhat-upload: check-release
450 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/SRPMS/privoxy-$(RPM_VERSION)-$(RPM_PACKAGEV).src.rpm
451 # better should use `arch` here instead of ix86 to support other platforms too
452 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/RPMS/*/privoxy-$(RPM_VERSION)-$(RPM_PACKAGEV).*.rpm
453 @$(ECHO) -------------------------------------------------------
455 @$(ECHO) http://sourceforge.net/project/admin/editpackages.php?group_id=11118
456 @$(ECHO) ... and release the files.
457 @$(ECHO) -------------------------------------------------------
458 # w3m http://sourceforge.net/project/admin/editpackages.php?group_id=11118
461 #############################################################################
462 # Creates a Red Hat sourcepackage from CVS (not from the current sources
464 #############################################################################
467 $(RPMBUILD) -ts --nodeps $(PROGRAM)-$(VERSION).tar.gz
470 #############################################################################
471 # suse distribution. works fine. no need to be root.
472 #############################################################################
474 # TMPFILE=$$(mktemp -q /tmp/$(PROGRAM).XXXXXX); \
475 # if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \
476 # -e 's/^\(Release:\).*/\1 $(RPM_PACKAGEV)/g' \
477 # privoxy-suse.spec > $$TMPFILE ; then \
478 # $(MV) -f $$TMPFILE privoxy-suse.spec; \
480 # $(ECHO) "Could not set version info in specfile."; \
484 $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude "privoxy-rh.spec" --exclude "privoxy-cl.spec" --exclude "PACKAGERS" -czf $(TAR_ARCH) .
485 $(RPMBUILD) --clean -ta $(TAR_ARCH)
486 if [ -f $(TAR_ARCH) ]; then $(RM) $(TAR_ARCH); fi
488 # anonymously ncftps the rpms to sourceforge
489 suse-upload: check-release
490 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/SRPMS/privoxy-suse-$(RPM_VERSION)-$(RPM_PACKAGEV).src.rpm
491 # better should use `arch` here instead of ix86 to support other platforms too
492 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/RPMS/*/privoxy-suse-$(RPM_VERSION)-$(RPM_PACKAGEV).*.rpm
493 @$(ECHO) -------------------------------------------------------
495 @$(ECHO) http://sourceforge.net/project/admin/editpackages.php?group_id=11118
496 @$(ECHO) ... and release the files.
497 @$(ECHO) -------------------------------------------------------
499 # handle with care. use with root.
501 $(RPM) -e junkbuster-suse || true
502 $(RM) -r /etc/junkbuster
503 $(RM) -r /etc/rc.d/junkbuster*
504 $(RM) -r /var/run/junkbuster.pid
505 $(RM) -r /var/log/junkbuster
506 $(RM) /etc/init.d/junkbuster
507 $(RM) /usr/sbin/junkbuster
508 $(RM) /usr/sbin/rcjunkbuster
509 $(RM) /usr/share/man/man1/junkbuster.1.gz
510 $(RPM) -e privoxy-suse || true
511 $(RM) -r /etc/privoxy
512 $(RM) -r /etc/rc.d/privoxy*
513 $(RM) -r /var/run/privoxy.pid
514 $(RM) -r /var/log/privoxy
515 $(RM) /etc/init.d/privoxy
516 $(RM) /usr/sbin/privoxy
517 $(RM) /usr/sbin/rcprivoxy
518 $(RM) /usr/share/man/man1/privoxy.1.gz
520 #############################################################################
521 # generic distribution
522 #############################################################################
525 @$(ECHO) "You have run autoconf && autoheader && ./configure right?"
528 $(STRIP_PROG) $(PROGRAM)
529 $(LN) -s current ../privoxy-$(VERSION)-$(CODE_STATUS)
531 (cd .. && $(TAR) -cvhf --exclude "PACKAGERS" privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar privoxy-$(VERSION)-$(CODE_STATUS)/$(PROGRAM))
533 for foo in $(CONFIG_FILES); do \
534 (cd .. && $(TAR) -uvhf --exclude "PACKAGERS" privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar privoxy-$(VERSION)-$(CODE_STATUS)/$$foo;) \
537 for foo in $(DOC_FILES); do \
538 (cd .. && $(TAR) -uvhf --exclude "PACKAGERS" privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar privoxy-$(VERSION)-$(CODE_STATUS)/$$foo;) \
540 # and zip the archive
541 $(RM) ../privoxy-$(VERSION)-$(CODE_STATUS)
542 $(GZIP_PROG) ../privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar
543 @$(ECHO) Distribution with binary created.
545 # anonymously ncftps the package to sourceforge
547 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming ../privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar.gz
548 @$(ECHO) -------------------------------------------------------
550 @$(ECHO) http://sourceforge.net/project/admin/editpackages.php?group_id=11118
551 @$(ECHO) ... and release the files.
552 @$(ECHO) -------------------------------------------------------
556 $(RM) privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar*
558 #############################################################################
559 # solaris distribution. verified on SF machines by swa.
560 #############################################################################
561 solaris-dist: gen-dist
563 # anonymously ncftps the package to sourceforge
564 solaris-upload: gen-upload
567 solaris-clean: gen-clean
570 #############################################################################
572 #############################################################################
574 @$(ECHO) coming soon.
576 @$(ECHO) coming soon.
578 #############################################################################
579 # debian distribution
580 #############################################################################
582 @$(ECHO) coming soon.
584 @$(ECHO) coming soon.
586 #############################################################################
587 # macosx distribution
588 #############################################################################
590 @$(ECHO) coming soon.
592 @$(ECHO) coming soon.
594 #############################################################################
596 #############################################################################
598 @$(ECHO) coming soon.
600 @$(ECHO) coming soon.
602 #############################################################################
603 # freebsd distribution. verified on SF machines by swa.
604 #############################################################################
605 freebsd-dist: gen-dist
607 # anonymously ncftps the package to sourceforge
608 freebsd-upload: gen-upload
611 freebsd-clean: gen-clean
614 #############################################################################
615 # Windows distribution
616 #############################################################################
618 $(ECHO) Not implemented.
621 #############################################################################
622 # Tarball distribution: No CVS dirs, dotfiles, debian build dir,
623 # (FIXME:) only parts of the static / generated docs mix in doc/webserver
624 #############################################################################
626 tarball-dist: dist-check clean clobber
627 $(LN) -s current ../privoxy-$(VERSION)-$(CODE_STATUS)
629 for i in `find . -type f -a -not \( -path "*/CVS*" -o -name ".*" \
630 -o -path "*/debian/*" -o -path "*/actions/*" -o -name "*.php" -o \
631 -name "PACKAGERS" -o -path "*/pdf/*" \)`; do \
632 files="$$files privoxy-$(VERSION)-$(CODE_STATUS)/$$i"; \
634 cd .. && $(TAR) -cvhf privoxy-$(VERSION)-$(CODE_STATUS)-src.tar $$files ; \
636 # and zip the archive
637 $(RM) ../privoxy-$(VERSION)-$(CODE_STATUS)
638 $(GZIP_PROG) ../privoxy-$(VERSION)-$(CODE_STATUS)-src.tar
639 @$(ECHO) Tarball distribution created.
641 # anonymously ncftps the tarball to sourceforge
643 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming ../privoxy-$(VERSION)-$(CODE_STATUS)-src.tar.gz
644 @$(ECHO) -------------------------------------------------------
646 @$(ECHO) http://sourceforge.net/project/admin/editpackages.php?group_id=11118
647 @$(ECHO) ... and release the files.
648 @$(ECHO) -------------------------------------------------------
651 $(RM) ../privoxy-$(VERSION)-$(CODE_STATUS)-src.tar.gz
653 #############################################################################
657 # converts doc/source/*.sgml into html, text, pdf and man pages
659 #############################################################################
663 $(RM) doc/webserver/developer-manual/*.html
664 $(RM) -r doc/source/developer-manual
665 mkdir -p doc/text doc/source/developer-manual
666 cd doc/source/developer-manual && $(DB) ../developer-manual.sgml && cd .. && cp developer-manual/*.html ../webserver/developer-manual/
667 cd doc/source && $(DB) -V nochunks developer-manual.sgml > tmp.html && env -u LANG $(WDUMP) tmp.html > ../text/developer-manual.txt && $(RM) -r tmp.html developer-manual
671 $(RM) doc/webserver/user-manual/*.html
672 $(RM) -r doc/source/user-manual/
673 mkdir -p doc/text doc/source/user-manual
674 cd doc/source/user-manual && $(DB) -iuser-man ../user-manual.sgml && cd .. && cp user-manual/*.html ../webserver/user-manual/
675 @#FIXME: temp fix so same stylesheet gets in more than one place so it works \
676 @# for all doc set-ups, including the 'user manual' config option in local \
677 @#system where it MUST be in same directory as html.
678 $(PERL) -pi.bak -e 's/<\/head/\n<LINK REL=\"STYLESHEET\" TYPE=\"text\/css\" HREF=\"p_doc.css\">\n<\/head/i' doc/webserver/user-manual/*html
679 cd doc/source && $(DB) -iuser-man -V nochunks user-manual.sgml > tmp.html && env -u LANG $(WDUMP) tmp.html > ../text/user-manual.txt && $(RM) -r tmp.html user-manual
683 $(RM) doc/webserver/faq/*.html
684 $(RM) -r doc/source/faq
685 mkdir -p doc/text doc/source/faq
686 cd doc/source/faq && $(DB) ../faq.sgml && cd .. && cp faq/*.html ../webserver/faq/
687 cd doc/source && $(DB) -V nochunks faq.sgml > tmp.html && env -u LANG $(WDUMP) tmp.html > ../text/faq.txt && $(RM) -r tmp.html faq
689 # man page, one variation. Try to use the next target, just 'make man'.
691 $(RM) doc/man/* doc/webserver/man-page/*.html
692 ifneq ($(MAN2HTML),false)
693 $(ECHO) "<html><head><title>Privoxy Man page</title><link rel=\"stylesheet\" type=\"text/css\" href=\"../p_web.css\"></head><body><H2>NAME</H2>" > doc/webserver/man-page/privoxy-man-page.html
694 man ./privoxy.1 | $(MAN2HTML) -bare >> doc/webserver/man-page/privoxy-man-page.html
695 $(ECHO) "</body></html>" >> doc/webserver/man-page/privoxy-man-page.html
700 # Build man page from sgml. This requires the SGMLSpm perl module.
701 # See CPAN, or your favorite perl repository. This is the preferred
702 # target for man page generation!
704 mkdir -p doc/source/temp && cd doc/source/temp && $(RM) * ;\
705 nsgmls ../privoxy-man-page.sgml | sgmlspl ../../../utils/docbook2man/docbook2man-spec.pl &&\
706 perl -pi.bak -e 's/ <URL:.*>//; s/\[ /\[/g' privoxy.1 ;\
707 $(DB) ../privoxy-man-page.sgml && $(MV) -f privoxy.1 ../../../privoxy.1
709 # For those with man2html ala RH7s.
711 mkdir -p doc/webserver/man-page
712 ifneq ($(MAN2HTML),false)
713 $(MAN2HTML) privoxy.1 |grep -v "^Content-type" > tmp.html
714 $(PERL) -pi.bak -e 's/<A .*Contents<\/A>//; s/<A .*man2html<\/A>/man2html/' tmp.html
715 $(PERL) -pi.bak -e 's/(<\/HEAD>)/<LINK REL=\"STYLESHEET\" TYPE=\"text\/css\" HREF=\"..\/p_doc.css\"><\/HEAD>/' tmp.html
716 # Twice because my version of man2html is pulling in commas and periods in URLs.
717 $(PERL) -pi.bak -e 's/(<A.*),(">)/$$1$$2/g' tmp.html
718 $(PERL) -pi.bak -e 's,\.">,">,g' tmp.html
719 # Get rid of spurious
\a from conversion. (How to do this with perl?)
720 $(SED) -e 's/
\a//g' tmp.html > doc/webserver/man-page/privoxy-man-page.html && $(RM) tmp.*
726 # Otherwise we get plain groff conversion.
728 $(G2H_CMD) ./privoxy.1 | $(SED) -e 's@</head>@<link REL="STYLESHEET" TYPE="text/css" HREF="../p_doc.css"></head>@' > doc/webserver/man-page/privoxy-man-page.html
731 # readme page and INSTALL file
732 dok-readme: dok-release
733 cd doc/source && $(DB)-notoc -V nochunks readme.sgml > tmp.html &&\
734 env -u LANG $(WDUMP) tmp.html > ../../README ;\
735 $(DB)-notoc -V nochunks install.sgml > tmp.html &&\
736 env -u LANG $(WDUMP) tmp.html > ../../INSTALL ;\
739 # index.sgml is used to create both the Home Page, and a local index
740 # for documentation, etc.
742 # index.html for webserver:
744 cd doc/source/webserver && $(DB)-notoc -ip-homepage -V nochunks index.sgml > ../../webserver/index.html
745 $(PERL) -pi.bak -e 's/..\/p_doc.css/p_doc.css/;\
746 s/<\/HEAD/\n<meta name=\"description\" content=\"Privoxy helps consumers reduce unwanted junk email and protect their privacy from direct marketing companies.\"><\/HEAD/;\
747 s/<\/HEAD/\n<meta name="MSSmartTagsPreventParsing" content="TRUE"><\/HEAD/;\
750 doc/webserver/index.html && $(RM) doc/webserver/*.bak
752 # privoxy-index.html for local documentation:
754 cd doc/source/webserver && $(DB)-notoc -ip-index -V nochunks index.sgml > ../../webserver/privoxy-index.html
755 $(PERL) -pi.bak -e 's/..\/p_doc.css/p_doc.css/;\
756 s/<\/HEAD/\n<meta name=\"description\" content=\"Privoxy helps consumers reduce unwanted junk email and protect their privacy from direct marketing companies.\"><\/HEAD/;\
757 s/<\/HEAD/\n<meta name="MSSmartTagsPreventParsing" content="TRUE"><\/HEAD/;\
760 doc/webserver/privoxy-index.html && $(RM) doc/webserver/*.bak
762 # Main documentation target.
763 dok: dok-release dok-devel dok-user dok-faq dok-readme dok-webserver dok-authors dok-index
764 @$(ECHO) Documentation created.
767 # an alternative to the above dok. disabled man page creation for the moment
769 redhat-dok: dok-release dok-devel dok-user dok-faq redhat-readme dok-webserver dok-authors
770 @$(ECHO) Documentation created.
774 cd doc/source && $(DB)-notoc -V nochunks readme.sgml > tmp.html && $(WDUMP) \
775 tmp.html > ../../README && $(RM) -r tmp.html
779 cd doc/source && $(DB) -V nochunks authors.sgml > tmp.html && env -u LANG $(WDUMP) \
780 tmp.html > ../../AUTHORS && $(RM) tmp.html
782 # Set doc entities for VERSION and CODE_STATUS in sgml docs. Toggle content
783 # exceptions accordingly. This needs to go before any doc building (doh).
785 @$(ECHO) Setting doc version and status to $(VERSION), $(CODE_STATUS)
786 @$(PERL) -pi.bak -e 's/<!entity +p-version.*>/<!entity p-version "$(VERSION)">/;\
787 s/<!entity +p-status.*>/<!entity p-status "$(CODE_STATUS)">/' \
788 doc/source/*sgml doc/source/*/*sgml
789 $(RM) -r doc/source/*bak doc/source/*/*bak
790 ifeq ($(CODE_STATUS),stable)
791 @$(ECHO) Setting docs to stable $(VERSION)
792 @$(PERL) -pi.bak -e 's/<!entity +% +p-stable.*>/<!entity % p-stable "INCLUDE">/;\
793 s/<!entity +% +p-not-stable.*>/<!entity % p-not-stable "IGNORE">/' \
794 doc/source/*sgml doc/source/*/*sgml
795 $(RM) -r doc/source/*bak doc/source/*/*bak
797 @$(ECHO) Setting docs to not stable $(VERSION)
798 @$(PERL) -pi.bak -e 's/<!entity +% +p-stable.*>/<!entity % p-stable "IGNORE">/;\
799 s/<!entity +% +p-not-stable.*>/<!entity % p-not-stable "INCLUDE">/' \
800 doc/source/*sgml doc/source/*/*sgml
801 $(RM) -r doc/source/*bak doc/source/*/*bak
804 # Generate single page html. Used only for creating pdf docs (ATM).
805 # Currently using: See http://www.easysw.com/htmldoc/pdf-o-matic.php.
806 # If using this generator, remember U-M has a couple of graphics in
807 # a parallel directory.
809 dok-shtml: dok-release
810 mkdir -p doc/source/temp # this directory not in cvs
811 cd doc/source && $(DB) -iuser-man -V nochunks user-manual.sgml > temp/privoxy-user-manual.html
812 cd doc/source && $(DB) -V nochunks developer-manual.sgml > temp/privoxy-developer-manual.html
813 cd doc/source && $(DB) -V nochunks faq.sgml > temp/privoxy-faq.html
814 # one could use html2ps and ps2pdf. well, that does not work. htmlps produces incorrect output.
816 # Make pdf docs from single page html. Requires htmldoc, see
817 # (http://www.easysw.com/htmldoc/). Note: 1.8.20 has a TOC bug.
818 # PDF docs are uploaded to webserver as zip archive.
820 @$(ECHO) -n "starting htmldoc version: ";
821 if htmldoc --version ; then : ; \
822 else $(ECHO) "WARNING: could not get htmldoc version" ; fi
823 cd utils/ldp_print && $(RM) *html *bak *jpg *tmp *pdf *zip
824 cp -f doc/source/temp/*html doc/webserver/user-manual/*jpg utils/ldp_print
825 cd utils/ldp_print ;\
826 $(PERL) -pi.bak -e 's/\.\.\/images\///; s/(<\/?)SUB/$$1small/i;\
827 s/\.\.\/user-manual\/index\.html/privoxy-user-manual.pdf/;\
828 s/\.\.\/developer-manual\/index\.html/privoxy-developer-manual.pdf/;\
829 s/\.\.\/faq\/index\.html/privoxy-faq.pdf/' *.html ;\
830 for i in developer-manual user-manual faq; do \
831 ./ldp_print privoxy-$$i.html ;\
832 $(ECHO) DONE: privoxy-$$i.pdf ;\
834 $(MV) *.pdf ../../doc/pdf ;\
835 $(RM) -r *html *bak *jpg *pdf *zip ../../doc/source/temp
837 # Create release announcement in text and html, with short and long versions.
838 # This is a standalone target, and must be invoked directly.
839 # announce: dok-release
840 # mkdir -p $(DOC_TMP)
841 # cd $(DOC_TMP) && cp -f ../announce.sgml . && $(DB) -iannounce-big announce.sgml &&\
842 # mv -f index.html announce.html && $(WDUMP) announce.html > announce.txt
843 # cd $(DOC_TMP) && $(DB) announce.sgml &&\
844 # mv -f index.html announce-mini.html && $(WDUMP) announce-mini.html > announce-mini.txt &&\
845 # mv -f *html *txt ../../..
848 # The main Privoxy config file, generated from sgml sources.
849 # NOTE: This will require some hand editing. The new file is outputted
850 # as config.new so that problem sections can be compared to previous
851 # version. This is hardcored to w3m for html/text conversion. Also,
852 # requires the shell util 'fmt'. 2007-11-14: note the perl below dies
853 # with perl 5.8.8. The same code pasted into a free standing script,
854 # without the makefile-isms, works fine.
855 config-file: dok-release
856 cd doc/source && $(DB)-notoc -iconfig-file -V nochunks config.sgml > __tmp.html &&\
857 w3m -dump __tmp.html |fmt -w 70 > ../../config.new && $(RM) -r __tmp.*
858 $(PERL) -pi.bak -e 's/^1\. \@\@TITLE\@\@/ /i;\
859 /^\d\.\d\.\s+/ && tr/[a-z]/[A-Z]/;\
861 $$header_len=0 unless $$hit_header;\
864 for ($$i=1; $$i < $$header_len; $$i++) {print "=";}\
869 $$hit_header=1 if m/^(\d\.)(\d\.)(\d\.)?\s/ && s/^(\d\.)//;\
870 $$header_len = length($$_);\
871 s/^/# /; /^# #{12,}/ && s/^# #/####/;\
872 s/^.*$$// if $$hit_option;\
874 s/^\n//; s/^#\s*-{20,}//; s/ *$$//;\
875 $$hit_option=1 if s/^#\s+@@//;' config.new
878 @$(ECHO) "****************************************************"
879 @$(ECHO) "The output file is config.new."
880 @$(ECHO) "Now -- you need to hand edit the results!!!"
881 @$(ECHO) "In particular, check the Debug levels, the"
882 @$(ECHO) "permit-access, forward & socks examples and the"
883 @$(ECHO) "various user-manual examples, which all"
884 @$(ECHO) "probably got hammered."
885 @$(ECHO) "****************************************************"
887 # config file, alternate verison using lynx (perl stuff unfinished). Lynx
888 # does not do so good a job.
890 cd doc/source && $(ECHO) -e ".h2 JUSTIFY\\nJUSTIFY:FALSE" > __tmp.lynx_cfg &&\
891 $(DB)-notoc -iconfig-file -V nochunks config.sgml > __tmp.html &&\
892 lynx -cfg=__tmp.lynx_cfg -width=78 -dump __tmp.html > ../../config.new && $(RM) -r __tmp.*
893 $(PERL) -pi -e 's/^( )//;\
894 s/:$\/:\n/' config.new
896 #############################################################################
900 # moves dokumentation to webserver
902 #############################################################################
904 @$(ECHO) -------------------------------------------------------
905 @$(ECHO) You have run make dok/redhat-dok before, right?
906 @$(ECHO) Note that this command scps all stuff to the webserver,
907 @$(ECHO) it will not remove obsolete documents.
908 @$(ECHO) -------------------------------------------------------
910 @$(ECHO) Uploading html
912 upload=`find . -type f -a -not \( -path "*/CVS*" -o -path "*/results*" \)`; \
913 $(TAR) c $$upload | ssh ijbswa.sourceforge.net 'cd /home/groups/i/ij/ijbswa/htdocs/; tar xvm 2>&1 | grep -v timestamp'
915 @$(ECHO) Uploading pdf
917 zip privoxy-pdf-docs *.pdf ;\
918 scp -q privoxy-pdf-docs.zip ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/pdf
920 @$(ECHO) Fixing permissions
921 @ssh ijbswa.sourceforge.net 'chmod -R 775 /home/groups/i/ij/ijbswa/htdocs 2>/dev/null; true'
922 @ssh ijbswa.sourceforge.net 'find /home/groups/i/ij/ijbswa/htdocs/ -type f | xargs chmod 664 2>/dev/null; true'
923 @ssh ijbswa.sourceforge.net 'chmod 666 /home/groups/i/ij/ijbswa/htdocs/actions/results/actions-feedback.txt 2>/dev/null; true'
928 @cd doc/webserver/actions; \
929 upload=`find . -type f -a -not \( -path "*/CVS*" -o -path "*/results*" \)`; \
930 $(TAR) c $$upload | ssh ijbswa.sourceforge.net 'cd /home/groups/i/ij/ijbswa/htdocs/actions; tar xvm'
932 @$(ECHO) Fixing permissions
933 @ssh ijbswa.sourceforge.net 'find /home/groups/i/ij/ijbswa/htdocs/actions/ -type f | xargs chmod 664 2>/dev/null'
934 @ssh ijbswa.sourceforge.net 'chmod 666 /home/groups/i/ij/ijbswa/htdocs/actions/results/actions-feedback.txt 2>/dev/null'
938 tar --exclude ".cvsignore" --exclude "CVS" --exclude "source" --exclude ".htaccess" \
939 --exclude "obsolete" --exclude "actions" --exclude "*.zip" --exclude "robots.txt"\
940 doc/* INSTALL LICENSE AUTHORS README \
942 $(ECHO) "Uploading doc package ..." ;\
943 scp $(DOC_FILE) ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/docs/
944 @ssh ijbswa.sourceforge.net 'chmod 775 /home/groups/i/ij/ijbswa/htdocs/docs/*gz 2>/dev/null; true'
949 $(WGET) http://privoxy.org/docs/$(DOC_FILE) ;\
950 $(TAR) -zxvf $(DOC_FILE)
953 #############################################################################
954 # Source file dependencies
955 #############################################################################
957 actions.@OBJEXT@: actions.c actions.h config.h $(PROJECT_H_DEPS) errlog.h jcc.h list.h loaders.h miscutil.h actionlist.h ssplit.h
958 cgi.@OBJEXT@: cgi.c cgi.h config.h $(PROJECT_H_DEPS) cgiedit.h cgisimple.h jbsockets.h list.h pcrs.h encode.h ssplit.h jcc.h filters.h actions.h errlog.h miscutil.h
959 cgiedit.@OBJEXT@: cgiedit.c cgiedit.h config.h $(PROJECT_H_DEPS) cgi.h list.h pcrs.h encode.h ssplit.h jcc.h filters.h actionlist.h actions.h errlog.h miscutil.h
960 cgisimple.@OBJEXT@: cgisimple.c cgisimple.h config.h $(PROJECT_H_DEPS) cgi.h list.h pcrs.h encode.h ssplit.h jcc.h filters.h actions.h errlog.h miscutil.h
961 deanimate.@OBJEXT@: deanimate.c deanimate.h config.h $(PROJECT_H_DEPS)
962 encode.@OBJEXT@: encode.c encode.h config.h
963 errlog.@OBJEXT@: errlog.c errlog.h config.h $(PROJECT_H_DEPS) @WIN_ONLY@w32log.h
964 filters.@OBJEXT@: filters.c filters.h config.h $(PROJECT_H_DEPS) errlog.h encode.h gateway.h jbsockets.h jcc.h loadcfg.h parsers.h ssplit.h cgi.h deanimate.h @WIN_ONLY@win32.h
965 gateway.@OBJEXT@: gateway.c gateway.h config.h $(PROJECT_H_DEPS) errlog.h jbsockets.h jcc.h loadcfg.h
966 jbsockets.@OBJEXT@: jbsockets.c jbsockets.h config.h $(PROJECT_H_DEPS) filters.h
967 jcc.@OBJEXT@: jcc.c jcc.h config.h $(PROJECT_H_DEPS) errlog.h filters.h gateway.h jbsockets.h loadcfg.h loaders.h miscutil.h parsers.h @WIN_ONLY@w32log.h win32.h w32svrapi.h cgi.h
968 list.@OBJEXT@: list.c list.h config.h $(PROJECT_H_DEPS) list.h miscutil.h
969 loadcfg.@OBJEXT@: loadcfg.c loadcfg.h config.h $(PROJECT_H_DEPS) errlog.h filters.h gateway.h jbsockets.h jcc.h loaders.h miscutil.h parsers.h @WIN_ONLY@w32log.h win32.h
970 loaders.@OBJEXT@: loaders.c loaders.h config.h $(PROJECT_H_DEPS) errlog.h encode.h filters.h gateway.h jcc.h loadcfg.h miscutil.h parsers.h ssplit.h
971 miscutil.@OBJEXT@: miscutil.c miscutil.h config.h
972 parsers.@OBJEXT@: parsers.c parsers.h config.h $(PROJECT_H_DEPS) errlog.h encode.h filters.h jbsockets.h jcc.h loadcfg.h loaders.h miscutil.h ssplit.h
973 ssplit.@OBJEXT@: ssplit.c ssplit.h config.h miscutil.h
974 urlmatch.@OBJEXT@: urlmatch.c urlmatch.h config.h $(PROJECT_H_DEPS) errlog.h miscutil.h ssplit.h
977 gnu_regex.@OBJEXT@: gnu_regex.c gnu_regex.h config.h
980 pcrs.@OBJEXT@: pcrs.c pcrs.h config.h pcre/pcre.h
983 pcre/get.@OBJEXT@: pcre/get.c pcre/config.h pcre/internal.h pcre/pcre.h
984 pcre/maketables.@OBJEXT@: pcre/maketables.c pcre/config.h pcre/internal.h pcre/pcre.h
985 pcre/pcre.@OBJEXT@: pcre/pcre.c pcre/config.h pcre/internal.h pcre/pcre.h pcre/chartables.c
986 pcre/pcreposix.@OBJEXT@: pcre/pcreposix.c pcre/config.h pcre/internal.h pcre/pcre.h pcre/pcreposix.h
987 pcre/study.@OBJEXT@: pcre/study.c pcre/config.h pcre/internal.h pcre/pcre.h
989 # An auxiliary program makes the PCRE default character table source
991 pcre/chartables.c: pcre/dftables@EXEEXT@
992 pcre/dftables@EXEEXT@ >pcre/chartables.c
994 pcre/dftables@EXEEXT@: pcre/dftables.c pcre/maketables.c pcre/pcre.h pcre/internal.h pcre/config.h
995 $(CC) -o pcre/dftables@EXEEXT@ $(CFLAGS) pcre/dftables.c
998 w32log.@OBJEXT@: w32log.c errlog.h config.h jcc.h loadcfg.h miscutil.h pcre/pcre.h pcre/pcreposix.h pcrs.h project.h w32log.h w32taskbar.h win32.h
999 w32taskbar.@OBJEXT@: w32taskbar.c config.h w32log.h w32taskbar.h
1000 win32.@OBJEXT@: win32.c config.h jcc.h loadcfg.h pcre/pcre.h pcre/pcreposix.h pcrs.h project.h w32log.h win32.h w32svrapi.h
1002 w32.res: w32.rc w32res.h icons/ico00001.ico icons/ico00002.ico icons/ico00003.ico icons/ico00004.ico icons/ico00005.ico icons/ico00006.ico icons/ico00007.ico icons/ico00008.ico icons/idle.ico icons/privoxy.ico config.h
1003 windres -D__MINGW32__=0.2 -O coff -i $< -o $@
1006 @AMIGAOS_ONLY@OBJS += amiga.o
1007 @AMIGAOS_ONLY@ifeq ($(shell $(CC) -dumpmachine), m68k-amigaos)
1008 @AMIGAOS_ONLY@CFLAGS += -D__AMIGAVERSION__=\"$(VERSION_MAJOR).$(VERSION_MINOR)$(VERSION_POINT)\" -D__AMIGADATE__=\"`date +%d.%m.%Y`\" -W -m68020 -noixemul -fbaserel -msmall-code
1009 @AMIGAOS_ONLY@LDFLAGS += -m68020 -noixemul -fbaserel
1010 @AMIGAOS_ONLY@LIBS = -lm /gg/lib/libb/libm020/libnix/swapstack.o
1012 @AMIGAOS_ONLY@CFLAGS += -D__AMIGAVERSION__=\"$(VERSION_MAJOR).$(VERSION_MINOR)$(VERSION_POINT)\" -D__AMIGADATE__=\"`date +%d.%m.%Y`\" -Wextra -D__USE_INLINE__ -D__NO_INTUITION_RJ_MACROS
1014 @AMIGAOS_ONLY@amiga.o: amiga.c amiga.h config.h
1017 $(PROGRAM): $(OBJS) $(W32_FILES)
1018 $(LD) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS)
1021 $(RM) a.out $(OBJS) $(W32_FILES) $(W32_INIS) $(PROGRAM) default.action `find . -name TAGS -o -name tags` config.base config.tmp
1024 $(RM) `find . -name "*~"`
1025 # $(RM) `find . -name "#*#"` # what is this for??
1026 $(RM) `find . -name ".\#*"`
1029 $(RM) GNUmakefile configure config.h.in config.h config.cache config.status config.log logfile \
1030 privoxy.log core *.tar.gz *.tar privoxy-cl.spec doc/source/ldp.dsl config.new
1031 $(RM) -r autom4te.cache
1034 # FIXME: What is all this?
1036 $(RM) cscope.* *.pdb *.lib *.exp
1040 tags: $(SRCS) $(HDRS)
1041 etags $(SRCS) $(HDRS)
1043 CONF_DEST:=$(shell if [ "$(prefix)" = "/usr/local" ] && [ "$(CONF_BASE)" = "$(prefix)/etc" ];then \
1044 $(ECHO) "$(CONF_BASE)/privoxy";\
1046 $(ECHO) "$(CONF_BASE)";\
1049 LOG_DEST:=$(shell if [ "$(prefix)" = "/usr/local" ] && [ "$(LOGS_DEST)" = "$(prefix)/var/log/privoxy" ];then \
1050 $(ECHO) "/var/log/privoxy" ;\
1052 $(ECHO) "$(LOGS_DEST)";\
1055 PID_DEST:=$(shell if [ "$(prefix)" = "/usr/local" ] && [ "$(PIDS_DEST)" = "$(prefix)/var/run" ];then \
1056 $(ECHO) "/var/run" ;\
1058 $(ECHO) "$(PIDS_DEST)";\
1061 check_doc:=$(shell if [ ! -d "$(SHARE_DEST)/doc" ] && [ "$(prefix)" = "/usr/local" ] && [ -d "$(prefix)/doc" ];then \
1067 # If USER is specified but no GROUP, assume there is a GROUP of same name.
1068 GROUP_T:=$(shell if [ x$(GROUP) = x ] && [ x$(USER) != x ];then \
1069 $(ECHO) "$(USER)" ;\
1071 $(ECHO) "$(GROUP)";\
1075 $(MAKE) install STRIP=-s
1077 # FIXME: Test USER and GROUP on Slack to make sure this works as
1080 # FIXME: id handling needs help, probably via configure, since 'id -u' is not
1081 # universally reliable (eg Solaris). Group handling could be better.
1082 # Perhaps the whole user/group validation should be done here, and simplified.
1083 PROGRAM_V = Privoxy $(VERSION) $(CODE_STATUS)
1084 install: CONF_DEST LOG_DEST PID_DEST check_doc GROUP_T
1085 @# Quick test for valid USER.
1086 @if [ -n "$(USER)" ]; then \
1087 $(ID) $(USER) >/dev/null || exit 1;\
1089 @# Test for valid group. FIXME. USER does not have to belong to GROUP
1090 @# for file ownership purposes.
1091 # if [ -n "$(GROUP_T)" ] && [ -n "$(USER)" ] && ! $(GROUPS) $(USER) | $(GREP) "\<$(GROUP_T)\>" >/dev/null; then \
1092 # $(ECHO) Group $(GROUP_T) for User $(USER) is invalid && exit 1 ;\
1095 @$(ECHO) "Creating directories, and preparing $(PROGRAM_V) installation"
1096 $(CHMOD) $(DIR_MODE) $(MKDIR)
1097 @$(MKDIR) $(SBIN_DEST) $(prefix) $(CONF_DEST) $(CONF_DEST)/templates $(SHARE_DEST) \
1098 $(LOG_DEST) $(PID_DEST)
1099 @# Install the executable binary, strip if invoked as install-strip
1100 @test -n "$(STRIP)" &&\
1101 $(ECHO) Installing $(PROGRAM) stripped executable to $(SBIN_DEST) ||\
1102 $(ECHO) Installing $(PROGRAM) executable to $(SBIN_DEST)
1103 $(INSTALL) $(INSTALL_P) $(STRIP) $(PROGRAM) $(SBIN_DEST)
1105 @# Install the DOCS and man page. install-sh only does one file at a time.
1106 @# FIXME: only handles jpegs.
1107 -@if [ $(check_doc) = 0 ]; then \
1110 DOC=$(prefix)/doc/privoxy ;\
1112 $(MKDIR) $$DOC $$DOC/user-manual $$DOC/faq $$DOC/developer-manual \
1113 $$DOC/man-page $$DOC/images $(MAN_DEST) ;\
1114 if [ -d "$(DOK_WEB)" ]; then \
1115 $(ECHO) Installing FAQ, Manual, and other docs to $$DOC;\
1116 for i in user-manual developer-manual faq; do \
1117 for ii in $(DOK_WEB)/$$i/*html; do \
1118 $(INSTALL) $(INSTALL_T) $$ii $$DOC/$$i;\
1121 for i in $(DOK_WEB)/user-manual/*jpg; do \
1122 $(INSTALL) $(INSTALL_T) $$i $$DOC/user-manual;\
1124 $(INSTALL) $(INSTALL_T) $(DOK_WEB)/man-page/*html $$DOC/man-page;\
1125 $(INSTALL) $(INSTALL_T) $(DOK_WEB)/privoxy-index.html $$DOC/index.html;\
1126 $(INSTALL) $(INSTALL_T) AUTHORS $$DOC;\
1127 $(INSTALL) $(INSTALL_T) LICENSE $$DOC;\
1128 $(INSTALL) $(INSTALL_T) README $$DOC;\
1129 $(INSTALL) $(INSTALL_T) ChangeLog $$DOC;\
1130 $(INSTALL) $(INSTALL_T) $(DOK_WEB)/p_doc.css $$DOC;\
1131 $(INSTALL) $(INSTALL_T) $(DOK_WEB)/p_doc.css $$DOC/user-manual;\
1133 @# Not all platforms support gzipped man pages.
1134 @$(ECHO) Installing man page to $(MAN_DEST)/privoxy.1
1135 -$(INSTALL) $(INSTALL_T) privoxy.1 $(MAN_DEST)/privoxy.1
1137 @# Change the config file default directories according to the configured ones
1138 @$(ECHO) Rewriting config for this installation
1139 @if [ -f config.base ] ; then \
1140 $(CAT) config >config~ ;\
1141 $(MV) config.base config ;\
1143 $(SED) 's+^confdir \.+confdir $(CONF_DEST)+' config | \
1144 $(SED) 's+^logdir \.+logdir $(LOG_DEST)+' >config.tmp
1145 -@if [ $(check_doc) = 0 ]; then \
1146 $(SED) 's+^#\?user-manual .*+user-manual $(DOC_DEST)/user-manual/+' config.tmp >config.updated ;\
1148 $(SED) 's+^#\?user-manual .*+user-manual $(prefix)/doc/privoxy/user-manual/+' config.tmp >config.updated ;\
1150 $(MV) config config.base
1151 $(MV) config.updated config
1153 @# Install the config support files. Test for root install, and abort
1154 @# if there is no privoxy user, and no other user was enabled during
1155 @# configure. Later, install init script if appropriate.
1156 @$(ECHO) Installing templates to $(CONF_DEST)/templates
1157 @for i in `find templates -type f`; do \
1158 $(INSTALL) $(INSTALL_T) $$i $(CONF_DEST)/templates ;\
1161 @# FIXME: group/user validation is overly convoluted.
1162 @# If superuser install ... we require a minimum of group ownership
1163 @# of those files the daemon writes to, to be non-root owned.
1164 @if [ "`$(ID) |sed 's/(.*//' |sed 's/.*=//'`" = "0" ] ;then\
1165 if [ x$(USER) = x ] || [ $(USER) = root ]; then \
1166 if [ x$(GROUP) = x ] || [ $(GROUP) = root ]; then \
1167 if [ "`$(ID) privoxy`" ] && \
1168 $(GROUPS) privoxy | $(SED) 's/^.*://' |$(GREP) "\<privoxy\>" >/dev/null; then \
1169 $(ECHO) "Warning: Setting group owner to privoxy";\
1172 $(ECHO) "******************************************************************" ;\
1173 $(ECHO) " WARNING! WARNING! installing config files as root!" ;\
1174 $(ECHO) " It is strongly recommended to run $(PROGRAM) as a non-root user," ;\
1175 $(ECHO) " and to install the config files as that user and/or group!" ;\
1176 $(ECHO) " Please read INSTALL, and create a privoxy user and group!" ;\
1177 $(ECHO) "*******************************************************************" ;\
1183 INSTALL_CONF="$(INSTALL_R) -g $$GROUP_T " ;\
1185 $(ECHO) "Superuser install, installing config files as $(USER):$(GROUP_T)" ;\
1186 INSTALL_CONF="$(INSTALL_R) -o $(USER) -g $(GROUP_T)" ;\
1187 GROUP_T=$(GROUP_T) ;\
1190 if [ ! "`id $(USER)`" = "`id`" ] ;then \
1191 $(ECHO) "** WARNING ** current install user different from configured user!!" ;\
1192 $(ECHO) "Edit may fail." ;\
1194 INSTALL_CONF="$(INSTALL_R)" ;\
1196 $(ECHO) Installing configuration files to $(CONF_DEST);\
1197 for i in $(CONFIGS); do \
1198 if [ "$$i" = "default.action" ] || [ "$$i" = "default.filter" ] || [ "$$i" = "standard.action" ]; then \
1199 $(RM) $(CONF_DEST)/$$i ;\
1200 $(ECHO) Installing fresh $$i;\
1201 $(INSTALL) $$INSTALL_CONF $$i $(CONF_DEST) || exit 1;\
1202 elif [ -s "$(CONF_DEST)/$$i" ]; then \
1203 $(ECHO) Installing $$i as $$i.new ;\
1204 $(INSTALL) $$INSTALL_CONF $$i $(CONF_DEST)/$$i.new || exit 1;\
1207 $(INSTALL) $$INSTALL_CONF $$i $(CONF_DEST) || exit 1;\
1210 if [ -n "$$NEW" ]; then \
1211 $(CHMOD) $(RWD_MODE) $(CONF_DEST)/*.new || exit 1 ;\
1212 $(ECHO) "Warning: Older config files are preserved. Check new versions for changes!" ;\
1214 [ ! -f $(LOG_DEST)/logfile ] && $(ECHO) Creating logfiles in $(LOG_DEST) || \
1215 $(ECHO) Checking logfiles in $(LOG_DEST) ;\
1216 $(TOUCH) $(LOG_DEST)/logfile $(LOG_DEST)/jarfile || exit 1 ;\
1217 if [ x$$USER != x ]; then \
1218 $(CHOWN) $$USER $(LOG_DEST)/logfile $(LOG_DEST)/jarfile || \
1219 $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\
1221 if [ x$$GROUP_T != x ]; then \
1222 $(CHGRP) $$GROUP_T $(LOG_DEST)/logfile $(LOG_DEST)/jarfile || \
1223 $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\
1225 $(CHMOD) $(RWD_MODE) $(LOG_DEST)/logfile $(LOG_DEST)/jarfile || exit 1 ;\
1226 if [ "$(prefix)" = "/usr/local" ] || [ "$(prefix)" = "/usr" ]; then \
1227 if [ -f /etc/slackware-version ] && [ -d /etc/rc.d/ ] && [ -w /etc/rc.d/ ] ; then \
1228 $(SED) 's+%PROGRAM%+$(PROGRAM)+' slackware/rc.privoxy.orig | \
1229 $(SED) 's+%SBIN_DEST%+$(SBIN_DEST)+' | \
1230 $(SED) 's+%CONF_DEST%+$(CONF_DEST)+' | \
1231 $(SED) 's+%USER%+$(USER)+' | \
1232 $(SED) 's+%GROUP%+$(GROUP_T)+' >slackware/rc.privoxy ;\
1233 $(INSTALL) $(INSTALL_P) slackware/rc.privoxy /etc/rc.d/ ;\
1234 $(ECHO) "Installing for Slackware." ;\
1235 $(ECHO) "Dont forget to add the rc.privoxy to rc.local if you want it started at every boot" ;\
1236 elif [ -f /etc/redhat-release ] && [ -d /etc/rc.d/init.d/ ] && [ -w /etc/rc.d/init.d/ ] ; then \
1237 $(ECHO) "Installing init script to /etc/rc.d/init.d/privoxy" ;\
1238 $(SED) 's,^PRIVOXY_BIN=.*,PRIVOXY_BIN="/usr/local/sbin/$(PROGRAM)",' privoxy.init |\
1239 $(SED) 's,^PRIVOXY_CONF=.*,PRIVOXY_CONF="$(CONF_DEST)/config",' |\
1240 $(SED) "s,^PRIVOXY_USER=.*,PRIVOXY_USER=$$USER," > init.tmp ;\
1241 $(INSTALL) $(INSTALL_P) init.tmp /etc/rc.d/init.d/privoxy && $(RM) init.tmp;\
1242 $(MKDIR) /etc/logrotate.d/ ;\
1243 $(ECHO) "Installing logrotate script to /etc/logrotate.d/" ;\
1244 $(INSTALL) -m 0644 privoxy.logrotate /etc/logrotate.d/privoxy ;\
1245 elif [ -d /etc/init.d ] && [ -w /etc/init.d ] ; then \
1246 $(ECHO) "Installing generic init script to /etc/init.d/privoxy" ;\
1247 $(ECHO) "Please check that the PATHs are correct, and edit if needed." ;\
1248 $(INSTALL) $(INSTALL_P) privoxy-generic.init /etc/init.d/privoxy ;\
1251 $(ECHO) "No init script installed, install it manually if needed" ;\
1253 $(RM) config.base config.tmp
1255 @$(ECHO) "$(PROGRAM_V) installation succeeded!"
1256 @$(ECHO) "The Privoxy configuration files have been installed in $(CONF_DEST)"
1258 # rmdir is used as a precaution since it will not remove non-empty
1259 # directories. RH init script creates lock file and pid file.
1260 uninstall: CONF_DEST LOG_DEST PID_DEST check_doc
1261 @$(ECHO) Starting Privoxy uninstallation
1262 @# KILL privoxy if running
1263 -@if [ -f /etc/redhat-release ] && [ -x /etc/rc.d/init.d/privoxy ]; then \
1264 /etc/rc.d/init.d/privoxy stop >/dev/null 2>/dev/null ;\
1265 chkconfig --del $(PROGRAM) 2>/dev/null;\
1267 -@test -f $(PID_DEST)/privoxy.pid && $(ECHO) Stopping $(PROGRAM) &&\
1268 $(KILL) `$(CAT) $(PID_DEST)/privoxy.pid` || :
1269 -@test -f /var/run/privoxy.pid && $(ECHO) Stopping $(PROGRAM) &&\
1270 $(KILL) `$(CAT) /var/run/privoxy.pid ` || :
1273 @$(ECHO) Removing $(PROGRAM) binary
1274 $(RM) $(SBIN_DEST)/$(PROGRAM) $(SBIN_DEST)/$(PROGRAM)~
1276 @# config files and dir, and maybe old install backups
1277 -@if [ -d $(CONF_DEST) ]; then \
1278 $(ECHO) Saving $(PROGRAM) config files to /tmp/$(PROGRAM)-save ;\
1279 $(MKDIR) /tmp/$(PROGRAM)-save ;\
1281 for i in $(CONFIGS); do \
1282 [ -f $$i ] && $(CP) $$i /tmp/$(PROGRAM)-save ;\
1285 @$(ECHO) Removing $(PROGRAM) config files
1286 -@for i in $(CONFIGS); do \
1287 test -f $(CONF_DEST)/$$i && $(ECHO) Removing $$i ;\
1288 $(RM) $(CONF_DEST)/$$i $(CONF_DEST)/$$i~ $(CONF_DEST)/$$i.new ;\
1290 -@test -d $(CONF_DEST)/templates && $(RM) -r $(CONF_DEST)/templates &&\
1291 $(ECHO) "Removing $(CONF_DEST)/templates/*"
1293 @# man page and docs
1294 @$(ECHO) Removing $(PROGRAM) docs
1295 -$(RM) $(MAN_DEST)/privoxy.1*
1296 -$(RM) -r $(DOC_DEST) || $(RM) -r $(prefix)/doc/privoxy
1298 @# Log and jarfile and pidfile
1299 @$(ECHO) Removing $(PROGRAM) logs
1300 -$(RM) $(LOG_DEST)/logfile $(PID_DEST)/privoxy.pid $(LOG_DEST)/jarfile
1302 @# Final clean up of unused directories. Special handling of CONF and LOG
1304 @$(ECHO) Removing $(PROGRAM) directories
1305 @for i in $(LOG_DEST) $(CONF_DEST); do \
1306 if test -d $$i; then \
1307 $(ECHO) Removing $$i ;\
1308 $(RMDIR) $$i || $(ECHO) "$$i is not empty, not removed" ;\
1311 @if [ ! "$(prefix)" = "/usr/local" ] ;then \
1312 for i in $(MAN_DEST) $(MAN_DIR) $(SHARE_DEST)/doc $(SHARE_DEST) $(SBIN_DEST); do \
1313 if test -d $$i; then \
1314 $(ECHO) Removing $$i ;\
1315 $(RMDIR) $$i || $(ECHO) "$$i is not empty, not removed" ;\
1318 if test $(LOG_DEST) != /var/log/privoxy && test -d $(prefix)/var/log; then \
1319 $(ECHO) Removing $(prefix)/var/log ;\
1320 $(RMDIR) $(prefix)/var/log || $(ECHO) "$(prefix)/var/log is not empty, not removed";\
1322 if test $(PID_DEST) != /var/run && test -d $(prefix)/var/run; then \
1323 $(ECHO) Removing $(prefix)/var/run ;\
1324 $(RMDIR) $(prefix)/var/run || $(ECHO) "$(prefix)/var/run is not empty, not removed";\
1326 if test $(prefix)/var != /var && test -d $(prefix)/var; then \
1327 $(ECHO) Removing $(prefix)/var ;\
1328 $(RMDIR) $(prefix)/var || $(ECHO) "$(prefix)/var is not empty, not removed" ;\
1330 if test $(prefix) != / && test $(prefix) != /usr && test -d $(prefix); then \
1331 $(ECHO) Removing $(prefix) ;\
1332 $(ECHO) Removing installation directory $(prefix) ;\
1333 $(RMDIR) $(prefix) || $(ECHO) "$(prefix) is not empty, not removed" ;\
1337 @# init scripts and logrotate
1338 @if [ "$(prefix)" = "/usr/local" ] || [ "$(prefix)" = "/usr" ]; then \
1339 $(ECHO) Removing $(PROGRAM) init script ;\
1340 if [ -f /etc/slackware-version ] && [ -d /etc/rc.d/ ] && [ -w /etc/rc.d/ ] ; then \
1341 $(RM) /etc/rc.d/rc.privoxy ;\
1342 elif [ -f /etc/redhat-release ] && [ -d /etc/rc.d/init.d/ ] && [ -w /etc/rc.d/init.d/ ] ; then \
1343 $(RM) /etc/rc.d/init.d/privoxy /etc/logrotate.d/privoxy;\
1344 elif [ -d /etc/init.d ] && [ -w /etc/init.d ] ; then \
1345 $(RM) /etc/init.d/privoxy ;\
1347 $(ECHO) "Unable to remove privoxy init script, not installed or permission denied" ;\
1350 @$(ECHO) Privoxy uninstalled, bye
1353 @perl -e 'print pack "C*", (31,139,8,8,153,63,226,60,2,3,99,111,102,102,101,101,0,109,143,205,13,192,32,8,133,\
1354 239,78,241,110,234,1,28,160,171,152,208,53,26,117,247,22,165,73,137,125,9,1,62,126,2,128,169,5,243,143,\
1355 13,139,49,164,65,100,149,152,102,73,141,88,73,178,116,205,100,69,253,36,102,81,49,83,236,19,225,171,131,\
1356 214,172,163,73,4,168,123,115,71,126,247,122,94,128,178,227,95,154,12,86,215,122,197,249,146,187,54,220,125,\
1357 193,51,228,11,1,0,0);'|zcat
1359 #############################################################################
1365 # $Log: GNUmakefile.in,v $
1366 # Revision 1.159 2008/03/21 11:13:53 fabiankeil
1367 # Only gather host information if it's actually needed.
1368 # Also move the code out of accept_connection() so it's less likely
1369 # to delay other incoming connections if the host is misconfigured.
1371 # Revision 1.158 2007/12/11 21:29:25 fabiankeil
1372 # Fix dependency list for cgiedit.c.
1374 # Revision 1.157 2007/12/10 02:28:02 hal9
1375 # Unset $LANG for text processing of docs so we get pure text.
1377 # Revision 1.156 2007/11/15 03:17:43 hal9
1378 # Some workaround changes to the config file perl stuff and comments, which is
1379 # broken here all by itself on perl 5.8.8.
1381 # Revision 1.155 2007/09/22 16:23:25 fabiankeil
1382 # Update copyright line.
1384 # Revision 1.154 2007/02/07 11:52:40 fabiankeil
1385 # Fix suse-dist as described in BR#1654052.
1386 # (I didn't test it, but it's done the same
1387 # way in redhat-dist which is known to work).
1389 # Revision 1.153 2007/01/07 07:36:36 joergs
1390 # Added AmigaOS4 support.
1392 # Revision 1.152 2006/12/13 14:53:51 etresoft
1393 # Include any existing LDFLAGS environment when linking so that a MacOS X Universal Binary can be created.
1395 # Revision 1.151 2006/11/30 01:08:55 hal9
1396 # Fix problem with variable declarations in the Slackware section. Thanks to higuita.
1398 # Revision 1.150 2006/10/25 11:55:45 fabiankeil
1399 # Fix sed regexes for rewriting "confdir ." and "logdir .".
1400 # Thanks to Darel Henman for reporting this.
1402 # Revision 1.149 2006/10/11 01:40:28 hal9
1403 # Apply patch from Neil McCalden to fix syntax issue.
1405 # Revision 1.148 2006/09/26 10:57:58 hal9
1406 # Including Karsten's patch to fix make create-snapshot.
1408 # Revision 1.147 2006/09/13 01:25:16 hal9
1409 # Make sure install forces in new default.action, default.filter, and
1410 # standard.filter. These are privoxy files, not user files.
1412 # Revision 1.146 2006/09/08 23:57:19 hal9
1413 # User manual images are now user-manual doc directory, and fix make install
1414 # target accordingly.
1416 # Revision 1.145 2006/09/08 02:32:00 hal9
1417 # Various changes to implement building and installing docs to be compatible
1418 # with the new "user-manual" settings in config from Roland. Docbook does not
1419 # seem to like dealing with more than one css file, so workaround that here.
1420 # Change 'make install' so it provides p_doc.css in the user-manual doc
1421 # directory so that functions well, and lastly modify 'make install' so that the
1422 # PATH is automatically set, and the 'user-manual' directive should done during
1425 # Revision 1.144 2006/09/07 22:53:20 hal9
1426 # Make sure config sgml build related artifacts are cleaned out.
1428 # Revision 1.143 2006/09/02 15:59:40 hal9
1429 # Add to code status to make install output.
1431 # Revision 1.142 2006/08/29 01:46:24 hal9
1432 # Add user.filter to $CONFIGS.
1434 # Revision 1.141 2006/08/12 03:54:37 david__schmidt
1435 # Windows service integration
1437 # Revision 1.140 2006/07/18 14:48:45 david__schmidt
1438 # Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
1439 # with what was really the latest development (the v_3_0_branch branch)
1441 # Revision 1.104.2.28 2004/06/10 17:06:05 hal9
1442 # Fix bug #959617, by moving TMPDIR var to create-snapshot target, which is the
1443 # only place it is used.
1445 # Revision 1.104.2.27 2004/02/07 16:11:10 oes
1446 # Make clobber remove the autom4te.cache dir.
1449 # Revision 1.104.2.26 2004/01/31 16:32:25 oes
1450 # Adding a check for an htmldoc variant from the debian diff
1452 # Revision 1.104.2.25 2004/01/31 01:15:33 oes
1453 # Fixed a typo; updated copyright notice
1455 # Revision 1.104.2.24 2003/12/03 10:30:02 oes
1456 # - Added new dependency: actions.c -> ssplit.h
1457 # - Excluded PDF docs from src tarball
1459 # Revision 1.104.2.23 2003/04/20 17:28:52 hal9
1460 # Strip trailing spaces from config-file generation, bug #724596.
1462 # Revision 1.104.2.22 2003/03/28 03:32:01 hal9
1463 # Minor changes for Privoxy home page:
1464 # - Handle © more sanely
1465 # - include link to announce.txt
1466 # Also, disable 'make announce' target.
1468 # Revision 1.104.2.21 2002/11/04 07:04:03 hal9
1469 # Catch up with main trunk install/uninstall. Quiet output, etc.
1471 # Revision 1.104.2.20 2002/10/25 02:44:22 hal9
1472 # Port of make install, etc from main trunk. Needs testing! Add Slackware
1473 # support, and other related changes. Update related docs.
1475 # Revision 1.104.2.19 2002/09/26 22:50:02 hal9
1476 # New user-manual examples in config-file are getting wrapped. Add warning.
1478 # Revision 1.104.2.18 2002/08/23 12:22:40 oes
1479 # Added warning to broken install target
1481 # Revision 1.104.2.17 2002/08/16 03:19:34 hal9
1482 # More (minor) cleanup of html before pdf processing to make some relative
1483 # links work as pdf -> pdf. Upload pdf as zip archive now.
1485 # Revision 1.104.2.16 2002/08/14 16:43:27 hal9
1486 # Added pdf docs to make webserver target.
1488 # Revision 1.104.2.15 2002/08/11 20:02:41 hal9
1489 # New targets for man page (make man) and pdf (make dok-pdf) targets.
1491 # Revision 1.104.2.14 2002/08/10 11:19:37 oes
1492 # - Make -Ipcre (again) conditional on STATIC_PCRE
1493 # - $(RPMBUILD) -> $(RPM) for SuSE
1494 # - Add dependency: pcrs.o deps on config.h
1496 # Revision 1.104.2.13 2002/08/07 15:13:54 hal9
1497 # Remove pdf2 target, and make it dok-shtml (single page html for pdf
1500 # Revision 1.104.2.12 2002/08/06 11:29:36 oes
1501 # Fixed detection/inclusion of pcre.h, which is in a pcre subdir on RH
1503 # Revision 1.104.2.11 2002/07/30 19:38:11 hal9
1504 # Add redhat-test target for testing purposes only. Fix RPM_PACKAGEV to what
1505 # *I think* it was supposed to be (was breaking upload targets since it was
1506 # set to RPM_VERSION).
1508 # Revision 1.104.2.10 2002/07/27 22:56:53 kick_
1509 # cleanups of the redhat-srpm target
1511 # Revision 1.104.2.9 2002/07/26 15:17:02 oes
1512 # - Added generation of default.action from defaul.action.master
1513 # - Deleted obsolete re_filterfile.txt generation
1515 # Revision 1.104.2.8 2002/07/12 10:04:32 kick_
1516 # added helper targets to the makefile. They shouldn't break anything, but
1517 # make my life a lot easier.
1519 # The new rpm has been splitted into two parts, one for package installation/
1520 # removal, one for package building.
1521 # Therefore rpm -ta isn't a valid command anymore and needs to be replaced
1522 # by rpmbuild -ta (this is backwards compatible)
1524 # Revision 1.104.2.7 2002/06/07 00:23:47 hal9
1525 # Fixing a quirk of man2html (on my system) that pulls punctuation into URLs,
1526 # thus breaking them completely.
1528 # Revision 1.104.2.6 2002/06/02 03:26:25 hal9
1529 # Update CONFIG_FILES (ie update basic.action, etc), and also DOC_FILES (exclude
1530 # index.html and team/index.html)
1532 # Revision 1.104.2.5 2002/05/30 15:35:01 hal9
1533 # This is more cleanup on the make config-file target. Most issues for
1534 # automatic generation are taken care of. There are still some problems
1535 # that require hand editing. Namely, some of the examples that are > 80 chars.
1537 # Revision 1.104.2.4 2002/05/29 02:12:17 hal9
1538 # Ooops...forgot about perl -pi cygwin problem. Add -pi.bak. Also, the
1539 # new target is 'make config-file', _not_ make config.
1541 # Revision 1.104.2.3 2002/05/29 02:05:48 hal9
1542 # 'make config' target added (WIP) for future generation of config file from
1543 # text in u-m so the two are in sync. New generated config, which requires
1544 # some hand editing for the time being.
1546 # Revision 1.104.2.2 2002/05/28 02:32:55 hal9
1547 # New target 'make dok-index' for privoxy-index.html. Also, fixed *.bak files
1548 # not being cleaned up in doc/webserver.
1550 # Revision 1.104.2.1 2002/05/26 17:19:34 hal9
1551 # Remove Table of Contents from readme with oes's dsl trick.
1553 # Revision 1.104 2002/05/24 00:03:49 oes
1554 # Use p_doc.css for the Homepage for consistency
1556 # Revision 1.103 2002/05/23 23:19:00 oes
1557 # Use dsl without TOC for the homepage
1559 # Revision 1.102 2002/05/16 01:20:17 hal9
1560 # make announce target added.
1562 # Revision 1.101 2002/05/15 12:28:46 oes
1563 # Trying to keep Hal happy :)
1565 # Revision 1.100 2002/05/08 13:48:18 hal9
1566 # Ooops, that trashed JB v2.0.2 comment. Fixed.
1568 # Revision 1.99 2002/05/08 13:42:07 hal9
1569 # This fixes the numbering problem on index.html in contact info section (.1.). Using
1570 # perl, since its way too convoluted to try to fix proper with docbook.
1572 # Revision 1.98 2002/05/03 14:33:06 oes
1573 # Replaced ldp(OK).dsl handling with generation via autoconf; handle all file exeptions to src tarball via find
1575 # Revision 1.97 2002/04/27 20:27:43 swa
1576 # no longer needed due to new
1577 # PACKAGE_VERSION process
1579 # Revision 1.96 2002/04/27 17:44:32 morcego
1580 # - Correcting typo in my name (Rodrigo, not Rodgrigo) :-)
1581 # - Using the RM macro everywhere rm is called (either we use, or don't)
1584 # Revision 1.95 2002/04/27 15:37:25 swa
1585 # replacing directory in document creation process
1586 # no longer necessary.
1588 # Revision 1.94 2002/04/27 08:23:29 swa
1589 # pdf process reviewed and cleaned up
1591 # Revision 1.93 2002/04/27 04:55:53 morcego
1592 # privoxy-cl.spec now gets removed by clobber target
1594 # Revision 1.92 2002/04/27 04:53:40 morcego
1595 # Adding --exclude "PACKAGERS" to every tar command that applies (not for
1598 # Revision 1.91 2002/04/27 04:44:51 morcego
1599 # GNUmakefile.in: The tarball created on redhat-dist and suse-dist now ignore
1600 # the PACKAGERS file, as well privoxy-cl.spec (in case it was created)
1601 # GNUmakefile.in: New targets -> conectiva-spec, conectiva-dist and
1603 # genclspec.sh : New file to generate, from privoxy-rh.spec, a specfile
1604 # for Conectiva Linux
1606 # Revision 1.90 2002/04/26 17:46:53 swa
1609 # Revision 1.89 2002/04/26 17:20:54 swa
1610 # just produce single html files to proces them later with Destiller or somesuch. looks prettier.
1612 # Revision 1.88 2002/04/25 19:13:57 morcego
1613 # Removed RPM release number declaration on configure.in
1614 # Changed makefile to use given value for RPM_PACKAGEV when on uploading
1615 # targets (will produce an error, explaining who to do it, if no value
1618 # Revision 1.87 2002/04/23 14:10:59 swa
1619 # now create pdf documents
1621 # Revision 1.86 2002/04/15 04:30:27 hal9
1622 # Missed two -pi.bak's on perl/cygwin problem.
1624 # Revision 1.85 2002/04/14 01:05:34 hal9
1625 # Revert dok-webserver change for SF logo.
1627 # Revision 1.84 2002/04/13 22:43:25 hal9
1628 # -Fix dok-webserver for SF logo (more perl).
1629 # -Change all perl -pi to perl -pi.bak for Cygwin problem.
1631 # Revision 1.83 2002/04/12 09:39:25 oes
1632 # Excluding yet more files from tarball; making dist warning yet more scary
1634 # Revision 1.82 2002/04/11 21:07:11 oes
1635 # Excluding more files from tarball build
1637 # Revision 1.81 2002/04/11 14:40:27 oes
1638 # Fixed typo -- Thanks, Moritz!
1640 # Revision 1.80 2002/04/11 12:50:00 oes
1641 # Fixed tarball-dist target
1643 # Revision 1.79 2002/04/11 06:49:28 oes
1644 # webserver target: silenced timestamp warnings resulting from uploading westwards, made permissions fixing independant of screwed local dir permissions, suppress (false alarm) make error if not owner of feedback log
1646 # Revision 1.78 2002/04/09 13:37:11 sarantis
1647 # fix tar options typo
1649 # Revision 1.77 2002/04/09 13:28:53 swa
1650 # build suse and gen-dist with html docs
1652 # Revision 1.76 2002/04/08 22:43:41 oes
1653 # Fix: Include dotfiles in fixing webserver permissions
1655 # Revision 1.75 2002/04/08 22:14:59 oes
1656 # Silencing tar warnings in the web* targets
1658 # Revision 1.74 2002/04/08 15:22:44 hal9
1659 # This has finishing touches for dok building. Should be ready to go.
1660 # -The main doc build is now 'make dok', should work on Redhat too.
1661 # -Removed man page from main doc build. It is built separately due to
1662 # perl scripts that most aren't likely to have.
1664 # Revision 1.73 2002/04/08 14:03:24 oes
1665 # oes for al: Fix install target
1667 # Revision 1.72 2002/04/08 13:42:11 oes
1668 # Added safety check to *-dist targets; fixed permissions for feedback logfile
1670 # Revision 1.71 2002/04/07 20:32:03 hal9
1671 # -Add meta data kludge for make dok-webserver via $(PERL).
1672 # -Add subdirs for 'make dok-release'.
1674 # Revision 1.70 2002/04/07 08:59:40 swa
1675 # generated files. do NOT edit.
1676 # fixed directory bug in makefile.
1678 # Revision 1.69 2002/04/07 08:10:47 swa
1679 # create some of the webserver docs
1680 # automatically (in particular if
1681 # those docs recycle other documentation
1682 # fragments). Now committed webserver's
1685 # Revision 1.68 2002/04/07 07:58:11 swa
1686 # create some of the webserver docs
1687 # automatically (in particular if
1688 # those docs recycle other documentation
1691 # Revision 1.67 2002/04/07 05:31:42 hal9
1692 # Add 'dok-release' target:
1693 # -Set doc entities to VERSION and CODE_STATUS during make.
1694 # -Set doc conditional content flags (stable vs non-stable).
1695 # A separate target for the time being but needs to be incorporated into
1696 # dok build at some point.
1697 # -Filter out a spurious ^G from new man page > html converion in man2html.
1699 # Revision 1.66 2002/04/06 20:28:21 jongfoster
1700 # Prettifying groff2html.
1701 # Using GNU Make's conditional makefile feature rather than shell "if"s.
1702 # (The shell "if"s were hiding errors)
1703 # "perl" -> "$(PERL)"
1704 # Spaces->tabs in a couple of places.
1706 # Revision 1.65 2002/04/06 05:16:39 hal9
1707 # -Add 'authors' and 'man' targets for AUTHORS and man-page (WIP).
1708 # -Both of these will soon be generated files.
1710 # Revision 1.64 2002/04/04 22:14:51 oes
1711 # No longer rely on find honoring -iname
1713 # Revision 1.63 2002/04/04 21:06:22 swa
1716 # Revision 1.62 2002/04/04 20:49:50 swa
1717 # attempt to consolidate the
1718 # different dokbook versions.
1720 # Revision 1.61 2002/04/04 19:18:21 swa
1721 # readme was leftover directory. use w3m instead
1722 # of lynx to be consistent among developers. use
1723 # consistent target naming.
1725 # Revision 1.60 2002/04/04 12:25:41 oes
1726 # Tidy webserver upload w/o *~ files, CVS dirs and logfiles and with proper dir and file permissions
1728 # Revision 1.59 2002/04/04 08:32:45 swa
1729 # wrong name for tarball-dist target. further fixed content of tarball dist
1731 # Revision 1.58 2002/04/04 06:32:58 hal9
1732 # New dok targets for make readme.
1734 # Revision 1.57 2002/04/04 00:36:36 gliptak
1735 # always use pcre for matching
1737 # Revision 1.56 2002/04/03 22:28:03 gliptak
1738 # Removed references to gnu_regex
1740 # Revision 1.55 2002/04/03 19:54:29 swa
1741 # freebsd tested to work. attempt to move tarball dist target forward
1743 # Revision 1.54 2002/04/03 14:54:07 oes
1744 # Standard clean and clobber semantics II
1746 # Revision 1.53 2002/04/03 14:19:16 oes
1747 # Standard clean and clobber semantics
1749 # Revision 1.52 2002/04/03 02:56:18 hal9
1750 # Revert previous FAQ numbering kludge.
1752 # Revision 1.51 2002/04/02 13:03:56 oes
1753 # Added fix for webserver permissions
1755 # Revision 1.50 2002/04/02 03:46:24 hal9
1756 # Rewrite ldpOK.dsl so that sections are NOT numbered on FAQ, in an effort
1757 # to make the Table of Contents not so 'busy' looking. SuSE needs testing :)
1759 # Revision 1.49 2002/03/30 22:20:12 swa
1760 # cd didn't work. neither did find.
1762 # Revision 1.48 2002/03/30 19:04:06 swa
1763 # people release differently. no good.
1764 # I want to make parts of the docs only.
1766 # Revision 1.47 2002/03/30 09:05:21 swa
1767 # better packaging. better rpm building.
1768 # tar failed on sun (no exclude there).
1770 # Revision 1.46 2002/03/29 20:09:01 swa
1773 # Revision 1.45 2002/03/29 19:45:45 swa
1776 # Revision 1.44 2002/03/29 17:42:44 gliptak
1777 # Correcting for Solaris tar limitations
1779 # Revision 1.43 2002/03/29 07:40:03 swa
1780 # fixed make webserver. doh
1782 # Revision 1.42 2002/03/29 06:59:04 swa
1783 # other users could not modify files on webserver
1785 # Revision 1.41 2002/03/28 20:43:00 swa
1786 # set make correctly
1788 # Revision 1.40 2002/03/28 04:22:44 hal9
1789 # More on man2html stuff.
1791 # Revision 1.39 2002/03/28 01:04:14 hal9
1792 # More man2html stuff for docs.
1794 # Revision 1.38 2002/03/27 16:02:30 swa
1795 # have a generic target
1797 # Revision 1.37 2002/03/27 15:30:26 swa
1798 # have a consistent appearance
1800 # Revision 1.36 2002/03/27 14:58:08 swa
1801 # can be used by mutilple targets
1803 # Revision 1.35 2002/03/27 14:53:19 swa
1804 # added solaris-dist
1806 # Revision 1.34 2002/03/27 10:30:11 swa
1807 # we want a html man file on the webserver
1809 # Revision 1.33 2002/03/27 03:05:35 hal9
1810 # Added man2html target for docs (redhat-dok only for now)
1812 # Revision 1.32 2002/03/26 22:29:54 swa
1813 # we have a new homepage!
1815 # Revision 1.31 2002/03/26 14:00:18 swa
1816 # fixed make tarball, tarball-dist, tarball-clean
1818 # Revision 1.30 2002/03/25 12:52:25 swa
1821 # Revision 1.29 2002/03/24 17:03:55 jongfoster
1824 # Revision 1.28 2002/03/24 16:19:48 swa
1825 # configure needs to be generated.
1827 # Revision 1.27 2002/03/24 16:13:57 swa
1828 # generated files are a nono in cvs
1830 # Revision 1.26 2002/03/24 15:36:02 swa
1833 # Revision 1.25 2002/03/24 14:31:08 swa
1834 # remove more crappy files. set RPM
1835 # release version correctly.
1837 # Revision 1.24 2002/03/24 14:19:55 swa
1838 # set rpm package release in configure.in. nowhere else.
1840 # Revision 1.23 2002/03/24 13:06:49 swa
1841 # suse-clean now runs fine
1843 # Revision 1.22 2002/03/24 12:56:21 swa
1844 # name change related issues.
1846 # Revision 1.21 2002/03/24 12:43:57 swa
1849 # Revision 1.20 2002/03/24 11:39:17 jongfoster
1850 # Renaming config files
1852 # Revision 1.19 2002/03/22 20:53:03 morcego
1853 # - Ongoing process to change name to JunkbusterNG
1854 # - configure/configure.in: no change needed
1856 # - TAR_ARCH = /tmp/JunkbusterNG-$(RPM_VERSION).tar.gz
1857 # - PROGRAM = jbng@EXEEXT@
1858 # - rh-spec now references as junkbusterng-rh.spec
1859 # - redhat-upload: references changed to junkbusterng-* (package names)
1860 # - tarball-dist: references changed to JunkbusterNG-distribution-*
1861 # - tarball-src: now JunkbusterNG-*
1862 # - install: initscript now junkbusterng.init and junkbusterng (when
1864 # - junkbuster-rh.spec: renamed to junkbusterng-rh.spec
1865 # - junkbusterng.spec:
1866 # - References to the expression ijb where changed where possible
1867 # - New package name: junkbusterng (all in lower case, acording to
1868 # the LSB recomendation)
1869 # - Version changed to: 2.9.13
1871 # - Added: junkbuster to obsoletes and conflicts (Not sure this is
1872 # right. If it obsoletes, why conflict ? Have to check it later)
1873 # - Summary changed: Stefan, please check and aprove it
1874 # - Changes description to use the new name
1875 # - Sed string was NOT changed. Have to wait to the manpage to
1877 # - Keeping the user junkbuster for now. It will require some aditional
1878 # changes on the script (scheduled for the next specfile release)
1879 # - Added post entry to move the old logfile to the new log directory
1880 # - Removing "chkconfig --add" entry (not good to have it automaticaly
1881 # added to the startup list).
1882 # - Added preun section to stop the service with the old name, as well
1883 # as remove it from the startup list
1884 # - Removed the chkconfig --del entry from the conditional block on
1885 # the preun scriptlet (now handled on the %files section)
1886 # - junkbuster.init: renamed to junkbusterng.init
1887 # - junkbusterng.init:
1888 # - Changed JB_BIN to jbng
1889 # - Created JB_OBIN with the old value of JB_BIN (junkbuster), to
1890 # be used where necessary (config dir)
1893 # - The config directory is /etc/junkbuster yet. Have to change it on the
1894 # specfile, after it is changes on the code
1895 # - The only files that got renamed on the cvs tree were the rh specfile and
1896 # the init file. Some file references got changes on the makefile and on the
1897 # rh-spec (as listed above)
1899 # Revision 1.18 2002/03/21 23:00:00 swa
1900 # want to autogenerate stuff.
1902 # Revision 1.17 2002/03/19 19:30:04 morcego
1903 # - Fixing stylesheet checking on configure. If it is found, no further checks
1906 # - configure will now check for db2html or docbook2html (should work now
1907 # on SuSe without the docbktls package)
1909 # Revision 1.16 2002/03/14 22:32:32 hal9
1910 # Bumped the RPM version.
1912 # Revision 1.15 2002/03/08 20:00:28 swa
1915 # Revision 1.14 2002/03/07 18:25:56 swa
1916 # synced redhat and suse build process
1918 # Revision 1.13 2002/03/07 17:17:56 oes
1919 # (Hopefully) fixed for older make versions
1921 # Revision 1.12 2002/03/07 15:28:27 swa
1924 # Revision 1.11 2002/03/06 14:33:18 sarantis
1925 # Use proper temp file, not "abc".
1927 # Revision 1.10 2002/03/06 14:19:35 sarantis
1928 # Cleanup PID_FILE_PATH from redhat-dist target
1930 # Revision 1.9 2002/03/05 17:31:11 morcego
1931 # Search for docbook.dsl. Should solve portability problems for SuSe.
1933 # Revision 1.8 2002/03/05 14:07:42 morcego
1934 # configure now detects rpm topdir, and change GNUmakefile acordingly
1935 # (based on sugestion by Sarantis Paskalis)
1937 # Revision 1.7 2002/03/05 13:43:28 morcego
1938 # Checking for text browser, so redhat-dok can work.
1940 # Revision 1.6 2002/03/05 13:10:51 morcego
1941 # Changes to implement redhat-dok (Hal Burgiss)
1942 # Changes to make it work on other distros and out-of-the-shelf configurations
1944 # Revision 1.5 2002/02/27 15:30:39 hal9
1945 # Reset $(RPM_PACKAGEV) to 1 (was 2)
1947 # Revision 1.4 2002/01/17 21:44:04 jongfoster
1948 # Adding urlmatch.[ch]
1950 # Revision 1.3 2002/01/04 15:26:08 oes
1951 # Added tarball-src target
1953 # Revision 1.2 2001/12/30 14:07:31 steudten
1954 # - Add signal handling (unix)
1955 # - Add SIGHUP handler (unix)
1956 # - Add creation of pidfile (unix)
1957 # - Add action 'top' in rc file (RH)
1958 # - Add entry 'SIGNALS' to manpage
1959 # - Add exit message to logfile (unix)
1961 # Revision 1.1 2001/12/01 11:22:57 jongfoster
1962 # Renaming Makefile.in to GNUmakefile.in so that non-GNU versions of
1963 # make break in a more obvious way.
1964 # Adding .PHONY section.
1966 # Revision 1.40 2001/12/01 00:24:11 jongfoster
1967 # Renaming various config files
1968 # Fixing CR->CRLF under Win32 (I hope)
1970 # Revision 1.39 2001/11/06 12:07:30 steudten
1971 # Add --clean for building rpm in target redhat-dist.
1973 # Revision 1.38 2001/11/05 21:35:23 steudten
1974 # Complete rewrite for the 'redhat-dist' target.
1975 # Checks for writeable RPM build directories for calling user.
1976 # So you must not be root, just set the modes to 1777 to
1977 # build a RH package.
1978 # Fix the upload-target to be arch independant.
1979 # Add target for 'solaris-dist' - coming soon.
1981 # Revision 1.37 2001/11/01 00:52:04 hal9
1982 # Redhat-upload stuff per Stefan.
1984 # Revision 1.36 2001/10/31 19:26:13 swa
1985 # automate process of uploading new releases
1988 # Revision 1.35 2001/10/15 22:14:59 joergs
1989 # Removed -O2 and -Wall from AmigaOS-only CFLAGS since they are now in
1990 # the general CFLAGS already.
1992 # Revision 1.34 2001/10/15 18:28:06 steudten
1993 # remove config.cache for target clobber.
1994 # Cleanup make dist for RH and S.u.S.E.
1996 # Revision 1.33 2001/10/10 12:43:33 oes
1997 # Added ugly hack to make install target work at least for some setups.
1999 # Revision 1.32 2001/10/09 22:38:19 jongfoster
2000 # Correcting actionsfile filename for Win32 INI build
2002 # Revision 1.31 2001/09/23 10:13:48 swa
2003 # upload process established. run make webserver and
2004 # the documentation is moved to the webserver. documents
2005 # are now linked correctly.
2007 # Revision 1.30 2001/09/19 17:55:49 oes
2010 # Revision 1.29 2001/09/16 17:34:27 jongfoster
2011 # Removing showargs.[ch], adding cgi(simple|edit).[ch]
2012 # Replacing $(OBJEXT) with @OBJEXT@ - this seems to be a common source
2013 # of build problems.
2015 # Revision 1.28 2001/09/13 15:19:08 swa
2016 # we want text files as well.
2018 # Revision 1.27 2001/09/13 13:11:37 steudten
2020 # Replace DEBUG_CFLAGS with OTHER_CFLAGS
2022 # Revision 1.26 2001/09/12 23:44:54 david__schmidt
2023 # Mac OSX (Darwin) support added.
2025 # Revision 1.25 2001/09/12 22:55:45 joergs
2026 # AmigaOS support added.
2028 # Revision 1.24 2001/09/12 17:28:59 david__schmidt
2030 # OS/2 port: update autoconf'd support for the platform.
2032 # Revision 1.23 2001/09/12 16:28:42 swa
2033 # added "make dok" section to generate html pages from
2034 # the sgml source documents. note that the we do not want
2035 # generated stuff in cvs.
2037 # Revision 1.22 2001/09/10 16:31:23 swa
2038 # buildroot definition in the specfile fucks up the build
2039 # process under suse. hence I moved it to the "rpm -ta"
2042 # Revision 1.21 2001/09/10 11:12:49 oes
2045 # Revision 1.20 2001/08/02 22:04:29 jongfoster
2046 # Removing some remaining references to obsolete w32rulesdlg.[ch]
2048 # Revision 1.19 2001/07/30 22:14:03 jongfoster
2049 # Removing obsolete w32rulesdlg.c and w32rulesdlg.h
2051 # Revision 1.18 2001/07/29 17:09:17 jongfoster
2052 # Major changes to build system in order to fix these bugs:
2053 # - pthreads under Linux was broken - changed -lpthread to -pthread
2054 # - Compiling in MinGW32 mode under CygWin now correctly detects
2055 # which shared libraries are available
2056 # - Solaris support (?) (Not tested under Solaris yet)
2058 # Revision 1.17 2001/07/28 16:44:54 oes
2059 # Fixed sed LF->CRLF conversion and removed deprecated files
2061 # Revision 1.16 2001/07/15 19:45:33 jongfoster
2062 # Added support for linking with POSIX threads library
2064 # Revision 1.15 2001/07/13 13:48:07 oes
2065 # - Moved STATIC #define for pcre to (ac)config.h
2066 # - Made -Ipcre depandant on static pcre compilation to
2067 # avoid version conflicts
2068 # - Included compilation and depandancies for new deanimate.c
2069 # - Made changes to the pcre/pcreposix/pcrs build process
2070 # as required by the new library autodetection in
2073 # Revision 1.14 2001/07/01 16:27:44 oes
2074 # Fixed misplaced dependancy
2076 # Revision 1.13 2001/06/29 13:18:36 oes
2077 # - added depandancy of filters.o on cgi.h
2079 # Revision 1.12 2001/06/12 17:15:56 swa
2080 # fixes, because a clean build on rh6.1 was impossible.
2081 # GZIP confuses make, %configure confuses rpm, etc.
2083 # Revision 1.11 2001/06/11 11:26:35 sarantis
2084 # RPM version should be the same as ijbswa version. The rpm release is
2085 # specified in the specfile.
2087 # Revision 1.10 2001/06/07 17:27:45 swa
2088 # added suse build section
2090 # Revision 1.9 2001/06/04 18:31:58 swa
2091 # files are now prefixed with either `confdir' or `logdir'.
2092 # `make redhat-dist' replaces both entries confdir and logdir
2093 # with redhat values
2095 # Revision 1.8 2001/06/04 10:44:57 swa
2096 # `make redhatr-dist' now works. Except for the paths
2097 # in the config file.
2099 # Revision 1.7 2001/06/03 17:09:09 swa
2100 # swa for oes: reversed my earlier change
2102 # Revision 1.6 2001/06/03 17:07:27 swa
2105 # Revision 1.5 2001/06/03 13:57:26 swa
2106 # compile cgi.c (for andreas' GUI)
2108 # Revision 1.4 2001/05/31 21:18:45 jongfoster
2109 # Added files actions.[ch], actionlist.h, list.[ch] to Makefile
2111 # Revision 1.3 2001/05/29 20:02:48 joergs
2112 # Changes for AmigaOS added.
2114 # Revision 1.2 2001/05/17 22:23:23 oes
2115 # - Added auto-generation of CRLFs for Win32 config files
2116 # - Added comment-prefix to all Win32-only options in the config file
2117 # and provided auto stripping of this prefix for the Win32 platform by make
2119 # Revision 1.1.1.1 2001/05/15 13:59:00 oes
2120 # Initial import of version 2.9.3 source tree