comedi-www/Makefile
2000-06-22 22:51:10 +00:00

28 lines
645 B
Makefile
Executable file

#!/bin/bash
PAGES := intro documentation hardware download links mailinglist
OTHERFILES := comedi_logo.gif
DESTDIR := ~/www/comedi
all: $(patsubst %,%.html,$(PAGES))
frame.pre: frame.html
grep -B 99999 CONTENT frame.html | grep -v CONTENT >frame.pre
frame.post: frame.html
grep -A 99999 CONTENT frame.html | grep -v CONTENT >frame.post
%.html: frame.pre frame.post %-x.html
cat frame.pre $(patsubst %.html,%-x.html,$@) frame.post >$@
clean:
-rm frame.pre frame.post
-rm $(patsubst %,%.html,$(PAGES))
install:
cp $(patsubst %,%.html,$(PAGES)) $(DESTDIR)
cp $(OTHERFILES) $(DESTDIR)
cd $(DESTDIR) && ln -s intro.html index.html