mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-24 01:40:23 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@245 e7d03fd6-7b0d-0410-9947-9c21f3af8025
96 lines
2 KiB
Makefile
96 lines
2 KiB
Makefile
#!/usr/bin/make -f
|
|
# Sample debian/rules that uses debhelper.
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
PACKAGE=linkchecker-ssl
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
# This is the debhelper compatability version to use.
|
|
export DH_COMPAT=3
|
|
|
|
# This has to be exported to make some magic below work.
|
|
export DH_OPTIONS
|
|
|
|
nossl:
|
|
@echo change to nossl version...
|
|
@cd debian && for i in *-nossl; do \
|
|
f=`echo $$i | sed -e 's/-nossl//'`; \
|
|
mv $$f $$f-ssl; \
|
|
mv $$i $$f; \
|
|
echo -n "$$f "; \
|
|
done
|
|
@chmod +x debian/rules
|
|
@echo done
|
|
|
|
ssl:
|
|
@echo already ssl version environments
|
|
|
|
|
|
configure: configure-stamp
|
|
configure-stamp:
|
|
dh_testdir
|
|
./setup.py config -lcrypto
|
|
touch configure-stamp
|
|
|
|
|
|
build: configure-stamp build-stamp
|
|
build-stamp:
|
|
dh_testdir
|
|
rm -rf debian/$(PACKAGE) debian/$(PACKAGE)-ssl
|
|
./setup.py build
|
|
touch build-stamp
|
|
|
|
clean:
|
|
dh_testdir
|
|
rm -f build-stamp configure-stamp
|
|
$(MAKE) clean
|
|
dh_clean
|
|
|
|
install: build
|
|
dh_testdir
|
|
dh_clean -k
|
|
dh_installdirs
|
|
$(MAKE) locale
|
|
./setup.py install --root=`pwd`/debian/$(PACKAGE) --no-compile
|
|
# remove everything but the ssl modules
|
|
rm -rf debian/$(PACKAGE)/usr/man
|
|
rm -rf debian/$(PACKAGE)/usr/bin
|
|
rm -rf debian/$(PACKAGE)/usr/share
|
|
rm -rf debian/$(PACKAGE)/usr/lib/python2.0/site-lib/linkchecker
|
|
rm -rf debian/$(PACKAGE)/usr/lib/python2.0/site-lib/*.py
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
binary-indep: build install
|
|
|
|
# Build architecture-dependent files here.
|
|
binary-arch: build install
|
|
dh_testdir
|
|
dh_testroot
|
|
# dh_installdebconf
|
|
# dh_installdocs
|
|
# dh_installexamples lc.* lconline/*.html
|
|
# dh_installmenu
|
|
# dh_installemacsen
|
|
# dh_installpam
|
|
# dh_installinit
|
|
# dh_installcron
|
|
# dh_installman linkchecker.1
|
|
# dh_installinfo
|
|
# dh_undocumented linkchecker.1
|
|
dh_installchangelogs
|
|
# dh_link
|
|
dh_strip
|
|
dh_compress
|
|
dh_fixperms
|
|
# dh_makeshlibs
|
|
dh_installdeb
|
|
# dh_perl
|
|
# dh_shlibdeps
|
|
dh_gencontrol
|
|
dh_md5sums
|
|
dh_builddeb
|
|
|
|
binary: binary-indep binary-arch
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|