home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 April
/
PCWorld_2001-04_cd.bin
/
Software
/
TemaCD
/
webclean
/
Makefile
< prev
next >
Wrap
Makefile
|
2001-01-15
|
2KB
|
59 lines
# This Makefile is only used by developers! No need for users to
# call make.
VERSION=$(shell ./setup.py --version)
PACKAGE=webcleaner
DEBS=$(PACKAGE)_$(VERSION)_i386.deb $(PACKAGE)conf_$(VERSION)_all.deb
all:
@echo "Read the file INSTALL to see how to build and install"
clean:
-./setup.py clean --all # ignore errors for this command
$(MAKE) -C po clean
find . -name '*.py[co]' | xargs rm -f
distclean: clean cleandeb
rm -rf dist build # just to be sure: clean build dir too
rm -f VERSION MANIFEST WebCleanerConf.*
cleandeb:
rm -rf debian/$(PACKAGE) debian/$(PACKAGE)conf debian/tmp
rm -f debian/*.debhelper debian/{files,substvars}
rm -f configure-stamp build-stamp
dist: locale
#fakeroot debian/rules binary
# clean deb files because distutils chokes on broken symlinks
# (webcleaner.1 -> undocumented.1)
#$(MAKE) cleandeb
./setup.py sdist --formats=gztar,zip bdist_rpm
#./setup.py bdist_wininst
#@for i in $(DEBS); do mv -f ../$$i dist; done
test:
@./filtertest filter filtertest.html
timestamps:
cd config && ./timestamps.py *.zap > md5sums
package:
cd dist && dpkg-scanpackages . ../override.txt | gzip --best > Packages.gz
VERSION:
echo $(VERSION) > VERSION
filterfiles: md5sums
scp config/*.zap config/*.dtd config/md5sums shell1.sourceforge.net:/home/groups/$(PACKAGE)/htdocs/
upload: distclean dist VERSION
scp debian/changelog shell1.sourceforge.net:/home/groups/$(PACKAGE)/htdocs/changes.txt
scp config/filter.dtd shell1.sourceforge.net:/home/groups/$(PACKAGE)/htdocs/filter.dtd.txt
scp VERSION shell1.sourceforge.net:/home/groups/$(PACKAGE)/htdocs/raw/
scp dist/* shell1.sourceforge.net:/home/groups/ftp/pub/$(PACKAGE)/
ssh -C -t shell1.sourceforge.net "cd /home/groups/$(PACKAGE) && make"
locale:
$(MAKE) -C po
.PHONY: clean upload dist distclean package all locale