# ~jhs/public_html/test/Makefile by Julian Stacey@
.for __target in clean obj # cleandir
# it is not appropriat to add cleandir to "clean obj" above, as I want all
# dependent files generated & local, ready to rdist to web;
# thus I never want to limit the removal of obj links.
.endfor
HTML_TARGET = jhs.html
# all: html_links modes _SUBDIRUSE # html_links is supplied by berklix.mk
all: html
clean:
@echo Avoiding cleaning . and all SUBDIR except src/,
@echo because ~/public_html is copied by rdist to web.
pwd
cd ${.CURDIR}/src ; make clean
# .CURDIR avoids failure on missing /usr2/work/obj/usr/home/jhs/public_html/src/Makefile
# Note make clean is called by ~/bin/backup.tape.
modes:
echo $@
echo next chown needs to be run as root
cd /tmp; cd ${.CURDIR} && find . -print0 | xargs -0 chown -h jhs
@# chown fixes things like src/bsd/jhs/bin/public/filesize/tst.20
@# which if make runs as root are uid 0
@# The print0 & xargs -0 are to cope with a nasty
@# ".kde/share/apps/knotes/notes/knote/knote 1"
cd /tmp;cd ${.CURDIR} && find . -type f -print0 | xargs -0 chmod a+r
cd /tmp;cd ${.CURDIR} && find . -type d -print0 | xargs -0 chmod a+rx
# Symbolic links must be owned by me, (not root as I once discovered
# some to be), else I suspect rdist may not upload them to the web.
.include