1 # Note: Makefile is built automatically from Makefile.in
3 # $Id: GNUmakefile.in,v 1.168 2008/05/23 18:03:12 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 #############################################################################
58 datarootdir = @datarootdir@
60 exec_prefix = @exec_prefix@
61 CONF_BASE = @sysconfdir@
64 MAN_DEST = $(MAN_DIR)/man1
65 SHARE_DEST = @datadir@
66 DOC_DEST = $(SHARE_DEST)/doc/privoxy
67 VAR_DEST = @localstatedir@
68 LOGS_DEST = $(VAR_DEST)/log/privoxy
69 PIDS_DEST = $(VAR_DEST)/run
71 # if $prefix = /usr/local then the default CONFDEST change from
72 # CONF_DEST = $(CONF_BASE) to CONF_DEST = $(CONF_BASE)/privoxy
73 # by the target rule CONF_DEST
75 # also if the $prefix is /usr/local and there is no
76 # $(SHARE_DEST)/doc, it checks for $prefix/doc and installs there
77 # instead in this situation
79 # finally if $prefix=/usr/local and VAR_DEST=$prefix/var it
80 # changes this to /var for storing the logs and pidfile
82 # used in source dir only, the install goes to $share_dest/doc/privoxy
83 DOK_WEB = doc/webserver/
85 # Install usage should be compatible with install-sh.
89 # Support files, docs, etc.
93 # Files daemon writes to.
95 INSTALL_P = -m $(BIN_MODE)
96 INSTALL_T = -m $(RA_MODE)
97 INSTALL_D = -m $(DIR_MODE) -d
98 INSTALL_R = -m $(RWD_MODE)
100 # install options for superuser install
101 #INSTALL_S = -g @GROUP@ -o @USER@
103 #############################################################################
105 #############################################################################
107 PROGRAM = privoxy@EXEEXT@
112 # id -u is not universal. FIXME: need to set from configure. Breaks on
120 MKDIR = ./mkinstalldirs
136 WDUMP = @WDUMP@ -dump
139 DB = $(JADEBIN) $(JADECAT) -ihtml -t sgml -D.. -d ldp.dsl\#html
141 MAN2HTML = @MAN2HTML@
142 G2H_CMD = groff -mandoc -Thtml
146 DOC_TMP = $(DOC_DIR)/tmp
147 DOC_STATUS = @DOC_STATUS@
149 # Program to do LF->CRLF
151 # The sed version should be the most portable, but it doesn't for for me,
152 # the other two do. FIXME.
154 #DOSFILTER = $(SED) -e $$'s,$$,\r,'
155 #DOSFILTER = gawk -v ORS='\r\n' '{print $0;}'
156 DOSFILTER = $(PERL) -p -e 's/\n/\r\n/'
157 CVSROOT = :pserver:anonymous@ijbswa.cvs.sourceforge.net:/cvsroot/ijbswa
158 #TMPDIR := $(shell mktemp -d /tmp/$(PROGRAM).XXXXXX)
160 #############################################################################
161 # Setup for make distribution rh and suse for now
162 #############################################################################
164 TAR_ARCH = /tmp/privoxy-$(RPM_VERSION).tar.gz
165 RPM_BASE = @RPM_BASE@
167 #############################################################################
168 # We include these files in our distributions
169 #############################################################################
170 CONFIGS = config trust default.action standard.action user.action default.filter user.filter
171 # take care that no CVS .cvsignore or other crappy files
173 # and escape every '#' in the find. doh.
174 CONFIG_FILES = $(CONFIGS) \
175 `find templates/ -type f | grep -v "CVS" | grep -v "\.\#" | grep -v ".*~" | grep -v ".cvsignore" | grep -v "TAGS"`
177 DOC_FILES = AUTHORS LICENSE README ChangeLog INSTALL \
178 `find doc/text/ -type f | grep -v "CVS" | grep -v "\.\#" | grep -v ".*~" | grep -v ".cvsignore" | grep -v "TAGS"` \
179 `find doc/webserver/ -name "*.html" | grep -v "\(webserver\|team\)\/index\.html"` \
180 `find doc/webserver/ -name "*.css"` \
184 #############################################################################
185 # Filenames and libraries
186 #############################################################################
188 C_SRC = actions.c cgi.c cgiedit.c cgisimple.c deanimate.c encode.c \
189 errlog.c filters.c gateway.c jbsockets.c jcc.c \
190 list.c loadcfg.c loaders.c miscutil.c parsers.c ssplit.c \
193 C_OBJS = $(C_SRC:.c=.@OBJEXT@)
194 C_HDRS = $(C_SRC:.c=.h) project.h actionlist.h
196 W32_SRC = @WIN_ONLY@w32log.c w32taskbar.c win32.c w32svrapi.c
197 W32_FILES = @WIN_ONLY@w32.res
198 W32_OBJS = @WIN_ONLY@$(W32_SRC:.c=.@OBJEXT@) $(W32_FILES)
199 W32_HDRS = @WIN_ONLY@w32log.h w32taskbar.h win32.h w32res.h w32svrapi.h
200 W32_LIB = @WIN_ONLY@-lwsock32 -lcomctl32
201 W32_INIS = @WIN_ONLY@config.txt trust.txt
203 PCRS_SRC = @STATIC_PCRS_ONLY@pcrs.c
204 PCRS_OBJS = @STATIC_PCRS_ONLY@$(PCRS_SRC:.c=.@OBJEXT@)
205 PCRS_HDRS = @STATIC_PCRS_ONLY@$(PCRS_SRC:.c=.h)
207 PCRE_SRC = @STATIC_PCRE_ONLY@pcre/get.c pcre/maketables.c pcre/study.c pcre/pcre.c
208 PCRE_OBJS = @STATIC_PCRE_ONLY@$(PCRE_SRC:.c=.@OBJEXT@)
209 PCRE_HDRS = @STATIC_PCRE_ONLY@pcre/config.h pcre/chartables.c pcre/internal.h pcre/pcre.h
211 # No REGEX (maybe because dynamically linked pcreposix):
213 @STATIC_PCRE_ONLY@REGEX_SRC = pcre/pcreposix.c
215 REGEX_OBJS = $(REGEX_SRC:.c=.@OBJEXT@)
216 REGEX_HDRS = $(REGEX_SRC:.c=.h)
218 # Dependencies introduced by #include "project.h".
219 PROJECT_H_DEPS = project.h $(REGEX_HDRS) $(PCRS_HDRS) @STATIC_PCRE_ONLY@pcre/pcre.h
221 # Socket libraries for platforms that need them explicitly defined
222 SOCKET_LIB = @SOCKET_LIB@
224 # PThreads library, if needed.
225 PTHREAD_LIB = @PTHREAD_ONLY@@PTHREAD_LIB@
227 SRCS = $(C_SRC) $(W32_SRC) $(PCRS_SRC) $(PCRE_SRC) $(REGEX_SRC)
228 OBJS = $(C_OBJS) $(W32_OBJS) $(PCRS_OBJS) $(PCRE_OBJS) $(REGEX_OBJS)
229 HDRS = $(C_HDRS) $(W32_HDRS) $(PCRS_HDRS) $(PCRE_OBJS) $(REGEX_HDRS)
230 LIBS = @LIBS@ $(W32_LIB) $(SOCKET_LIB) $(PTHREAD_LIB)
233 #############################################################################
235 #############################################################################
237 # The flag "-mno-win32" can be used by Cygwin to emulate a un?x type build.
238 # The flag "-mwindows -mno-cygwin" will cause Cygwin to use MingW32 for a
240 # The flag "-pthread" is required if using Pthreads under Linux (and
241 # possibly other OSs).
242 SPECIAL_CFLAGS = @SPECIAL_CFLAGS@
244 # Add your flags here
247 CFLAGS = @CFLAGS@ @CPPFLAGS@ $(OTHER_CFLAGS) $(SPECIAL_CFLAGS) -Wall \
248 @STATIC_PCRE_ONLY@ -Ipcre
250 LDFLAGS = @LDFLAGS@ $(DEBUG_CFLAGS) $(SPECIAL_CFLAGS)
253 #############################################################################
256 # There should NOT be any targets above this line.
257 #############################################################################
258 all: $(PROGRAM) default.action
261 #############################################################################
263 #############################################################################
264 .PHONY: all inifiles redhat-dist redhat-upload solaris-dist suse-dist \
265 suse-upload win-dist tarball-dist dok redhat-dok webserver clean clobber tags \
266 install conectiva-spec conectiva-dist conectiva-upload CONF_DEST LOG_DEST \
267 PID_DEST check_doc install-strip uninstall GROUP_T
269 #############################################################################
270 # Define this explicitly because Solaris is broken!
271 #############################################################################
273 $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
276 #############################################################################
277 # Strip master copy comments from default.action:
278 #############################################################################
279 default.action: default.action.master
280 $(GREP) -v '^#MASTER#' $< > $@
282 #############################################################################
284 #############################################################################
286 inifiles: $(W32_INIS)
289 $(SED) -e 's!\trustfile trust!trustfile trust.txt!' \
290 -e 's!\jarfile jarfile!jarfile jar.log!' \
291 -e 's!\logfile logfile!logfile privoxy.log!' \
292 -e 's!#Win32-only: !!' \
295 # LF to CRLF in default.action
296 $(DOSFILTER) <default.action >default.action.txt && mv default.action.txt default.action
297 # LF to CRLF in default.filter
298 $(DOSFILTER) <default.filter >default.filter.txt && mv default.filter.txt default.filter
301 $(DOSFILTER) < $< > $@
303 #############################################################################
305 #############################################################################
307 @if [ -d CVS ]; then \
308 $(ECHO) "***************************************************"; \
310 $(ECHO) "*** WARNING ***"; \
312 $(ECHO) "*** The presence of a CVS subdirectory suggests ***"; \
313 $(ECHO) "*** that you are trying to build a distribution ***"; \
314 $(ECHO) "*** package based on a checked out, not an ***"; \
315 $(ECHO) "*** exported copy of the source tree. Please ***"; \
316 $(ECHO) "*** see \"Releasing a new version\" in the ***"; \
317 $(ECHO) "*** developer manual. ***"; \
319 $(ECHO) "***************************************************"; \
320 $(ECHO) "Type \"yes i am sure\" if you are sure that you"; \
321 $(ECHO) -n "really want to proceed: "; \
323 if [ "$$answer" != "yes i am sure" ]; then exit 1; fi \
327 #############################################################################
328 # create tar.gz from CVS:
329 # This make-target is usually called through 'create-archive'. If you
330 # run 'make create-snapshot' without setting SNAPVERSION, you'll get a
331 # tar.gz with the current date in the name and as a releasenumber in the
332 # spec-file. But the main usage is to run it as follows (Red Hat example):
333 # make SNAPVERSION=1.6x create-snapshot
334 # This creates a tar.gz and spec-file for a Red Hat 6.x version.
335 #############################################################################
337 @tag=`cvs -d $(CVSROOT) status Makefile | awk ' /Sticky Tag/ { print $$3 } '` 2> /dev/null; \
338 [ x"$$tag" = x"(none)" ] && tag=HEAD; \
339 echo "*** Creating package from $$tag!"; \
340 TMPDIR=$(shell mktemp -d /tmp/$(PROGRAM).XXXXXX); \
341 cd $$TMPDIR ; cvs -Q -d $(CVSROOT) export -r $$tag current || echo "Um... export aborted."; \
342 cd $$TMPDIR/current; \
343 TMPFILE=$$(mktemp -q /tmp/$(PROGRAM).XXXXXX); \
344 if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \
345 -e 's/^\(Release:\).*/\1 $(SNAPVERSION)/g' \
346 privoxy-rh.spec > $$TMPFILE ; then \
347 $(MV) -f $$TMPFILE privoxy-rh.spec; \
349 $(ECHO) "Could not set version info in specfile."; \
352 if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \
353 -e 's/^\(Release:\).*/\1 $(SNAPVERSION)/g' \
354 privoxy-suse.spec > $$TMPFILE ; then \
355 $(MV) -f $$TMPFILE privoxy-suse.spec; \
357 $(ECHO) "Could not set version info in specfile."; \
361 cd $$TMPDIR/current; \
362 $(TAR) --exclude ".cvsignore" --exclude "CVS" \
363 -czf /tmp/$(PROGRAM)-$(VERSION).tar.gz .; \
365 @echo "Resulting file is /tmp/$(PROGRAM)-$(VERSION).tar.gz"
368 #############################################################################
369 # looks at the version of Makefile and exports a corresponding source-tree
370 # example: if the Makefile has the sticky tag v_2_9_13, you'll get
371 # privoxy-*-2.4.13.tar.gz. Two different tar files will be written, one for
372 # Red Hat and one for SuSe (different spec-files)
373 #############################################################################
375 make SNAPVERSION=$(SNAPVERSION) create-snapshot
377 #############################################################################
378 # RPM specifice stuff (SuSE or Redhat, ..)
379 #############################################################################
380 rpm-stuff: dist-check clean clobber
381 for dir in RPMS SRPMS BUILD SOURCES SPECS; do \
382 if [ ! -w $(RPM_BASE)/$$dir ]; then \
383 $(ECHO) "$(RPM_BASE)/$$dir is not writable for you. Maybe try as root."; \
384 $(ECHO) "Or add a suitable path to .rpmmacros like."; \
385 $(ECHO) "%_topdir /home/foo/rpm-build"; \
391 @if [ "$(RPM_PACKAGEV)" = "" ]; then \
393 echo " ERROR: NO RPM_PACKAGEV VALUE"; \
394 echo " No value given for RPM_PACKAGEV. Please use:"; \
395 echo " make dist-upload RPM_PACKAGEV=release"; \
396 echo " where \"release\" is the release number you want to and"; \
397 echo " where \"dist\" is the name of the distro (redhat or suse)"; \
399 echo " Ex: make redhat-upload RPM_PACKAGEV=1"; \
401 echo "ATTENTION: If your distribution use a specific tag on the"; \
402 echo " release field (like \"cl\" for Conectiva, and"; \
403 echo " \"mdk\" for Mandrake), DO NOT put it on the value"; \
404 echo " given to RPM_PACKAGEV. It will be added automaticaly."; \
405 echo " Do it like you would do for a redhat package,"; \
406 echo " (i.e. just the number)."; \
412 #############################################################################
413 # Create Conectiva specfile from RedHat specfile
414 #############################################################################
416 $(RM) privoxy-cl.spec
417 chmod a+x genclspec.sh
420 #############################################################################
421 # Conectiva distribution for x86
422 #############################################################################
423 conectiva-dist: rpm-stuff conectiva-spec
425 $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude "privoxy-suse.spec" --exclude "privoxy-rh.spec" --exclude "PACKAGERS" -czf $(TAR_ARCH) .
426 $(RPMBUILD) --clean -ta $(TAR_ARCH)
427 if [ -f $(TAR_ARCH) ]; then $(RM) $(TAR_ARCH); fi
429 conectiva-upload: check-release
430 make redhat-upload RPM_PACKAGEV=$(RPM_PACKAGEV)cl
432 #############################################################################
433 # redhat distribution alpha and x86
434 #############################################################################
435 redhat-dist: rpm-stuff
437 $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude "privoxy-suse.spec" --exclude "privoxy-cl.spec" --exclude "PACKAGERS" -czf $(TAR_ARCH) .
438 $(RPMBUILD) --clean -ta $(TAR_ARCH)
439 if [ -f $(TAR_ARCH) ]; then $(RM) $(TAR_ARCH); fi
441 # For testing build issues only! Use redhat-dist for official releases.
444 $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude "privoxy-suse.spec" --exclude "privoxy-cl.spec" --exclude "PACKAGERS" -czf $(TAR_ARCH) .
445 $(RPMBUILD) --clean -tb $(TAR_ARCH)
446 if [ -f $(TAR_ARCH) ]; then $(RM) $(TAR_ARCH); fi
447 @echo "WARNING: This target is only for testing. Use redhat-dist for releases!!!"
449 # anonymously ncftps the rpms to sourceforge
450 redhat-upload: check-release
451 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/SRPMS/privoxy-$(RPM_VERSION)-$(RPM_PACKAGEV).src.rpm
452 # better should use `arch` here instead of ix86 to support other platforms too
453 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/RPMS/*/privoxy-$(RPM_VERSION)-$(RPM_PACKAGEV).*.rpm
454 @$(ECHO) -------------------------------------------------------
456 @$(ECHO) https://sourceforge.net/project/admin/editpackages.php?group_id=11118
457 @$(ECHO) ... and release the files.
458 @$(ECHO) -------------------------------------------------------
459 # w3m http://sourceforge.net/project/admin/editpackages.php?group_id=11118
462 #############################################################################
463 # Creates a Red Hat sourcepackage from CVS (not from the current sources
465 #############################################################################
468 $(RPMBUILD) -ts --nodeps $(PROGRAM)-$(VERSION).tar.gz
471 #############################################################################
472 # suse distribution. works fine. no need to be root.
473 #############################################################################
475 # TMPFILE=$$(mktemp -q /tmp/$(PROGRAM).XXXXXX); \
476 # if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \
477 # -e 's/^\(Release:\).*/\1 $(RPM_PACKAGEV)/g' \
478 # privoxy-suse.spec > $$TMPFILE ; then \
479 # $(MV) -f $$TMPFILE privoxy-suse.spec; \
481 # $(ECHO) "Could not set version info in specfile."; \
485 $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude "privoxy-rh.spec" --exclude "privoxy-cl.spec" --exclude "PACKAGERS" -czf $(TAR_ARCH) .
486 $(RPMBUILD) --clean -ta $(TAR_ARCH)
487 if [ -f $(TAR_ARCH) ]; then $(RM) $(TAR_ARCH); fi
489 # anonymously ncftps the rpms to sourceforge
490 suse-upload: check-release
491 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/SRPMS/privoxy-suse-$(RPM_VERSION)-$(RPM_PACKAGEV).src.rpm
492 # better should use `arch` here instead of ix86 to support other platforms too
493 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/RPMS/*/privoxy-suse-$(RPM_VERSION)-$(RPM_PACKAGEV).*.rpm
494 @$(ECHO) -------------------------------------------------------
496 @$(ECHO) https://sourceforge.net/project/admin/editpackages.php?group_id=11118
497 @$(ECHO) ... and release the files.
498 @$(ECHO) -------------------------------------------------------
500 # handle with care. use with root.
502 $(RPM) -e junkbuster-suse || true
503 $(RM) -r /etc/junkbuster
504 $(RM) -r /etc/rc.d/junkbuster*
505 $(RM) -r /var/run/junkbuster.pid
506 $(RM) -r /var/log/junkbuster
507 $(RM) /etc/init.d/junkbuster
508 $(RM) /usr/sbin/junkbuster
509 $(RM) /usr/sbin/rcjunkbuster
510 $(RM) /usr/share/man/man1/junkbuster.1.gz
511 $(RPM) -e privoxy-suse || true
512 $(RM) -r /etc/privoxy
513 $(RM) -r /etc/rc.d/privoxy*
514 $(RM) -r /var/run/privoxy.pid
515 $(RM) -r /var/log/privoxy
516 $(RM) /etc/init.d/privoxy
517 $(RM) /usr/sbin/privoxy
518 $(RM) /usr/sbin/rcprivoxy
519 $(RM) /usr/share/man/man1/privoxy.1.gz
521 #############################################################################
522 # generic distribution
523 #############################################################################
526 @$(ECHO) "You have run autoconf && autoheader && ./configure right?"
529 $(STRIP_PROG) $(PROGRAM)
530 $(LN) -s current ../privoxy-$(VERSION)-$(CODE_STATUS)
532 (cd .. && $(TAR) -cvhf --exclude "PACKAGERS" privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar privoxy-$(VERSION)-$(CODE_STATUS)/$(PROGRAM))
534 for foo in $(CONFIG_FILES); do \
535 (cd .. && $(TAR) -uvhf --exclude "PACKAGERS" privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar privoxy-$(VERSION)-$(CODE_STATUS)/$$foo;) \
538 for foo in $(DOC_FILES); do \
539 (cd .. && $(TAR) -uvhf --exclude "PACKAGERS" privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar privoxy-$(VERSION)-$(CODE_STATUS)/$$foo;) \
541 # and zip the archive
542 $(RM) ../privoxy-$(VERSION)-$(CODE_STATUS)
543 $(GZIP_PROG) ../privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar
544 @$(ECHO) Distribution with binary created.
546 # anonymously ncftps the package to sourceforge
548 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming ../privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar.gz
549 @$(ECHO) -------------------------------------------------------
551 @$(ECHO) https://sourceforge.net/project/admin/editpackages.php?group_id=11118
552 @$(ECHO) ... and release the files.
553 @$(ECHO) -------------------------------------------------------
557 $(RM) privoxy-$(TARGET_OS)-$(VERSION)-$(CODE_STATUS)-src.tar*
559 #############################################################################
560 # solaris distribution. verified on SF machines by swa.
561 #############################################################################
562 solaris-dist: gen-dist
564 # anonymously ncftps the package to sourceforge
565 solaris-upload: gen-upload
568 solaris-clean: gen-clean
571 #############################################################################
573 #############################################################################
575 @$(ECHO) coming soon.
577 @$(ECHO) coming soon.
579 #############################################################################
580 # debian distribution
581 #############################################################################
583 @$(ECHO) coming soon.
585 @$(ECHO) coming soon.
587 #############################################################################
588 # macosx distribution
589 #############################################################################
591 @$(ECHO) coming soon.
593 @$(ECHO) coming soon.
595 #############################################################################
597 #############################################################################
599 @$(ECHO) coming soon.
601 @$(ECHO) coming soon.
603 #############################################################################
604 # freebsd distribution. verified on SF machines by swa.
605 #############################################################################
606 freebsd-dist: gen-dist
608 # anonymously ncftps the package to sourceforge
609 freebsd-upload: gen-upload
612 freebsd-clean: gen-clean
615 #############################################################################
616 # Windows distribution
617 #############################################################################
619 $(ECHO) Not implemented.
622 #############################################################################
623 # Tarball distribution: No CVS dirs, dotfiles, debian build dir,
624 # (FIXME:) only parts of the static / generated docs mix in doc/webserver
625 #############################################################################
627 tarball-dist: dist-check clean clobber
628 $(LN) -s current ../privoxy-$(VERSION)-$(CODE_STATUS)
630 for i in `find . -type f -a -not \( -path "*/CVS*" -o -name ".*" \
631 -o -path "*/debian/*" -o -path "*/actions/*" -o -name "*.php" -o \
632 -name "PACKAGERS" -o -path "*/pdf/*" \)`; do \
633 files="$$files privoxy-$(VERSION)-$(CODE_STATUS)/$$i"; \
635 cd .. && $(TAR) -cvhf privoxy-$(VERSION)-$(CODE_STATUS)-src.tar $$files ; \
637 # and zip the archive
638 $(RM) ../privoxy-$(VERSION)-$(CODE_STATUS)
639 $(GZIP_PROG) ../privoxy-$(VERSION)-$(CODE_STATUS)-src.tar
640 @$(ECHO) Tarball distribution created.
642 # anonymously ncftps the tarball to sourceforge
644 ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming ../privoxy-$(VERSION)-$(CODE_STATUS)-src.tar.gz
645 @$(ECHO) -------------------------------------------------------
647 @$(ECHO) https://sourceforge.net/project/admin/editpackages.php?group_id=11118
648 @$(ECHO) ... and release the files.
649 @$(ECHO) -------------------------------------------------------
652 $(RM) ../privoxy-$(VERSION)-$(CODE_STATUS)-src.tar.gz
654 #############################################################################
658 # converts doc/source/*.sgml into html, text, pdf and man pages
660 #############################################################################
664 $(RM) doc/webserver/developer-manual/*.html
665 $(RM) -r doc/source/developer-manual
666 mkdir -p doc/text doc/source/developer-manual
667 cd doc/source/developer-manual && $(DB) ../developer-manual.sgml && cd .. && cp developer-manual/*.html ../webserver/developer-manual/
668 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
672 $(RM) doc/webserver/user-manual/*.html
673 $(RM) -r doc/source/user-manual/
674 mkdir -p doc/text doc/source/user-manual
675 cd doc/source/user-manual && $(DB) -iuser-man ../user-manual.sgml && cd .. && cp user-manual/*.html ../webserver/user-manual/
676 # FIXME: temp fix so same stylesheet gets in more than one place so it works
677 # for all doc set-ups, including the 'user manual' config option in local
678 # system where it MUST be in same directory as html.
679 $(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
680 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
684 $(RM) doc/webserver/faq/*.html
685 $(RM) -r doc/source/faq
686 mkdir -p doc/text doc/source/faq
687 cd doc/source/faq && $(DB) ../faq.sgml && cd .. && cp faq/*.html ../webserver/faq/
688 cd doc/source && $(DB) -V nochunks faq.sgml > tmp.html && env -u LANG $(WDUMP) tmp.html > ../text/faq.txt && $(RM) -r tmp.html faq
690 # man page, one variation. Try to use the next target, just 'make man'.
692 $(RM) doc/man/* doc/webserver/man-page/*.html
693 ifneq ($(MAN2HTML),false)
694 $(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
695 man ./privoxy.1 | $(MAN2HTML) -bare >> doc/webserver/man-page/privoxy-man-page.html
696 $(ECHO) "</body></html>" >> doc/webserver/man-page/privoxy-man-page.html
701 # Build man page from sgml. This requires the SGMLSpm perl module.
702 # See CPAN, or your favorite perl repository. This is the preferred
703 # target for man page generation!
705 mkdir -p doc/source/temp && cd doc/source/temp && $(RM) * ;\
706 nsgmls ../privoxy-man-page.sgml | sgmlspl ../../../utils/docbook2man/docbook2man-spec.pl &&\
707 perl -pi.bak -e 's/ <URL:.*>//; s/\[ /\[/g' privoxy.1 ;\
708 $(DB) ../privoxy-man-page.sgml && $(MV) -f privoxy.1 ../../../privoxy.1
710 # For those with man2html ala RH7s.
712 mkdir -p doc/webserver/man-page
713 ifneq ($(MAN2HTML),false)
714 $(MAN2HTML) privoxy.1 |grep -v "^Content-type" > tmp.html
715 $(PERL) -pi.bak -e 's/<A .*Contents<\/A>//; s/<A .*man2html<\/A>/man2html/' tmp.html
716 $(PERL) -pi.bak -e 's/(<\/HEAD>)/<LINK REL=\"STYLESHEET\" TYPE=\"text\/css\" HREF=\"..\/p_doc.css\"><\/HEAD>/' tmp.html
717 # Twice because my version of man2html is pulling in commas and periods in URLs.
718 $(PERL) -pi.bak -e 's/(<A.*),(">)/$$1$$2/g' tmp.html
719 $(PERL) -pi.bak -e 's,\.">,">,g' tmp.html
720 # Get rid of spurious
\a from conversion. (How to do this with perl?)
721 $(SED) -e 's/
\a//g' tmp.html > doc/webserver/man-page/privoxy-man-page.html && $(RM) tmp.*
727 # Otherwise we get plain groff conversion.
729 $(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
732 # readme page and INSTALL file
733 dok-readme: dok-release
734 cd doc/source && $(DB)-notoc -V nochunks readme.sgml > tmp.html &&\
735 env -u LANG $(WDUMP) tmp.html > ../../README ;\
736 $(DB)-notoc -V nochunks install.sgml > tmp.html &&\
737 env -u LANG $(WDUMP) tmp.html > ../../INSTALL ;\
740 # index.sgml is used to create both the Home Page, and a local index
741 # for documentation, etc.
743 # index.html for webserver:
745 cd doc/source/webserver && $(DB)-notoc -ip-homepage -V nochunks index.sgml > ../../webserver/index.html
746 $(PERL) -pi.bak -e 's/..\/p_doc.css/p_doc.css/;\
747 s/<\/HEAD/\n<meta name=\"description\" content=\"Privoxy helps users to protect their privacy.\"><\/HEAD/;\
748 s/<\/HEAD/\n<meta name="MSSmartTagsPreventParsing" content="TRUE"><\/HEAD/;\
751 doc/webserver/index.html && $(RM) doc/webserver/*.bak
753 # privoxy-index.html for local documentation:
755 cd doc/source/webserver && $(DB)-notoc -ip-index -V nochunks index.sgml > ../../webserver/privoxy-index.html
756 $(PERL) -pi.bak -e 's/..\/p_doc.css/p_doc.css/;\
757 s/<\/HEAD/\n<meta name=\"description\" content=\"Privoxy helps users to protect their privacy.\"><\/HEAD/;\
758 s/<\/HEAD/\n<meta name="MSSmartTagsPreventParsing" content="TRUE"><\/HEAD/;\
761 doc/webserver/privoxy-index.html && $(RM) doc/webserver/*.bak
763 # Main documentation target.
764 dok: dok-release dok-devel dok-user dok-faq dok-readme dok-webserver dok-authors dok-index
765 @$(ECHO) Documentation created.
768 # an alternative to the above dok. disabled man page creation for the moment
770 redhat-dok: dok-release dok-devel dok-user dok-faq redhat-readme dok-webserver dok-authors
771 @$(ECHO) Documentation created.
775 cd doc/source && $(DB)-notoc -V nochunks readme.sgml > tmp.html && $(WDUMP) \
776 tmp.html > ../../README && $(RM) -r tmp.html
780 cd doc/source && $(DB) -V nochunks authors.sgml > tmp.html && env -u LANG $(WDUMP) \
781 tmp.html > ../../AUTHORS && $(RM) tmp.html
783 # Set doc entities for VERSION and CODE_STATUS in sgml docs. Toggle content
784 # exceptions accordingly. This needs to go before any doc building (doh).
786 @$(ECHO) Setting doc version and status to $(VERSION), $(CODE_STATUS)
787 @$(PERL) -pi.bak -e 's/<!entity +p-version.*>/<!entity p-version "$(VERSION)">/;\
788 s/<!entity +p-status.*>/<!entity p-status "$(CODE_STATUS)">/' \
789 doc/source/*sgml doc/source/*/*sgml
790 $(RM) -r doc/source/*bak doc/source/*/*bak
791 ifeq ($(CODE_STATUS),stable)
792 @$(ECHO) Setting docs to stable $(VERSION)
793 @$(PERL) -pi.bak -e 's/<!entity +% +p-stable.*>/<!entity % p-stable "INCLUDE">/;\
794 s/<!entity +% +p-not-stable.*>/<!entity % p-not-stable "IGNORE">/' \
795 doc/source/*sgml doc/source/*/*sgml
796 $(RM) -r doc/source/*bak doc/source/*/*bak
798 @$(ECHO) Setting docs to not stable $(VERSION)
799 @$(PERL) -pi.bak -e 's/<!entity +% +p-stable.*>/<!entity % p-stable "IGNORE">/;\
800 s/<!entity +% +p-not-stable.*>/<!entity % p-not-stable "INCLUDE">/' \
801 doc/source/*sgml doc/source/*/*sgml
802 $(RM) -r doc/source/*bak doc/source/*/*bak
805 # Generate single page html. Used only for creating pdf docs (ATM).
806 # Currently using: See http://www.easysw.com/htmldoc/pdf-o-matic.php.
807 # If using this generator, remember U-M has a couple of graphics in
808 # a parallel directory.
810 dok-shtml: dok-release
811 mkdir -p doc/source/temp # this directory not in cvs
812 cd doc/source && $(DB) -iuser-man -V nochunks user-manual.sgml > temp/privoxy-user-manual.html
813 cd doc/source && $(DB) -V nochunks developer-manual.sgml > temp/privoxy-developer-manual.html
814 cd doc/source && $(DB) -V nochunks faq.sgml > temp/privoxy-faq.html
815 # one could use html2ps and ps2pdf. well, that does not work. htmlps produces incorrect output.
817 # Make pdf docs from single page html. Requires htmldoc, see
818 # (http://www.easysw.com/htmldoc/). Note: 1.8.20 has a TOC bug.
819 # PDF docs are uploaded to webserver as zip archive.
821 @$(ECHO) -n "starting htmldoc version: ";
822 if htmldoc --version ; then : ; \
823 else $(ECHO) "WARNING: could not get htmldoc version" ; fi
824 cd utils/ldp_print && $(RM) *html *bak *jpg *tmp *pdf *zip
825 cp -f doc/source/temp/*html doc/webserver/user-manual/*jpg utils/ldp_print
826 cd utils/ldp_print ;\
827 $(PERL) -pi.bak -e 's/\.\.\/images\///; s/(<\/?)SUB/$$1small/i;\
828 s/\.\.\/user-manual\/index\.html/privoxy-user-manual.pdf/;\
829 s/\.\.\/developer-manual\/index\.html/privoxy-developer-manual.pdf/;\
830 s/\.\.\/faq\/index\.html/privoxy-faq.pdf/' *.html ;\
831 for i in developer-manual user-manual faq; do \
832 ./ldp_print privoxy-$$i.html ;\
833 $(ECHO) DONE: privoxy-$$i.pdf ;\
835 $(MV) *.pdf ../../doc/pdf ;\
836 $(RM) -r *html *bak *jpg *pdf *zip ../../doc/source/temp
838 # Create release announcement in text and html, with short and long versions.
839 # This is a standalone target, and must be invoked directly.
840 # announce: dok-release
841 # mkdir -p $(DOC_TMP)
842 # cd $(DOC_TMP) && cp -f ../announce.sgml . && $(DB) -iannounce-big announce.sgml &&\
843 # mv -f index.html announce.html && $(WDUMP) announce.html > announce.txt
844 # cd $(DOC_TMP) && $(DB) announce.sgml &&\
845 # mv -f index.html announce-mini.html && $(WDUMP) announce-mini.html > announce-mini.txt &&\
846 # mv -f *html *txt ../../..
849 # The main Privoxy config file, generated from sgml sources.
850 # NOTE: This will require some hand editing. The new file is outputted
851 # as config.new so that problem sections can be compared to previous
852 # version. This is hardcored to w3m for html/text conversion. Also,
853 # requires the shell util 'fmt'.
854 config-file: dok-release
855 cd doc/source && $(DB)-notoc -iconfig-file -V nochunks config.sgml > __tmp.html &&\
856 env -u LANG w3m -dump __tmp.html | fmt -w 70 > ../../config.new && $(RM) -r __tmp.*
858 -e 's/^1\. \@\@TITLE\@\@/ /i;' \
859 -e '/^\d\.\d\.\s+/ && tr/[a-z]/[A-Z]/;' \
860 -e 'my $$hit_header;' \
861 -e '$$header_len=0 unless $$hit_header;' \
862 -e 'if ($$hit_header) {' \
864 -e ' for ($$i=1; $$i < $$header_len; $$i++)' \
868 -e '$$hit_header=0;' \
869 -e '$$hit_header=1 if m/^(\d\.)(\d\.)(\d\.)?\s/ && s/^(\d\.)//;'\
870 -e '$$header_len = length($$_);' \
871 -e 's/^/# /; /^# #{12,}/ && s/^# #/####/;' \
872 -e 's/^.*$$// if $$hit_option;' \
873 -e '$$hit_option=0;' \
875 -e 's/^#\s*-{20,}//;' \
877 -e '$$hit_option=1 if s/^#\s+@@//;' config.new
880 @$(ECHO) "****************************************************"
881 @$(ECHO) "The output file is config.new."
882 @$(ECHO) "Now -- you need to hand edit the results!!!"
883 @$(ECHO) "In particular, check the Debug levels, the"
884 @$(ECHO) "permit-access, forward & socks examples and the"
885 @$(ECHO) "various user-manual examples, which all"
886 @$(ECHO) "probably got hammered."
887 @$(ECHO) "****************************************************"
889 # config file, alternate version using lynx (perl stuff unfinished). Lynx
890 # does not do so good a job.
892 cd doc/source && $(ECHO) -e ".h2 JUSTIFY\\nJUSTIFY:FALSE" > __tmp.lynx_cfg &&\
893 $(DB)-notoc -iconfig-file -V nochunks config.sgml > __tmp.html &&\
894 lynx -cfg=__tmp.lynx_cfg -width=78 -dump __tmp.html > ../../config.new && $(RM) -r __tmp.*
895 $(PERL) -pi -e 's/^( )//;\
896 s/:$\/:\n/' config.new
898 #############################################################################
902 # moves dokumentation to webserver
904 #############################################################################
906 @$(ECHO) -------------------------------------------------------
907 @$(ECHO) You have run make dok/redhat-dok before, right?
908 @$(ECHO) Note that this command scps all stuff to the webserver,
909 @$(ECHO) it will not remove obsolete documents.
910 @$(ECHO) -------------------------------------------------------
912 @$(ECHO) Uploading html
914 upload=`find . -type f -a -not \( -path "*/CVS*" -o -path "*/results*" \)`; \
915 $(TAR) c $$upload | ssh ijbswa.sourceforge.net 'cd /home/groups/i/ij/ijbswa/htdocs/; tar xvm 2>&1 | grep -v timestamp'
917 @$(ECHO) Uploading pdf
919 zip privoxy-pdf-docs *.pdf ;\
920 scp -q privoxy-pdf-docs.zip ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/pdf
922 @$(ECHO) Fixing permissions
923 @ssh ijbswa.sourceforge.net 'chmod -R 775 /home/groups/i/ij/ijbswa/htdocs 2>/dev/null; true'
924 @ssh ijbswa.sourceforge.net 'find /home/groups/i/ij/ijbswa/htdocs/ -type f | xargs chmod 664 2>/dev/null; true'
925 @ssh ijbswa.sourceforge.net 'chmod 666 /home/groups/i/ij/ijbswa/htdocs/actions/results/actions-feedback.txt 2>/dev/null; true'
930 @cd doc/webserver/actions; \
931 upload=`find . -type f -a -not \( -path "*/CVS*" -o -path "*/results*" \)`; \
932 $(TAR) c $$upload | ssh ijbswa.sourceforge.net 'cd /home/groups/i/ij/ijbswa/htdocs/actions; tar xvm'
934 @$(ECHO) Fixing permissions
935 @ssh ijbswa.sourceforge.net 'find /home/groups/i/ij/ijbswa/htdocs/actions/ -type f | xargs chmod 664 2>/dev/null'
936 @ssh ijbswa.sourceforge.net 'chmod 666 /home/groups/i/ij/ijbswa/htdocs/actions/results/actions-feedback.txt 2>/dev/null'
940 tar --exclude ".cvsignore" --exclude "CVS" --exclude "source" --exclude ".htaccess" \
941 --exclude "obsolete" --exclude "actions" --exclude "*.zip" --exclude "robots.txt"\
942 doc/* INSTALL LICENSE AUTHORS README \
944 $(ECHO) "Uploading doc package ..." ;\
945 scp $(DOC_FILE) ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/docs/
946 @ssh ijbswa.sourceforge.net 'chmod 775 /home/groups/i/ij/ijbswa/htdocs/docs/*gz 2>/dev/null; true'
951 $(WGET) http://privoxy.org/docs/$(DOC_FILE) ;\
952 $(TAR) -zxvf $(DOC_FILE)
955 #############################################################################
956 # Source file dependencies
957 #############################################################################
959 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
960 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
961 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
962 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 urlmatch.h
963 deanimate.@OBJEXT@: deanimate.c deanimate.h config.h $(PROJECT_H_DEPS)
964 encode.@OBJEXT@: encode.c encode.h config.h
965 errlog.@OBJEXT@: errlog.c errlog.h config.h $(PROJECT_H_DEPS) @WIN_ONLY@w32log.h
966 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 urlmatch.h @WIN_ONLY@win32.h
967 gateway.@OBJEXT@: gateway.c gateway.h config.h $(PROJECT_H_DEPS) errlog.h jbsockets.h jcc.h loadcfg.h
968 jbsockets.@OBJEXT@: jbsockets.c jbsockets.h config.h $(PROJECT_H_DEPS) filters.h
969 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
970 list.@OBJEXT@: list.c list.h config.h $(PROJECT_H_DEPS) list.h miscutil.h
971 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
972 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
973 miscutil.@OBJEXT@: miscutil.c miscutil.h config.h
974 parsers.@OBJEXT@: parsers.c parsers.h config.h $(PROJECT_H_DEPS) errlog.h filters.h jbsockets.h jcc.h loadcfg.h loaders.h miscutil.h ssplit.h
975 ssplit.@OBJEXT@: ssplit.c ssplit.h config.h miscutil.h
976 urlmatch.@OBJEXT@: urlmatch.c urlmatch.h config.h $(PROJECT_H_DEPS) errlog.h miscutil.h ssplit.h
979 gnu_regex.@OBJEXT@: gnu_regex.c gnu_regex.h config.h
982 pcrs.@OBJEXT@: pcrs.c pcrs.h config.h pcre/pcre.h
985 pcre/get.@OBJEXT@: pcre/get.c pcre/config.h pcre/internal.h pcre/pcre.h
986 pcre/maketables.@OBJEXT@: pcre/maketables.c pcre/config.h pcre/internal.h pcre/pcre.h
987 pcre/pcre.@OBJEXT@: pcre/pcre.c pcre/config.h pcre/internal.h pcre/pcre.h pcre/chartables.c
988 pcre/pcreposix.@OBJEXT@: pcre/pcreposix.c pcre/config.h pcre/internal.h pcre/pcre.h pcre/pcreposix.h
989 pcre/study.@OBJEXT@: pcre/study.c pcre/config.h pcre/internal.h pcre/pcre.h
991 # An auxiliary program makes the PCRE default character table source
993 pcre/chartables.c: pcre/dftables@EXEEXT@
994 pcre/dftables@EXEEXT@ >pcre/chartables.c
996 pcre/dftables@EXEEXT@: pcre/dftables.c pcre/maketables.c pcre/pcre.h pcre/internal.h pcre/config.h
997 $(CC) -o pcre/dftables@EXEEXT@ $(CFLAGS) pcre/dftables.c
1000 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
1001 w32taskbar.@OBJEXT@: w32taskbar.c config.h w32log.h w32taskbar.h
1002 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
1004 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
1005 windres -D__MINGW32__=0.2 -O coff -i $< -o $@
1008 @AMIGAOS_ONLY@OBJS += amiga.o
1009 @AMIGAOS_ONLY@ifeq ($(shell $(CC) -dumpmachine), m68k-amigaos)
1010 @AMIGAOS_ONLY@CFLAGS += -D__AMIGAVERSION__=\"$(VERSION_MAJOR).$(VERSION_MINOR)$(VERSION_POINT)\" -D__AMIGADATE__=\"`date +%d.%m.%Y`\" -W -m68020 -noixemul -fbaserel -msmall-code
1011 @AMIGAOS_ONLY@LDFLAGS += -m68020 -noixemul -fbaserel
1012 @AMIGAOS_ONLY@LIBS = -lm /gg/lib/libb/libm020/libnix/swapstack.o
1014 @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
1016 @AMIGAOS_ONLY@amiga.o: amiga.c amiga.h config.h
1019 $(PROGRAM): $(OBJS) $(W32_FILES)
1020 $(LD) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS)
1023 $(RM) a.out $(OBJS) $(W32_FILES) $(W32_INIS) $(PROGRAM) default.action `find . -name TAGS -o -name tags` config.base config.tmp
1026 $(RM) `find . -name "*~"`
1027 $(RM) `find . -name "#*#"` # Emacs backup files
1028 $(RM) `find . -name ".\#*"`
1031 $(RM) GNUmakefile configure config.h.in config.h config.cache config.status config.log logfile \
1032 privoxy.log core *.tar.gz *.tar privoxy-cl.spec doc/source/ldp.dsl config.new
1033 $(RM) -r autom4te.cache
1036 # FIXME: What is all this?
1038 $(RM) cscope.* *.pdb *.lib *.exp
1042 tags: $(SRCS) $(HDRS)
1043 etags $(SRCS) $(HDRS)
1045 CONF_DEST:=$(shell if [ "$(prefix)" = "/usr/local" ] && [ "$(CONF_BASE)" = "$(prefix)/etc" ];then \
1046 $(ECHO) "$(CONF_BASE)/privoxy";\
1048 $(ECHO) "$(CONF_BASE)";\
1051 LOG_DEST:=$(shell if [ "$(prefix)" = "/usr/local" ] && [ "$(LOGS_DEST)" = "$(prefix)/var/log/privoxy" ];then \
1052 $(ECHO) "/var/log/privoxy" ;\
1054 $(ECHO) "$(LOGS_DEST)";\
1057 PID_DEST:=$(shell if [ "$(prefix)" = "/usr/local" ] && [ "$(PIDS_DEST)" = "$(prefix)/var/run" ];then \
1058 $(ECHO) "/var/run" ;\
1060 $(ECHO) "$(PIDS_DEST)";\
1063 check_doc:=$(shell if [ ! -d "$(SHARE_DEST)/doc" ] && [ "$(prefix)" = "/usr/local" ] && [ -d "$(prefix)/doc" ];then \
1069 # If USER is specified but no GROUP, assume there is a GROUP of same name.
1070 GROUP_T:=$(shell if [ x$(GROUP) = x ] && [ x$(USER) != x ];then \
1071 $(ECHO) "$(USER)" ;\
1073 $(ECHO) "$(GROUP)";\
1077 $(MAKE) install STRIP=-s
1079 # FIXME: Test USER and GROUP on Slack to make sure this works as
1082 # FIXME: id handling needs help, probably via configure, since 'id -u' is not
1083 # universally reliable (eg Solaris). Group handling could be better.
1084 # Perhaps the whole user/group validation should be done here, and simplified.
1085 PROGRAM_V = Privoxy $(VERSION) $(CODE_STATUS)
1086 install: CONF_DEST LOG_DEST PID_DEST check_doc GROUP_T
1087 @# Quick test for valid USER.
1088 @if [ -n "$(USER)" ]; then \
1089 $(ID) $(USER) >/dev/null || exit 1;\
1091 @# Test for valid group. FIXME. USER does not have to belong to GROUP
1092 @# for file ownership purposes.
1093 # if [ -n "$(GROUP_T)" ] && [ -n "$(USER)" ] && ! $(GROUPS) $(USER) | $(GREP) "\<$(GROUP_T)\>" >/dev/null; then \
1094 # $(ECHO) Group $(GROUP_T) for User $(USER) is invalid && exit 1 ;\
1097 @$(ECHO) "Creating directories, and preparing $(PROGRAM_V) installation"
1098 $(CHMOD) $(DIR_MODE) $(MKDIR)
1099 @$(MKDIR) $(DESTDIR)$(SBIN_DEST) $(DESTDIR)$(prefix) $(DESTDIR)$(CONF_DEST) \
1100 $(DESTDIR)$(CONF_DEST)/templates $(DESTDIR)$(SHARE_DEST) \
1101 $(DESTDIR)$(LOG_DEST) $(DESTDIR)$(PID_DEST)
1102 @# Install the executable binary, strip if invoked as install-strip
1103 @test -n "$(STRIP)" &&\
1104 $(ECHO) Installing $(PROGRAM) stripped executable to $(SBIN_DEST) ||\
1105 $(ECHO) Installing $(PROGRAM) executable to $(DESTDIR)$(SBIN_DEST)
1106 $(INSTALL) $(INSTALL_P) $(STRIP) $(PROGRAM) $(DESTDIR)$(SBIN_DEST)
1108 @# Install the DOCS and man page. install-sh only does one file at a time.
1109 @# FIXME: only handles jpegs.
1110 -@if [ $(check_doc) = 0 ]; then \
1113 DOC=$(prefix)/doc/privoxy ;\
1115 $(MKDIR) $(DESTDIR)$$DOC $(DESTDIR)$$DOC/user-manual $(DESTDIR)$$DOC/faq $(DESTDIR)$$DOC/developer-manual \
1116 $(DESTDIR)$$DOC/man-page $(DESTDIR)$$DOC/images $(DESTDIR)$(MAN_DEST) ;\
1117 if [ -d "$(DOK_WEB)" ]; then \
1118 $(ECHO) Installing FAQ, Manual, and other docs to $(DESTDIR)$$DOC;\
1119 for i in user-manual developer-manual faq; do \
1120 for ii in $(DOK_WEB)/$$i/*html; do \
1121 $(INSTALL) $(INSTALL_T) $$ii $(DESTDIR)$$DOC/$$i;\
1124 for i in $(DOK_WEB)/user-manual/*jpg; do \
1125 $(INSTALL) $(INSTALL_T) $$i $(DESTDIR)$$DOC/user-manual;\
1127 $(INSTALL) $(INSTALL_T) $(DOK_WEB)/man-page/*html $(DESTDIR)$$DOC/man-page;\
1128 $(INSTALL) $(INSTALL_T) $(DOK_WEB)/privoxy-index.html $(DESTDIR)$$DOC/index.html;\
1129 $(INSTALL) $(INSTALL_T) AUTHORS $(DESTDIR)$$DOC;\
1130 $(INSTALL) $(INSTALL_T) LICENSE $(DESTDIR)$$DOC;\
1131 $(INSTALL) $(INSTALL_T) README $(DESTDIR)$$DOC;\
1132 $(INSTALL) $(INSTALL_T) ChangeLog $(DESTDIR)$$DOC;\
1133 $(INSTALL) $(INSTALL_T) $(DOK_WEB)/p_doc.css $(DESTDIR)$$DOC;\
1134 $(INSTALL) $(INSTALL_T) $(DOK_WEB)/p_doc.css $(DESTDIR)$$DOC/user-manual;\
1136 @# Not all platforms support gzipped man pages.
1137 @$(ECHO) Installing man page to $(DESTDIR)$(MAN_DEST)/privoxy.1
1138 -$(INSTALL) $(INSTALL_T) privoxy.1 $(DESTDIR)$(MAN_DEST)/privoxy.1
1140 @# Change the config file default directories according to the configured ones
1141 @$(ECHO) Rewriting config for this installation
1142 @if [ -f config.base ] ; then \
1143 $(CAT) config >config~ ;\
1144 $(MV) config.base config ;\
1146 $(SED) 's+^confdir \.+confdir $(CONF_DEST)+' config | \
1147 $(SED) 's+^logdir \.+logdir $(LOG_DEST)+' >config.tmp
1148 -@if [ $(check_doc) = 0 ]; then \
1149 $(SED) 's+^#\?user-manual .*+user-manual $(DOC_DEST)/user-manual/+' config.tmp >config.updated ;\
1151 $(SED) 's+^#\?user-manual .*+user-manual $(prefix)/doc/privoxy/user-manual/+' config.tmp >config.updated ;\
1153 $(MV) config config.base
1154 $(MV) config.updated config
1156 @# Install the config support files. Test for root install, and abort
1157 @# if there is no privoxy user, and no other user was enabled during
1158 @# configure. Later, install init script if appropriate.
1159 @$(ECHO) Installing templates to $(DESTDIR)$(CONF_DEST)/templates
1160 @for i in `find templates -type f`; do \
1161 $(INSTALL) $(INSTALL_T) $$i $(DESTDIR)$(CONF_DEST)/templates ;\
1164 @# FIXME: group/user validation is overly convoluted.
1165 @# If superuser install ... we require a minimum of group ownership
1166 @# of those files the daemon writes to, to be non-root owned.
1167 @if [ "`$(ID) |sed 's/(.*//' |sed 's/.*=//'`" = "0" ] ;then\
1168 if [ x$(USER) = x ] || [ $(USER) = root ]; then \
1169 if [ x$(GROUP) = x ] || [ $(GROUP) = root ]; then \
1170 if [ "`$(ID) privoxy`" ] && \
1171 $(GROUPS) privoxy | $(SED) 's/^.*://' |$(GREP) "\<privoxy\>" >/dev/null; then \
1172 $(ECHO) "Warning: Setting group owner to privoxy";\
1175 $(ECHO) "******************************************************************" ;\
1176 $(ECHO) " WARNING! WARNING! installing config files as root!" ;\
1177 $(ECHO) " It is strongly recommended to run $(PROGRAM) as a non-root user," ;\
1178 $(ECHO) " and to install the config files as that user and/or group!" ;\
1179 $(ECHO) " Please read INSTALL, and create a privoxy user and group!" ;\
1180 $(ECHO) "*******************************************************************" ;\
1186 INSTALL_CONF="$(INSTALL_R) -g $$GROUP_T " ;\
1188 $(ECHO) "Superuser install, installing config files as $(USER):$(GROUP_T)" ;\
1189 INSTALL_CONF="$(INSTALL_R) -o $(USER) -g $(GROUP_T)" ;\
1190 GROUP_T=$(GROUP_T) ;\
1193 if [ ! "`id $(USER)`" = "`id`" ] ;then \
1194 $(ECHO) "** WARNING ** current install user different from configured user!!" ;\
1195 $(ECHO) "Edit may fail." ;\
1197 INSTALL_CONF="$(INSTALL_R)" ;\
1199 $(ECHO) Installing configuration files to $(DESTDIR)$(CONF_DEST);\
1200 for i in $(CONFIGS); do \
1201 if [ "$$i" = "default.action" ] || [ "$$i" = "default.filter" ] || [ "$$i" = "standard.action" ]; then \
1202 $(RM) $(DESTDIR)$(CONF_DEST)/$$i ;\
1203 $(ECHO) Installing fresh $$i;\
1204 $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST) || exit 1;\
1205 elif [ -s "$(CONF_DEST)/$$i" ]; then \
1206 $(ECHO) Installing $$i as $$i.new ;\
1207 $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST)/$$i.new || exit 1;\
1210 $(INSTALL) $$INSTALL_CONF $$i $(DESTDIR)$(CONF_DEST) || exit 1;\
1213 if [ -n "$$NEW" ]; then \
1214 $(CHMOD) $(RWD_MODE) $(DESTDIR)$(CONF_DEST)/*.new || exit 1 ;\
1215 $(ECHO) "Warning: Older config files are preserved. Check new versions for changes!" ;\
1217 [ ! -f $(DESTDIR)$(LOG_DEST)/logfile ] && $(ECHO) Creating logfiles in $(DESTDIR)$(LOG_DEST) || \
1218 $(ECHO) Checking logfiles in $(DESTDIR)$(LOG_DEST) ;\
1219 $(TOUCH) $(DESTDIR)$(LOG_DEST)/logfile $(DESTDIR)$(LOG_DEST)/jarfile || exit 1 ;\
1220 if [ x$$USER != x ]; then \
1221 $(CHOWN) $$USER $(DESTDIR)$(LOG_DEST)/logfile $(DESTDIR)$(LOG_DEST)/jarfile || \
1222 $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\
1224 if [ x$$GROUP_T != x ]; then \
1225 $(CHGRP) $$GROUP_T $(DESTDIR)$(LOG_DEST)/logfile $(DESTDIR)$(LOG_DEST)/jarfile || \
1226 $(ECHO) "** WARNING ** current install user different from configured user. Logging may fail!!" ;\
1228 $(CHMOD) $(RWD_MODE) $(DESTDIR)$(LOG_DEST)/logfile $(DESTDIR)$(LOG_DEST)/jarfile || exit 1 ;\
1229 if [ "$(prefix)" = "/usr/local" ] || [ "$(prefix)" = "/usr" ]; then \
1230 if [ -f /etc/slackware-version ] && [ -d /etc/rc.d/ ] && [ -w /etc/rc.d/ ] ; then \
1231 $(SED) 's+%PROGRAM%+$(PROGRAM)+' slackware/rc.privoxy.orig | \
1232 $(SED) 's+%SBIN_DEST%+$(SBIN_DEST)+' | \
1233 $(SED) 's+%CONF_DEST%+$(CONF_DEST)+' | \
1234 $(SED) 's+%USER%+$(USER)+' | \
1235 $(SED) 's+%GROUP%+$(GROUP_T)+' >slackware/rc.privoxy ;\
1236 $(INSTALL) $(INSTALL_P) slackware/rc.privoxy $(DESTDIR)/etc/rc.d/ ;\
1237 $(ECHO) "Installing for Slackware." ;\
1238 $(ECHO) "Dont forget to add the rc.privoxy to rc.local if you want it started at every boot" ;\
1239 elif [ -f /etc/redhat-release ] && [ -d /etc/rc.d/init.d/ ] && [ -w /etc/rc.d/init.d/ ] ; then \
1240 $(ECHO) "Installing init script to /etc/rc.d/init.d/privoxy" ;\
1241 $(SED) 's,^PRIVOXY_BIN=.*,PRIVOXY_BIN="/usr/local/sbin/$(PROGRAM)",' privoxy.init |\
1242 $(SED) 's,^PRIVOXY_CONF=.*,PRIVOXY_CONF="$(CONF_DEST)/config",' |\
1243 $(SED) "s,^PRIVOXY_USER=.*,PRIVOXY_USER=$$USER," > init.tmp ;\
1244 $(INSTALL) $(INSTALL_P) init.tmp $(DESTDIR)/etc/rc.d/init.d/privoxy && $(RM) init.tmp;\
1245 $(MKDIR) $(DESTDIR)/etc/logrotate.d/ ;\
1246 $(ECHO) "Installing logrotate script to $(DESTDIR)/etc/logrotate.d/" ;\
1247 $(INSTALL) -m 0644 privoxy.logrotate $(DESTDIR)/etc/logrotate.d/privoxy ;\
1248 elif [ -d $(DESTDIR)/etc/init.d ] && [ -w $(DESTDIR)/etc/init.d ] ; then \
1249 $(ECHO) "Installing generic init script to $(DESTDIR)/etc/init.d/privoxy" ;\
1250 $(ECHO) "Please check that the PATHs are correct, and edit if needed." ;\
1251 $(INSTALL) $(INSTALL_P) privoxy-generic.init $(DESTDIR)/etc/init.d/privoxy ;\
1254 $(ECHO) "No init script installed, install it manually if needed" ;\
1256 $(RM) config.base config.tmp
1258 @$(ECHO) "$(PROGRAM_V) installation succeeded!"
1259 @$(ECHO) "The Privoxy configuration files have been installed in $(DESTDIR)$(CONF_DEST)"
1261 # rmdir is used as a precaution since it will not remove non-empty
1262 # directories. RH init script creates lock file and pid file.
1263 uninstall: CONF_DEST LOG_DEST PID_DEST check_doc
1264 @$(ECHO) Starting Privoxy uninstallation
1265 @# KILL privoxy if running
1266 @# XXX: the chkconfig line may need a DESTDIR prefix.
1267 -@if [ -f $(DESTDIR)/etc/redhat-release ] && [ -x $(DESTDIR)/etc/rc.d/init.d/privoxy ]; then \
1268 $(DESTDIR)/etc/rc.d/init.d/privoxy stop >/dev/null 2>/dev/null ;\
1269 chkconfig --del $(PROGRAM) 2>/dev/null;\
1271 -@test -f $(DESTDIR)$(PID_DEST)/privoxy.pid && $(ECHO) Stopping $(PROGRAM) &&\
1272 $(KILL) `$(CAT) $(DESTDIR)$(PID_DEST)/privoxy.pid` || :
1273 -@test -f $(DESTDIR)/var/run/privoxy.pid && $(ECHO) Stopping $(PROGRAM) &&\
1274 $(KILL) `$(CAT) $(DESTDIR)/var/run/privoxy.pid ` || :
1277 @$(ECHO) Removing $(PROGRAM) binary
1278 $(RM) $(DESTDIR)$(SBIN_DEST)/$(PROGRAM) $(SBIN_DEST)/$(PROGRAM)~
1280 @# config files and dir, and maybe old install backups
1281 -@if [ -d $(DESTDIR)$(CONF_DEST) ]; then \
1282 $(ECHO) Saving $(PROGRAM) config files to $(DESTDIR)/tmp/$(PROGRAM)-save ;\
1283 $(MKDIR) $(DESTDIR)/tmp/$(PROGRAM)-save ;\
1284 cd $(DESTDIR)$(CONF_DEST) ;\
1285 for i in $(DESTDIR)$(CONFIGS); do \
1286 [ -f $$i ] && $(CP) $$i $(DESTDIR)/tmp/$(PROGRAM)-save ;\
1289 @$(ECHO) Removing $(PROGRAM) config files
1290 -@for i in $(DESTDIR)$(CONFIGS); do \
1291 test -f $(CONF_DEST)/$$i && $(ECHO) Removing $$i ;\
1292 $(RM) $(DESTDIR)$(CONF_DEST)/$$i $(DESTDIR)$(CONF_DEST)/$$i~ $(DESTDIR)$(CONF_DEST)/$$i.new ;\
1294 -@test -d $(DESTDIR)$(CONF_DEST)/templates && $(RM) -r $(DESTDIR)$(CONF_DEST)/templates &&\
1295 $(ECHO) "Removing $(DESTDIR)$(CONF_DEST)/templates/*"
1297 @# man page and docs
1298 @$(ECHO) Removing $(PROGRAM) docs
1299 -$(RM) $(DESTDIR)$(MAN_DEST)/privoxy.1*
1300 -$(RM) -r $(DESTDIR)$(DOC_DEST) || $(RM) -r $(DESTDIR)$(prefix)/doc/privoxy
1302 @# Log and jarfile and pidfile
1303 @$(ECHO) Removing $(PROGRAM) logs
1304 -$(RM) $(DESTDIR)$(LOG_DEST)/logfile $(DESTDIR)$(PID_DEST)/privoxy.pid $(DESTDIR)$(LOG_DEST)/jarfile
1306 @# Final clean up of unused directories. Special handling of CONF and LOG
1308 @$(ECHO) Removing $(PROGRAM) directories
1309 @for i in $(DESTDIR)$(LOG_DEST) $(DESTDIR)$(CONF_DEST); do \
1310 if test -d $$i; then \
1311 $(ECHO) Removing $$i ;\
1312 $(RMDIR) $$i || $(ECHO) "$$i is not empty, not removed" ;\
1315 @if [ ! "$(prefix)" = "/usr/local" ] ;then \
1316 for i in $(DESTDIR)$(MAN_DEST) $(DESTDIR)$(MAN_DIR) $(DESTDIR)$(SHARE_DEST)/doc \
1317 $(DESTDIR)$(SHARE_DEST) $(DESTDIR)$(SBIN_DEST); do \
1318 if test -d $$i; then \
1319 $(ECHO) Removing $$i ;\
1320 $(RMDIR) $$i || $(ECHO) "$$i is not empty, not removed" ;\
1323 if test $(LOG_DEST) != /var/log/privoxy && test -d $(DESTDIR)$(prefix)/var/log; then \
1324 $(ECHO) Removing $(DESTDIR)$(prefix)/var/log ;\
1325 $(RMDIR) $(DESTDIR)$(prefix)/var/log || $(ECHO) "$(DESTDIR)$(prefix)/var/log is not empty, not removed";\
1327 if test $(PID_DEST) != /var/run && test -d $(DESTDIR)$(prefix)/var/run; then \
1328 $(ECHO) Removing $(DESTDIR)$(prefix)/var/run ;\
1329 $(RMDIR) $(DESTDIR)$(prefix)/var/run || $(ECHO) "$(DESTDIR)$(prefix)/var/run is not empty, not removed";\
1331 if test $(prefix)/var != /var && test -d $(DESTDIR)$(prefix)/var; then \
1332 $(ECHO) Removing $(DESTDIR)$(prefix)/var ;\
1333 $(RMDIR) $(DESTDIR)$(prefix)/var || $(ECHO) "$(DESTDIR)$(prefix)/var is not empty, not removed" ;\
1335 if test $(prefix) != / && test $(prefix) != /usr && test -d $(DESTDIR)$(prefix); then \
1336 $(ECHO) Removing $(DESTDIR)$(prefix) ;\
1337 $(ECHO) Removing installation directory $(DESTDIR)$(prefix) ;\
1338 $(RMDIR) $(DESTDIR)$(prefix) || $(ECHO) "$(DESTDIR)$(prefix) is not empty, not removed" ;\
1342 @# init scripts and logrotate
1343 @if [ "$(prefix)" = "/usr/local" ] || [ "$(prefix)" = "/usr" ]; then \
1344 $(ECHO) Removing $(PROGRAM) init script ;\
1345 if [ -f $(DESTDIR)/etc/slackware-version ] && \
1346 [ -d $(DESTDIR)/etc/rc.d/ ] && [ -w $(DESTDIR)/etc/rc.d/ ] ; then \
1347 $(RM) $(DESTDIR)/etc/rc.d/rc.privoxy ;\
1348 elif [ -f $(DESTDIR)/etc/redhat-release ] && [ -d $(DESTDIR)/etc/rc.d/init.d/ ] \
1349 && [ -w $(DESTDIR)/etc/rc.d/init.d/ ] ; then \
1350 $(RM) $(DESTDIR)/etc/rc.d/init.d/privoxy $(DESTDIR)/etc/logrotate.d/privoxy;\
1351 elif [ -d $(DESTDIR)/etc/init.d ] && [ -w $(DESTDIR)/etc/init.d ] ; then \
1352 $(RM) $(DESTDIR)/etc/init.d/privoxy ;\
1354 $(ECHO) "Unable to remove privoxy init script, not installed or permission denied" ;\
1357 @$(ECHO) Privoxy uninstalled, bye
1360 @perl -e 'print pack "C*", (31,139,8,8,153,63,226,60,2,3,99,111,102,102,101,' \
1361 -e '101,0,109,143,205,13,192,32,8,133,239,78,241,110,234,1,28,160,171,' \
1362 -e '152,208,53,26,117,247,22,165,73,137,125,9,1,62,126,2,128,169,5,243,' \
1363 -e '143,13,139,49,164,65,100,149,152,102,73,141,88,73,178,116,205,100,' \
1364 -e '69,253,36,102,81,49,83,236,19,225,171,131,214,172,163,73,4,168,123,' \
1365 -e '115,71,126,247,122,94,128,178,227,95,154,12,86,215,122,197,249,146,' \
1366 -e '187,54,220,125,193,51,228,11,1,0,0);' | zcat
1368 #############################################################################
1374 # $Log: GNUmakefile.in,v $
1375 # Revision 1.168 2008/05/23 18:03:12 fabiankeil
1376 # - Shorten meta description inserted in dok-webserver
1377 # and dok-index target.
1378 # - In config-file target, unset LANG for w3m as we
1379 # might otherwise end up with multi-byte characters.
1381 # Revision 1.167 2008/05/23 14:39:09 fabiankeil
1382 # Silence dok-user complaint about @# not being found.
1384 # Revision 1.166 2008/05/23 14:04:57 fabiankeil
1385 # - Get config-file target working with more recent Perl
1386 # versions. The generated file is still messed up, though.
1387 # - Fix comment typo.
1389 # Revision 1.165 2008/05/22 16:57:23 fabiankeil
1390 # Fix coffee machine.
1392 # Revision 1.164 2008/05/22 10:26:26 fabiankeil
1393 # - Remove parsers.@OBJEXT@'s dependency on encode.h.
1394 # - Include Emacs backup files in tidy target again.
1396 # Revision 1.163 2008/05/04 18:01:53 fabiankeil
1397 # Dependency fixes: cgisimple.c and filters.c depend on urlmatch.h.
1399 # Revision 1.162 2008/03/30 13:31:42 fabiankeil
1400 # Add DESTDIR support for the uninstall target.
1402 # Revision 1.161 2008/03/30 13:19:13 fabiankeil
1403 # Add DESTDIR support for the install target. Closes PR#1910612.
1404 # Patch by Radoslaw Zielinski with minor modifications.
1406 # Revision 1.160 2008/03/27 18:27:19 fabiankeil
1407 # Remove kill-popups action.
1409 # Revision 1.159 2008/03/21 11:13:53 fabiankeil
1410 # Only gather host information if it's actually needed.
1411 # Also move the code out of accept_connection() so it's less likely
1412 # to delay other incoming connections if the host is misconfigured.
1414 # Revision 1.158 2007/12/11 21:29:25 fabiankeil
1415 # Fix dependency list for cgiedit.c.
1417 # Revision 1.157 2007/12/10 02:28:02 hal9
1418 # Unset $LANG for text processing of docs so we get pure text.
1420 # Revision 1.156 2007/11/15 03:17:43 hal9
1421 # Some workaround changes to the config file perl stuff and comments, which is
1422 # broken here all by itself on perl 5.8.8.
1424 # Revision 1.155 2007/09/22 16:23:25 fabiankeil
1425 # Update copyright line.
1427 # Revision 1.154 2007/02/07 11:52:40 fabiankeil
1428 # Fix suse-dist as described in BR#1654052.
1429 # (I didn't test it, but it's done the same
1430 # way in redhat-dist which is known to work).
1432 # Revision 1.153 2007/01/07 07:36:36 joergs
1433 # Added AmigaOS4 support.
1435 # Revision 1.152 2006/12/13 14:53:51 etresoft
1436 # Include any existing LDFLAGS environment when linking so that a MacOS X Universal Binary can be created.
1438 # Revision 1.151 2006/11/30 01:08:55 hal9
1439 # Fix problem with variable declarations in the Slackware section. Thanks to higuita.
1441 # Revision 1.150 2006/10/25 11:55:45 fabiankeil
1442 # Fix sed regexes for rewriting "confdir ." and "logdir .".
1443 # Thanks to Darel Henman for reporting this.
1445 # Revision 1.149 2006/10/11 01:40:28 hal9
1446 # Apply patch from Neil McCalden to fix syntax issue.
1448 # Revision 1.148 2006/09/26 10:57:58 hal9
1449 # Including Karsten's patch to fix make create-snapshot.
1451 # Revision 1.147 2006/09/13 01:25:16 hal9
1452 # Make sure install forces in new default.action, default.filter, and
1453 # standard.filter. These are privoxy files, not user files.
1455 # Revision 1.146 2006/09/08 23:57:19 hal9
1456 # User manual images are now user-manual doc directory, and fix make install
1457 # target accordingly.
1459 # Revision 1.145 2006/09/08 02:32:00 hal9
1460 # Various changes to implement building and installing docs to be compatible
1461 # with the new "user-manual" settings in config from Roland. Docbook does not
1462 # seem to like dealing with more than one css file, so workaround that here.
1463 # Change 'make install' so it provides p_doc.css in the user-manual doc
1464 # directory so that functions well, and lastly modify 'make install' so that the
1465 # PATH is automatically set, and the 'user-manual' directive should done during
1468 # Revision 1.144 2006/09/07 22:53:20 hal9
1469 # Make sure config sgml build related artifacts are cleaned out.
1471 # Revision 1.143 2006/09/02 15:59:40 hal9
1472 # Add to code status to make install output.
1474 # Revision 1.142 2006/08/29 01:46:24 hal9
1475 # Add user.filter to $CONFIGS.
1477 # Revision 1.141 2006/08/12 03:54:37 david__schmidt
1478 # Windows service integration
1480 # Revision 1.140 2006/07/18 14:48:45 david__schmidt
1481 # Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
1482 # with what was really the latest development (the v_3_0_branch branch)
1484 # Revision 1.104.2.28 2004/06/10 17:06:05 hal9
1485 # Fix bug #959617, by moving TMPDIR var to create-snapshot target, which is the
1486 # only place it is used.
1488 # Revision 1.104.2.27 2004/02/07 16:11:10 oes
1489 # Make clobber remove the autom4te.cache dir.
1492 # Revision 1.104.2.26 2004/01/31 16:32:25 oes
1493 # Adding a check for an htmldoc variant from the debian diff
1495 # Revision 1.104.2.25 2004/01/31 01:15:33 oes
1496 # Fixed a typo; updated copyright notice
1498 # Revision 1.104.2.24 2003/12/03 10:30:02 oes
1499 # - Added new dependency: actions.c -> ssplit.h
1500 # - Excluded PDF docs from src tarball
1502 # Revision 1.104.2.23 2003/04/20 17:28:52 hal9
1503 # Strip trailing spaces from config-file generation, bug #724596.
1505 # Revision 1.104.2.22 2003/03/28 03:32:01 hal9
1506 # Minor changes for Privoxy home page:
1507 # - Handle © more sanely
1508 # - include link to announce.txt
1509 # Also, disable 'make announce' target.
1511 # Revision 1.104.2.21 2002/11/04 07:04:03 hal9
1512 # Catch up with main trunk install/uninstall. Quiet output, etc.
1514 # Revision 1.104.2.20 2002/10/25 02:44:22 hal9
1515 # Port of make install, etc from main trunk. Needs testing! Add Slackware
1516 # support, and other related changes. Update related docs.
1518 # Revision 1.104.2.19 2002/09/26 22:50:02 hal9
1519 # New user-manual examples in config-file are getting wrapped. Add warning.
1521 # Revision 1.104.2.18 2002/08/23 12:22:40 oes
1522 # Added warning to broken install target
1524 # Revision 1.104.2.17 2002/08/16 03:19:34 hal9
1525 # More (minor) cleanup of html before pdf processing to make some relative
1526 # links work as pdf -> pdf. Upload pdf as zip archive now.
1528 # Revision 1.104.2.16 2002/08/14 16:43:27 hal9
1529 # Added pdf docs to make webserver target.
1531 # Revision 1.104.2.15 2002/08/11 20:02:41 hal9
1532 # New targets for man page (make man) and pdf (make dok-pdf) targets.
1534 # Revision 1.104.2.14 2002/08/10 11:19:37 oes
1535 # - Make -Ipcre (again) conditional on STATIC_PCRE
1536 # - $(RPMBUILD) -> $(RPM) for SuSE
1537 # - Add dependency: pcrs.o deps on config.h
1539 # Revision 1.104.2.13 2002/08/07 15:13:54 hal9
1540 # Remove pdf2 target, and make it dok-shtml (single page html for pdf
1543 # Revision 1.104.2.12 2002/08/06 11:29:36 oes
1544 # Fixed detection/inclusion of pcre.h, which is in a pcre subdir on RH
1546 # Revision 1.104.2.11 2002/07/30 19:38:11 hal9
1547 # Add redhat-test target for testing purposes only. Fix RPM_PACKAGEV to what
1548 # *I think* it was supposed to be (was breaking upload targets since it was
1549 # set to RPM_VERSION).
1551 # Revision 1.104.2.10 2002/07/27 22:56:53 kick_
1552 # cleanups of the redhat-srpm target
1554 # Revision 1.104.2.9 2002/07/26 15:17:02 oes
1555 # - Added generation of default.action from defaul.action.master
1556 # - Deleted obsolete re_filterfile.txt generation
1558 # Revision 1.104.2.8 2002/07/12 10:04:32 kick_
1559 # added helper targets to the makefile. They shouldn't break anything, but
1560 # make my life a lot easier.
1562 # The new rpm has been splitted into two parts, one for package installation/
1563 # removal, one for package building.
1564 # Therefore rpm -ta isn't a valid command anymore and needs to be replaced
1565 # by rpmbuild -ta (this is backwards compatible)
1567 # Revision 1.104.2.7 2002/06/07 00:23:47 hal9
1568 # Fixing a quirk of man2html (on my system) that pulls punctuation into URLs,
1569 # thus breaking them completely.
1571 # Revision 1.104.2.6 2002/06/02 03:26:25 hal9
1572 # Update CONFIG_FILES (ie update basic.action, etc), and also DOC_FILES (exclude
1573 # index.html and team/index.html)
1575 # Revision 1.104.2.5 2002/05/30 15:35:01 hal9
1576 # This is more cleanup on the make config-file target. Most issues for
1577 # automatic generation are taken care of. There are still some problems
1578 # that require hand editing. Namely, some of the examples that are > 80 chars.
1580 # Revision 1.104.2.4 2002/05/29 02:12:17 hal9
1581 # Ooops...forgot about perl -pi cygwin problem. Add -pi.bak. Also, the
1582 # new target is 'make config-file', _not_ make config.
1584 # Revision 1.104.2.3 2002/05/29 02:05:48 hal9
1585 # 'make config' target added (WIP) for future generation of config file from
1586 # text in u-m so the two are in sync. New generated config, which requires
1587 # some hand editing for the time being.
1589 # Revision 1.104.2.2 2002/05/28 02:32:55 hal9
1590 # New target 'make dok-index' for privoxy-index.html. Also, fixed *.bak files
1591 # not being cleaned up in doc/webserver.
1593 # Revision 1.104.2.1 2002/05/26 17:19:34 hal9
1594 # Remove Table of Contents from readme with oes's dsl trick.
1596 # Revision 1.104 2002/05/24 00:03:49 oes
1597 # Use p_doc.css for the Homepage for consistency
1599 # Revision 1.103 2002/05/23 23:19:00 oes
1600 # Use dsl without TOC for the homepage
1602 # Revision 1.102 2002/05/16 01:20:17 hal9
1603 # make announce target added.
1605 # Revision 1.101 2002/05/15 12:28:46 oes
1606 # Trying to keep Hal happy :)
1608 # Revision 1.100 2002/05/08 13:48:18 hal9
1609 # Ooops, that trashed JB v2.0.2 comment. Fixed.
1611 # Revision 1.99 2002/05/08 13:42:07 hal9
1612 # This fixes the numbering problem on index.html in contact info section (.1.). Using
1613 # perl, since its way too convoluted to try to fix proper with docbook.
1615 # Revision 1.98 2002/05/03 14:33:06 oes
1616 # Replaced ldp(OK).dsl handling with generation via autoconf; handle all file exeptions to src tarball via find
1618 # Revision 1.97 2002/04/27 20:27:43 swa
1619 # no longer needed due to new
1620 # PACKAGE_VERSION process
1622 # Revision 1.96 2002/04/27 17:44:32 morcego
1623 # - Correcting typo in my name (Rodrigo, not Rodgrigo) :-)
1624 # - Using the RM macro everywhere rm is called (either we use, or don't)
1627 # Revision 1.95 2002/04/27 15:37:25 swa
1628 # replacing directory in document creation process
1629 # no longer necessary.
1631 # Revision 1.94 2002/04/27 08:23:29 swa
1632 # pdf process reviewed and cleaned up
1634 # Revision 1.93 2002/04/27 04:55:53 morcego
1635 # privoxy-cl.spec now gets removed by clobber target
1637 # Revision 1.92 2002/04/27 04:53:40 morcego
1638 # Adding --exclude "PACKAGERS" to every tar command that applies (not for
1641 # Revision 1.91 2002/04/27 04:44:51 morcego
1642 # GNUmakefile.in: The tarball created on redhat-dist and suse-dist now ignore
1643 # the PACKAGERS file, as well privoxy-cl.spec (in case it was created)
1644 # GNUmakefile.in: New targets -> conectiva-spec, conectiva-dist and
1646 # genclspec.sh : New file to generate, from privoxy-rh.spec, a specfile
1647 # for Conectiva Linux
1649 # Revision 1.90 2002/04/26 17:46:53 swa
1652 # Revision 1.89 2002/04/26 17:20:54 swa
1653 # just produce single html files to proces them later with Destiller or somesuch. looks prettier.
1655 # Revision 1.88 2002/04/25 19:13:57 morcego
1656 # Removed RPM release number declaration on configure.in
1657 # Changed makefile to use given value for RPM_PACKAGEV when on uploading
1658 # targets (will produce an error, explaining who to do it, if no value
1661 # Revision 1.87 2002/04/23 14:10:59 swa
1662 # now create pdf documents
1664 # Revision 1.86 2002/04/15 04:30:27 hal9
1665 # Missed two -pi.bak's on perl/cygwin problem.
1667 # Revision 1.85 2002/04/14 01:05:34 hal9
1668 # Revert dok-webserver change for SF logo.
1670 # Revision 1.84 2002/04/13 22:43:25 hal9
1671 # -Fix dok-webserver for SF logo (more perl).
1672 # -Change all perl -pi to perl -pi.bak for Cygwin problem.
1674 # Revision 1.83 2002/04/12 09:39:25 oes
1675 # Excluding yet more files from tarball; making dist warning yet more scary
1677 # Revision 1.82 2002/04/11 21:07:11 oes
1678 # Excluding more files from tarball build
1680 # Revision 1.81 2002/04/11 14:40:27 oes
1681 # Fixed typo -- Thanks, Moritz!
1683 # Revision 1.80 2002/04/11 12:50:00 oes
1684 # Fixed tarball-dist target
1686 # Revision 1.79 2002/04/11 06:49:28 oes
1687 # 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
1689 # Revision 1.78 2002/04/09 13:37:11 sarantis
1690 # fix tar options typo
1692 # Revision 1.77 2002/04/09 13:28:53 swa
1693 # build suse and gen-dist with html docs
1695 # Revision 1.76 2002/04/08 22:43:41 oes
1696 # Fix: Include dotfiles in fixing webserver permissions
1698 # Revision 1.75 2002/04/08 22:14:59 oes
1699 # Silencing tar warnings in the web* targets
1701 # Revision 1.74 2002/04/08 15:22:44 hal9
1702 # This has finishing touches for dok building. Should be ready to go.
1703 # -The main doc build is now 'make dok', should work on Redhat too.
1704 # -Removed man page from main doc build. It is built separately due to
1705 # perl scripts that most aren't likely to have.
1707 # Revision 1.73 2002/04/08 14:03:24 oes
1708 # oes for al: Fix install target
1710 # Revision 1.72 2002/04/08 13:42:11 oes
1711 # Added safety check to *-dist targets; fixed permissions for feedback logfile
1713 # Revision 1.71 2002/04/07 20:32:03 hal9
1714 # -Add meta data kludge for make dok-webserver via $(PERL).
1715 # -Add subdirs for 'make dok-release'.
1717 # Revision 1.70 2002/04/07 08:59:40 swa
1718 # generated files. do NOT edit.
1719 # fixed directory bug in makefile.
1721 # Revision 1.69 2002/04/07 08:10:47 swa
1722 # create some of the webserver docs
1723 # automatically (in particular if
1724 # those docs recycle other documentation
1725 # fragments). Now committed webserver's
1728 # Revision 1.68 2002/04/07 07:58:11 swa
1729 # create some of the webserver docs
1730 # automatically (in particular if
1731 # those docs recycle other documentation
1734 # Revision 1.67 2002/04/07 05:31:42 hal9
1735 # Add 'dok-release' target:
1736 # -Set doc entities to VERSION and CODE_STATUS during make.
1737 # -Set doc conditional content flags (stable vs non-stable).
1738 # A separate target for the time being but needs to be incorporated into
1739 # dok build at some point.
1740 # -Filter out a spurious ^G from new man page > html converion in man2html.
1742 # Revision 1.66 2002/04/06 20:28:21 jongfoster
1743 # Prettifying groff2html.
1744 # Using GNU Make's conditional makefile feature rather than shell "if"s.
1745 # (The shell "if"s were hiding errors)
1746 # "perl" -> "$(PERL)"
1747 # Spaces->tabs in a couple of places.
1749 # Revision 1.65 2002/04/06 05:16:39 hal9
1750 # -Add 'authors' and 'man' targets for AUTHORS and man-page (WIP).
1751 # -Both of these will soon be generated files.
1753 # Revision 1.64 2002/04/04 22:14:51 oes
1754 # No longer rely on find honoring -iname
1756 # Revision 1.63 2002/04/04 21:06:22 swa
1759 # Revision 1.62 2002/04/04 20:49:50 swa
1760 # attempt to consolidate the
1761 # different dokbook versions.
1763 # Revision 1.61 2002/04/04 19:18:21 swa
1764 # readme was leftover directory. use w3m instead
1765 # of lynx to be consistent among developers. use
1766 # consistent target naming.
1768 # Revision 1.60 2002/04/04 12:25:41 oes
1769 # Tidy webserver upload w/o *~ files, CVS dirs and logfiles and with proper dir and file permissions
1771 # Revision 1.59 2002/04/04 08:32:45 swa
1772 # wrong name for tarball-dist target. further fixed content of tarball dist
1774 # Revision 1.58 2002/04/04 06:32:58 hal9
1775 # New dok targets for make readme.
1777 # Revision 1.57 2002/04/04 00:36:36 gliptak
1778 # always use pcre for matching
1780 # Revision 1.56 2002/04/03 22:28:03 gliptak
1781 # Removed references to gnu_regex
1783 # Revision 1.55 2002/04/03 19:54:29 swa
1784 # freebsd tested to work. attempt to move tarball dist target forward
1786 # Revision 1.54 2002/04/03 14:54:07 oes
1787 # Standard clean and clobber semantics II
1789 # Revision 1.53 2002/04/03 14:19:16 oes
1790 # Standard clean and clobber semantics
1792 # Revision 1.52 2002/04/03 02:56:18 hal9
1793 # Revert previous FAQ numbering kludge.
1795 # Revision 1.51 2002/04/02 13:03:56 oes
1796 # Added fix for webserver permissions
1798 # Revision 1.50 2002/04/02 03:46:24 hal9
1799 # Rewrite ldpOK.dsl so that sections are NOT numbered on FAQ, in an effort
1800 # to make the Table of Contents not so 'busy' looking. SuSE needs testing :)
1802 # Revision 1.49 2002/03/30 22:20:12 swa
1803 # cd didn't work. neither did find.
1805 # Revision 1.48 2002/03/30 19:04:06 swa
1806 # people release differently. no good.
1807 # I want to make parts of the docs only.
1809 # Revision 1.47 2002/03/30 09:05:21 swa
1810 # better packaging. better rpm building.
1811 # tar failed on sun (no exclude there).
1813 # Revision 1.46 2002/03/29 20:09:01 swa
1816 # Revision 1.45 2002/03/29 19:45:45 swa
1819 # Revision 1.44 2002/03/29 17:42:44 gliptak
1820 # Correcting for Solaris tar limitations
1822 # Revision 1.43 2002/03/29 07:40:03 swa
1823 # fixed make webserver. doh
1825 # Revision 1.42 2002/03/29 06:59:04 swa
1826 # other users could not modify files on webserver
1828 # Revision 1.41 2002/03/28 20:43:00 swa
1829 # set make correctly
1831 # Revision 1.40 2002/03/28 04:22:44 hal9
1832 # More on man2html stuff.
1834 # Revision 1.39 2002/03/28 01:04:14 hal9
1835 # More man2html stuff for docs.
1837 # Revision 1.38 2002/03/27 16:02:30 swa
1838 # have a generic target
1840 # Revision 1.37 2002/03/27 15:30:26 swa
1841 # have a consistent appearance
1843 # Revision 1.36 2002/03/27 14:58:08 swa
1844 # can be used by mutilple targets
1846 # Revision 1.35 2002/03/27 14:53:19 swa
1847 # added solaris-dist
1849 # Revision 1.34 2002/03/27 10:30:11 swa
1850 # we want a html man file on the webserver
1852 # Revision 1.33 2002/03/27 03:05:35 hal9
1853 # Added man2html target for docs (redhat-dok only for now)
1855 # Revision 1.32 2002/03/26 22:29:54 swa
1856 # we have a new homepage!
1858 # Revision 1.31 2002/03/26 14:00:18 swa
1859 # fixed make tarball, tarball-dist, tarball-clean
1861 # Revision 1.30 2002/03/25 12:52:25 swa
1864 # Revision 1.29 2002/03/24 17:03:55 jongfoster
1867 # Revision 1.28 2002/03/24 16:19:48 swa
1868 # configure needs to be generated.
1870 # Revision 1.27 2002/03/24 16:13:57 swa
1871 # generated files are a nono in cvs
1873 # Revision 1.26 2002/03/24 15:36:02 swa
1876 # Revision 1.25 2002/03/24 14:31:08 swa
1877 # remove more crappy files. set RPM
1878 # release version correctly.
1880 # Revision 1.24 2002/03/24 14:19:55 swa
1881 # set rpm package release in configure.in. nowhere else.
1883 # Revision 1.23 2002/03/24 13:06:49 swa
1884 # suse-clean now runs fine
1886 # Revision 1.22 2002/03/24 12:56:21 swa
1887 # name change related issues.
1889 # Revision 1.21 2002/03/24 12:43:57 swa
1892 # Revision 1.20 2002/03/24 11:39:17 jongfoster
1893 # Renaming config files
1895 # Revision 1.19 2002/03/22 20:53:03 morcego
1896 # - Ongoing process to change name to JunkbusterNG
1897 # - configure/configure.in: no change needed
1899 # - TAR_ARCH = /tmp/JunkbusterNG-$(RPM_VERSION).tar.gz
1900 # - PROGRAM = jbng@EXEEXT@
1901 # - rh-spec now references as junkbusterng-rh.spec
1902 # - redhat-upload: references changed to junkbusterng-* (package names)
1903 # - tarball-dist: references changed to JunkbusterNG-distribution-*
1904 # - tarball-src: now JunkbusterNG-*
1905 # - install: initscript now junkbusterng.init and junkbusterng (when
1907 # - junkbuster-rh.spec: renamed to junkbusterng-rh.spec
1908 # - junkbusterng.spec:
1909 # - References to the expression ijb where changed where possible
1910 # - New package name: junkbusterng (all in lower case, acording to
1911 # the LSB recomendation)
1912 # - Version changed to: 2.9.13
1914 # - Added: junkbuster to obsoletes and conflicts (Not sure this is
1915 # right. If it obsoletes, why conflict ? Have to check it later)
1916 # - Summary changed: Stefan, please check and aprove it
1917 # - Changes description to use the new name
1918 # - Sed string was NOT changed. Have to wait to the manpage to
1920 # - Keeping the user junkbuster for now. It will require some aditional
1921 # changes on the script (scheduled for the next specfile release)
1922 # - Added post entry to move the old logfile to the new log directory
1923 # - Removing "chkconfig --add" entry (not good to have it automaticaly
1924 # added to the startup list).
1925 # - Added preun section to stop the service with the old name, as well
1926 # as remove it from the startup list
1927 # - Removed the chkconfig --del entry from the conditional block on
1928 # the preun scriptlet (now handled on the %files section)
1929 # - junkbuster.init: renamed to junkbusterng.init
1930 # - junkbusterng.init:
1931 # - Changed JB_BIN to jbng
1932 # - Created JB_OBIN with the old value of JB_BIN (junkbuster), to
1933 # be used where necessary (config dir)
1936 # - The config directory is /etc/junkbuster yet. Have to change it on the
1937 # specfile, after it is changes on the code
1938 # - The only files that got renamed on the cvs tree were the rh specfile and
1939 # the init file. Some file references got changes on the makefile and on the
1940 # rh-spec (as listed above)
1942 # Revision 1.18 2002/03/21 23:00:00 swa
1943 # want to autogenerate stuff.
1945 # Revision 1.17 2002/03/19 19:30:04 morcego
1946 # - Fixing stylesheet checking on configure. If it is found, no further checks
1949 # - configure will now check for db2html or docbook2html (should work now
1950 # on SuSe without the docbktls package)
1952 # Revision 1.16 2002/03/14 22:32:32 hal9
1953 # Bumped the RPM version.
1955 # Revision 1.15 2002/03/08 20:00:28 swa
1958 # Revision 1.14 2002/03/07 18:25:56 swa
1959 # synced redhat and suse build process
1961 # Revision 1.13 2002/03/07 17:17:56 oes
1962 # (Hopefully) fixed for older make versions
1964 # Revision 1.12 2002/03/07 15:28:27 swa
1967 # Revision 1.11 2002/03/06 14:33:18 sarantis
1968 # Use proper temp file, not "abc".
1970 # Revision 1.10 2002/03/06 14:19:35 sarantis
1971 # Cleanup PID_FILE_PATH from redhat-dist target
1973 # Revision 1.9 2002/03/05 17:31:11 morcego
1974 # Search for docbook.dsl. Should solve portability problems for SuSe.
1976 # Revision 1.8 2002/03/05 14:07:42 morcego
1977 # configure now detects rpm topdir, and change GNUmakefile acordingly
1978 # (based on sugestion by Sarantis Paskalis)
1980 # Revision 1.7 2002/03/05 13:43:28 morcego
1981 # Checking for text browser, so redhat-dok can work.
1983 # Revision 1.6 2002/03/05 13:10:51 morcego
1984 # Changes to implement redhat-dok (Hal Burgiss)
1985 # Changes to make it work on other distros and out-of-the-shelf configurations
1987 # Revision 1.5 2002/02/27 15:30:39 hal9
1988 # Reset $(RPM_PACKAGEV) to 1 (was 2)
1990 # Revision 1.4 2002/01/17 21:44:04 jongfoster
1991 # Adding urlmatch.[ch]
1993 # Revision 1.3 2002/01/04 15:26:08 oes
1994 # Added tarball-src target
1996 # Revision 1.2 2001/12/30 14:07:31 steudten
1997 # - Add signal handling (unix)
1998 # - Add SIGHUP handler (unix)
1999 # - Add creation of pidfile (unix)
2000 # - Add action 'top' in rc file (RH)
2001 # - Add entry 'SIGNALS' to manpage
2002 # - Add exit message to logfile (unix)
2004 # Revision 1.1 2001/12/01 11:22:57 jongfoster
2005 # Renaming Makefile.in to GNUmakefile.in so that non-GNU versions of
2006 # make break in a more obvious way.
2007 # Adding .PHONY section.
2009 # Revision 1.40 2001/12/01 00:24:11 jongfoster
2010 # Renaming various config files
2011 # Fixing CR->CRLF under Win32 (I hope)
2013 # Revision 1.39 2001/11/06 12:07:30 steudten
2014 # Add --clean for building rpm in target redhat-dist.
2016 # Revision 1.38 2001/11/05 21:35:23 steudten
2017 # Complete rewrite for the 'redhat-dist' target.
2018 # Checks for writeable RPM build directories for calling user.
2019 # So you must not be root, just set the modes to 1777 to
2020 # build a RH package.
2021 # Fix the upload-target to be arch independant.
2022 # Add target for 'solaris-dist' - coming soon.
2024 # Revision 1.37 2001/11/01 00:52:04 hal9
2025 # Redhat-upload stuff per Stefan.
2027 # Revision 1.36 2001/10/31 19:26:13 swa
2028 # automate process of uploading new releases
2031 # Revision 1.35 2001/10/15 22:14:59 joergs
2032 # Removed -O2 and -Wall from AmigaOS-only CFLAGS since they are now in
2033 # the general CFLAGS already.
2035 # Revision 1.34 2001/10/15 18:28:06 steudten
2036 # remove config.cache for target clobber.
2037 # Cleanup make dist for RH and S.u.S.E.
2039 # Revision 1.33 2001/10/10 12:43:33 oes
2040 # Added ugly hack to make install target work at least for some setups.
2042 # Revision 1.32 2001/10/09 22:38:19 jongfoster
2043 # Correcting actionsfile filename for Win32 INI build
2045 # Revision 1.31 2001/09/23 10:13:48 swa
2046 # upload process established. run make webserver and
2047 # the documentation is moved to the webserver. documents
2048 # are now linked correctly.
2050 # Revision 1.30 2001/09/19 17:55:49 oes
2053 # Revision 1.29 2001/09/16 17:34:27 jongfoster
2054 # Removing showargs.[ch], adding cgi(simple|edit).[ch]
2055 # Replacing $(OBJEXT) with @OBJEXT@ - this seems to be a common source
2056 # of build problems.
2058 # Revision 1.28 2001/09/13 15:19:08 swa
2059 # we want text files as well.
2061 # Revision 1.27 2001/09/13 13:11:37 steudten
2063 # Replace DEBUG_CFLAGS with OTHER_CFLAGS
2065 # Revision 1.26 2001/09/12 23:44:54 david__schmidt
2066 # Mac OSX (Darwin) support added.
2068 # Revision 1.25 2001/09/12 22:55:45 joergs
2069 # AmigaOS support added.
2071 # Revision 1.24 2001/09/12 17:28:59 david__schmidt
2073 # OS/2 port: update autoconf'd support for the platform.
2075 # Revision 1.23 2001/09/12 16:28:42 swa
2076 # added "make dok" section to generate html pages from
2077 # the sgml source documents. note that the we do not want
2078 # generated stuff in cvs.
2080 # Revision 1.22 2001/09/10 16:31:23 swa
2081 # buildroot definition in the specfile fucks up the build
2082 # process under suse. hence I moved it to the "rpm -ta"
2085 # Revision 1.21 2001/09/10 11:12:49 oes
2088 # Revision 1.20 2001/08/02 22:04:29 jongfoster
2089 # Removing some remaining references to obsolete w32rulesdlg.[ch]
2091 # Revision 1.19 2001/07/30 22:14:03 jongfoster
2092 # Removing obsolete w32rulesdlg.c and w32rulesdlg.h
2094 # Revision 1.18 2001/07/29 17:09:17 jongfoster
2095 # Major changes to build system in order to fix these bugs:
2096 # - pthreads under Linux was broken - changed -lpthread to -pthread
2097 # - Compiling in MinGW32 mode under CygWin now correctly detects
2098 # which shared libraries are available
2099 # - Solaris support (?) (Not tested under Solaris yet)
2101 # Revision 1.17 2001/07/28 16:44:54 oes
2102 # Fixed sed LF->CRLF conversion and removed deprecated files
2104 # Revision 1.16 2001/07/15 19:45:33 jongfoster
2105 # Added support for linking with POSIX threads library
2107 # Revision 1.15 2001/07/13 13:48:07 oes
2108 # - Moved STATIC #define for pcre to (ac)config.h
2109 # - Made -Ipcre depandant on static pcre compilation to
2110 # avoid version conflicts
2111 # - Included compilation and depandancies for new deanimate.c
2112 # - Made changes to the pcre/pcreposix/pcrs build process
2113 # as required by the new library autodetection in
2116 # Revision 1.14 2001/07/01 16:27:44 oes
2117 # Fixed misplaced dependancy
2119 # Revision 1.13 2001/06/29 13:18:36 oes
2120 # - added depandancy of filters.o on cgi.h
2122 # Revision 1.12 2001/06/12 17:15:56 swa
2123 # fixes, because a clean build on rh6.1 was impossible.
2124 # GZIP confuses make, %configure confuses rpm, etc.
2126 # Revision 1.11 2001/06/11 11:26:35 sarantis
2127 # RPM version should be the same as ijbswa version. The rpm release is
2128 # specified in the specfile.
2130 # Revision 1.10 2001/06/07 17:27:45 swa
2131 # added suse build section
2133 # Revision 1.9 2001/06/04 18:31:58 swa
2134 # files are now prefixed with either `confdir' or `logdir'.
2135 # `make redhat-dist' replaces both entries confdir and logdir
2136 # with redhat values
2138 # Revision 1.8 2001/06/04 10:44:57 swa
2139 # `make redhatr-dist' now works. Except for the paths
2140 # in the config file.
2142 # Revision 1.7 2001/06/03 17:09:09 swa
2143 # swa for oes: reversed my earlier change
2145 # Revision 1.6 2001/06/03 17:07:27 swa
2148 # Revision 1.5 2001/06/03 13:57:26 swa
2149 # compile cgi.c (for andreas' GUI)
2151 # Revision 1.4 2001/05/31 21:18:45 jongfoster
2152 # Added files actions.[ch], actionlist.h, list.[ch] to Makefile
2154 # Revision 1.3 2001/05/29 20:02:48 joergs
2155 # Changes for AmigaOS added.
2157 # Revision 1.2 2001/05/17 22:23:23 oes
2158 # - Added auto-generation of CRLFs for Win32 config files
2159 # - Added comment-prefix to all Win32-only options in the config file
2160 # and provided auto stripping of this prefix for the Win32 platform by make
2162 # Revision 1.1.1.1 2001/05/15 13:59:00 oes
2163 # Initial import of version 2.9.3 source tree