summaryrefslogtreecommitdiffstats
path: root/skeletons/Makefile.lou.erb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-03-26 08:25:27 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-03-26 08:25:27 +0200
commit567672be7bef7dcbecf70589dddbe6e193588475 (patch)
treef1d526c7709a5fce2d01c9574583db21c0be2266 /skeletons/Makefile.lou.erb
parent1e2061952df01fe87209156062e060fb69e19ed8 (diff)
downloadvim-567672be7bef7dcbecf70589dddbe6e193588475.zip
vim-567672be7bef7dcbecf70589dddbe6e193588475.tar.gz
add skeletons
Diffstat (limited to 'skeletons/Makefile.lou.erb')
-rw-r--r--skeletons/Makefile.lou.erb39
1 files changed, 39 insertions, 0 deletions
diff --git a/skeletons/Makefile.lou.erb b/skeletons/Makefile.lou.erb
new file mode 100644
index 0000000..bb2cec6
--- /dev/null
+++ b/skeletons/Makefile.lou.erb
@@ -0,0 +1,39 @@
+
+# USER VAR
+MAIN=file_name
+LOUT_FILES=${MAIN}.lou
+#
+
+LOUT_MAIN=${MAIN}.lou
+PSNAME=${MAIN}.ps
+PDFNAME=${MAIN}.pdf
+
+AWK=gawk
+LOUT=lout
+PS2PDF=ps2pdf
+
+.SUFFIXES: .lout .lou
+
+all: $(PSNAME) $(PDFNAME)
+
+utf8_lat1:
+ @( \
+ echo '#! /bin/sh'; \
+ echo 'file $$1 | grep UTF-8 >/dev/null'; \
+ echo 'if [ $$? -eq 0 ]; then'; \
+ echo ' iconv --from utf8 --to iso88591 $$1 > $$(basename $$1 .lou).lat1'; \
+ echo 'else'; \
+ echo ' cp $$1 $$(basename $$1 .lou).lat1'; \
+ echo 'fi'; \
+ ) > utf8_lat1
+ @chmod 755 utf8_lat1
+
+$(PSNAME): utf8_lat1 $(LOUT_FILES)
+ $(LOUT) -r3 -o $(PSNAME) $(LOUT_MAIN)
+
+$(PDFNAME): $(PSNAME)
+ $(PS2PDF) $(PSNAME)
+
+clean:
+ @rm *.ps *.ld *.li *.lix *.lat1 *~ utf8_lout utf8_lat1 2>/dev/null
+