| 1 |
# This Makefile should need no changes from webwml/english/logos/Makefile
|
| 2 |
# Please send a message to debian-www if you need to modify anything
|
| 3 |
# so the problem can be fixed.
|
| 4 |
|
| 5 |
BASE=..
|
| 6 |
THISDIR=ipv6
|
| 7 |
|
| 8 |
HTMLFILES= deadsite.html
|
| 9 |
PHPFILES=index.php main.php ammain.php amnew.php amnew2.php amprofile.php exit.php amstatus.php amupdate.php todo.php amlist.php fddelete.php leaderboard.php amlogin2.php login2.php nmlist.php whoisam.php newnm.php newnm2.php nmelist.php deletenm.php nmstatus.php stats.php nmadvocate.php maintainers.php gpg.php gpgmain.php lgpglogin2.php gpglogin.php gpgpasswd.php gpgregister.php
|
| 10 |
INCFILES=config.inc common.inc gpgcommon.inc gpgconfig.inc
|
| 11 |
WMLFILES=$(wildcard *.wml)
|
| 12 |
IMAGES=$(wildcard *.gif) $(wildcard *.jpg)
|
| 13 |
ifneq "$(wildcard ${HOME}/web-source/webwml/english/template)" ""
|
| 14 |
DEBTEMPLATEDIR := ${HOME}/web-source/webwml/english/template
|
| 15 |
else
|
| 16 |
DEBTEMPLATEDIR := ../webwml/english/template
|
| 17 |
endif
|
| 18 |
DEBTEMPLATES=$(wildcard $(DEBTEMPLATEDIR)/debian/*.wml) $(wildcard template/*.wml)
|
| 19 |
#WML_DEFS= -DINTRO="http://www.debian.org/intro" -DDISTRIB="http://www.debian.org/distrib" -DHOME="http://www.debian.org" -DPICS="http://www.debian.org/Pics" -DCUR_ISO_LANG="en" -I $(DEBTEMPLATEDIR) -I template -DSEARCH="http://search.debian.org/"
|
| 20 |
TARGETDIR=../../web
|
| 21 |
|
| 22 |
WML_DEFS= -I $(DEBTEMPLATEDIR)
|
| 23 |
|
| 24 |
all: $(HTMLFILES) $(PHPFILES)
|
| 25 |
|
| 26 |
%.html: %.wml $(DEBTEMPLATES)
|
| 27 |
wml $(WML_DEFS) $< -o UNDEFuEN:$@
|
| 28 |
|
| 29 |
%.php: %.wml $(DEBTEMPLATES)
|
| 30 |
wml $(WML_DEFS) $< -o UNDEFuEN:$@
|
| 31 |
|
| 32 |
rsync: $(HTMLFILES) $(PHPFILES)
|
| 33 |
rsync -e ssh $(HTMLFILES) $(PHPFILES) $(IMAGES) $(INCFILES) pandora.debian.org:/org/nm.debian.org/web
|
| 34 |
|
| 35 |
backup:
|
| 36 |
rsync -e ssh -r template $(WMLFILES) $(INCFILES) Makefile pandora.debian.org:/org/nm.debian.org/wml
|
| 37 |
|
| 38 |
install: $(HTMLFILES) $(PHPFILES)
|
| 39 |
cp $(HTMLFILES) $(PHPFILES) $(IMAGES) $(INCFILES) $(TARGETDIR)
|
| 40 |
|
| 41 |
clean:
|
| 42 |
rm -f $(PHPFILES) $(HTMLFILES)
|